This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

Recent changes to signal headers break egcs compilation



During bootstrapping egcs cvs current, I got the following error:
stage1/xgcc -Bstage1/ -B/opt/egcs-1.2/i486-pc-linux-gnu/bin/ -c
-DIN_GCC    -W  -Wall -O2  -DHAVE_CONFIG_H     -I. -I../../egcs-cvs/gcc -I../../egcs-cvs/gcc/config -I../../egcs-cvs/gcc/../include \
          -DGCC_INCLUDE_DIR=\"/opt/egcs-1.2/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.17/include\" \
  -DGPLUSPLUS_INCLUDE_DIR=\"/opt/egcs-1.2/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.17/../../../..`echo /opt/egcs-1.2 | sed -e 's|^/opt/egcs-1.2||' -e 's|/^/*|/..|g'`/include/g++-2\" \
  -DCROSS_INCLUDE_DIR=\"/opt/egcs-1.2/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.17/../../../../i486-pc-linux-gnu/sys-include\" \
  -DTOOL_INCLUDE_DIR=\"/opt/egcs-1.2/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.17/../../../../i486-pc-linux-gnu/include\" \
  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
  -DSTD_PROTO_DIR=\"/opt/egcs-1.2/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.17\" \
  ../../egcs-cvs/gcc/protoize.c
In file included from /usr/include/sys/time.h:25,
                 from ../../egcs-cvs/gcc/system.h:121,
                 from ../../egcs-cvs/gcc/protoize.c:60:
/usr/include/sys/select.h:83: warning: `struct timespec' declared inside parameter list
/usr/include/sys/select.h:83: warning: its scope is only this definition or declaration,
/usr/include/sys/select.h:83: warning: which is probably not what you want.
In file included from /usr/include/signal.h:217,
                 from ../../egcs-cvs/gcc/protoize.c:142:
/usr/include/bits/sigaction.h:33: parse error before `siginfo_t'
../../egcs-cvs/gcc/protoize.c: In function `edit_fn_declaration':
../../egcs-cvs/gcc/protoize.c:3088: warning: variable `func_name_len' might be clobbered by `longjmp' or `vfork'

This small test program gives the same errors/warnings:
#include <sys/time.h>
#include <signal.h>

int main(void) 
{
  ;
}

$ /opt/egcs/bin/gcc     tst-signal.c   -o tst-signal -Wall -W -D_POSIX_SOURCE
In file included from /usr/include/sys/time.h:25,
                 from tst-signal.c:1:
/usr/include/sys/select.h:83: warning: `struct timespec' declared inside parameter list
/usr/include/sys/select.h:83: warning: its scope is only this definition or declaration,
/usr/include/sys/select.h:83: warning: which is probably not what you want.
In file included from /usr/include/signal.h:217,
                 from tst-signal.c:2:
/usr/include/bits/sigaction.h:33: parse error before `siginfo_t'
tst-signal.c: In function `main':
tst-signal.c:7: warning: control reaches end of non-void function


In which way should the signal headers be changed?

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


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