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

Bug#1279: Strangeness involving <bsd/signal.h>



Package: libc
Version: 4.6.27
Revision: 5

I ran into a compilation problem where I had to add -I/usr/include to
some gcc options to get a program to compile correctly.  This appears
to be the use of the #include_next directive in <bsd/signal.h>.

The program I was compiling was xfishtank (from an O'Reilly cdrom --
this means it's either an X contrib package, or from comp.sources.x --
I suspect the latter).  Here's line that worked (the only change I
made was adding -I/usr/include):

gcc -g -ansi   -I/usr/include -I. -I./fishmaps -I/usr/X11R6/include  -Dlinux -D__i386__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE  -DFUNCPROTO=15 -DNARROWPROTO     -c xfish.c -o xfish.o

This was after I'd put an #ifdef linux line in the xfish.c file that
used <bsd/signal.h> instead of <signal.h>.  [Before that, it wouldn't
compile at all.]

--
Raul


Reply to: