This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gnu-libc and egcs problems on linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]