From: Randal L. Schwartz Date: Mon, 24 Oct 2005 04:06:23 GMT Subject: daemon.c broken on OpenBSD Message-ID: <867jc336f4.fsf@blue.stonehenge.com> Wow. gcc -o daemon.o -c -g -O2 -Wall -I/usr/local/include -L/usr/local/lib -Dstrcasestr=gitstrcasestr -DNO_STRCASESTR=1 -DSHA1_HEADER='' daemon.c In file included from /usr/include/sys/poll.h:54, from daemon.c:7: /usr/include/ctype.h:67: error: syntax error before ']' token /usr/include/ctype.h:68: error: syntax error before ']' token /usr/include/ctype.h:70: error: syntax error before ']' token /usr/include/ctype.h:75: error: syntax error before ']' token /usr/include/ctype.h:78: error: syntax error before '(' token /usr/include/ctype.h:79: error: syntax error before '(' token /usr/include/ctype.h:93: error: syntax error before "c" In file included from /usr/include/sys/poll.h:54, from daemon.c:7: /usr/include/ctype.h:91:1: unterminated #if /usr/include/ctype.h:40:1: unterminated #ifndef In file included from daemon.c:7: /usr/include/sys/poll.h:53:1: unterminated #ifndef /usr/include/sys/poll.h:28:1: unterminated #ifndef gmake: *** [daemon.o] Error 1 Apparently something in the early lines of daemon.c (before line 7) is defining something that breaks the core /usr/include/ctype.h. Lines 66 to 68 of ctype.h look like: #if defined(__GNUC__) || defined(_ANSI_LIBRARY) || defined(lint) int isalnum(int); int isalpha(int); If that rings a bell, help me out here. I'm guessing "isalnum" is getting defined (wrongly). Yeah, looks like in cache.h. Why is this getting defined? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!