This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gnu-libc and egcs problems on linux
- To: libc-hacker at gnu dot org
- Subject: gnu-libc and egcs problems on linux
- From: Mike Neuhauser <mike at gams dot co dot at>
- Date: Wed, 03 Dec 1997 14:02:26 +0100
- Cc: egcs at cygnus dot com
Hi!
I've came across a problem with gnu-libc (snapshot 971201 from
ftp.kernel.org) and egcs-971201 under linux (my goal is to build
a cross compiler for a linux system that will use gnu-libc as its
libc). During the build of the cross compiler the header files of
gnu-libc are needed to extract certain system specific definitions
(to generate egcs/build/<target>/libio/_G_config.h). The script doing
this (egcs-971201/libio/gen-params) needs the whole definition of
certain data-types to be on a *single* line . This is not the case for
__sigset_t defined in libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h
which causes the cross-compiler build to fail. The following simple
patch fixes the problem. (It would be much more complicated to fix
egcs-971201/libio/gen-params.)
===================Patch Begin
--- libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h-old Wed Dec 3 10:52:13 1997
+++ libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h Wed Dec 3 10:52:31 1997
@@ -25,10 +25,7 @@
/* A `sigset_t' has a bit for each signal. */
#define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
-typedef struct
- {
- unsigned long int __val[_SIGSET_NWORDS];
- } __sigset_t;
+typedef struct { unsigned long int __val[_SIGSET_NWORDS]; } __sigset_t;
#endif
===================Patch End