Nicholas Klingaman wrote: > Hi all, > > I believe that this problem arises because the file to include is > /usr/include/sys/signal.h, not /usr/include/signal.h. > > Changing "#include <signal.h>" to "#include <sys/signal.h>" in the > files events.c, popups.c, and font-open.c produced a working xdvi > binary on my system, a MacBook with 10.5.5, Xcode 3.1, and the stock > Apple gcc. > > According to fink, I already had the current revision of xdvi > (22.85-1) installed successfully on this system, however. This leads > me to believe this problem has cropped up only recently; perhaps it is > the result of an OS or Xcode update? I'm sure I successfully built > the xdvi package previously under OS >= 10.5.2 and Xcode >= 3.0, but I > can't narrow it down any further. > > Regards, > Nick > > ------------------------------------------------------- > Nicholas Klingaman > Walker Institute for Climate System Research > Department of Meteorology, University of Reading > Reading, Berkshire, United Kingdom > > On 16 Sep 2008, at 14:43, David R. Morrison wrote: > >> >> >> Begin forwarded message: >> >>> ** <snip> >>> creating Makefile >>> creating config.h >>> make >>> gcc -c -O2 -I/sw/include -I. -I. -I/usr/X11/include xdvi.c >>> gcc -c -O2 -I/sw/include -I. -I. -I/usr/X11/include events.c >>> In file included from events.c:104: >>> /usr/include/signal.h:71: error: 'NSIG' undeclared here (not in a >>> function) <snip>
Interestingly enough, it built for me on 10.5.5/PowerPC/Xcode3.1, but I got an identical failure to that from the original poster (cc'ed) on 10.5.5/Intel/Xcode3.1.1. The header files appear to be identical (same size, anyway) on both systems, so I'm not sure what the difference is. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
