gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] asm/signal.h


From: Jerry James
Subject: [Gcl-devel] asm/signal.h
Date: Thu, 21 May 2009 15:29:13 -0600

The configure script tells me that it is unable to process
asm/signal.h, even though that header file exists.  This happens on
both Fedora 10 and the current snapshot of Fedora 11-to-be.  The
problem turns out to be conflicting type definitions in the glibc 2.9
(Fedora 10) or glibc 2.10 (Fedora 11) header files and the Linux
kernel 2.6.27 (Fedora 10) or 2.6.29 (Fedora 11) headers.  As it also
turns out, just defining __ASSEMBLY__ before including asm/signal.h is
enough to make it not read the Linux kernel headers, thereby solving
the problem.  Does anybody else see this?  To check, make a file
test.c with these contents:

#include <stdio.h>
#include <asm/signal.h>

Then I see the following:

$ gcc -c test.c
In file included from /usr/include/asm/signal.h:7,
                 from test.c:3:
/usr/include/linux/time.h:10: error: expected specifier-qualifier-list
before ‘time_t’
/usr/include/linux/time.h:16: error: expected specifier-qualifier-list
before ‘time_t’

If I change the file contents to this:

#include <stdio.h>
#define __ASSEMBLY__
#include <asm/signal.h>

then the gcc invocation succeeds.
-- 
Jerry James
http://www.jamezone.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]