Subject: parse errors?
To: None <port-i386@netbsd.org>
From: John Towler <jtowler@pconline.com>
List: port-i386
Date: 10/15/2001 23:04:56
I am running NetBSD-1.5.2 on a Toshiba 460CDT.  While trying to build
SWI Prolog's Xpce package (pl-4.0.9.tar.gz,
pl-4.0.9/packages/xpce/**/) I ran into what gcc claims are parse
errors.  By inspection, I didn't see anything odd in the header file.
gcc is egcs-1.1.2 as bundled with -Dunix added to CPP-Prefines.  Is it
this compiler version or should I look elswhere for the problem
resolution.  SWI Prolog itself builds w/o errors or tweaks given the -Dunix.
The relevant fragment of the nohup.out is below.


			Thanks,
			John Towler


gmake[1]: Entering directory
`/usr/local/src/pl-4.0.9/packages/xpce/src'
****************
Making XPCE 5.1.8, July 2001 for i386-netbsd1.5.2
****************
gcc -c -Wall -O2 -I. -I../src -I/usr/local/include
-I/usr/X11R6/include  -fPIC -funsigned-char -DHAVE_CONFIG_H ker/self.c
-o ker/self.o
gmake CIFLAGS="-I. -I../src -I/usr/local/include -I/usr/X11R6/include
-I/usr/X11R6/include" wsobjs
gmake[2]: Entering directory
`/usr/local/src/pl-4.0.9/packages/xpce/src'
gcc -c -Wall -O2 -I. -I../src -I/usr/local/include
-I/usr/X11R6/include  -I/usr/X11R6/include -fPIC -funsigned-char
-DHAVE_CONFIG_H x11/xstream.c -o x11/xstream.o
In file included from x11/xstream.c:15:
/usr/include/sys/socket.h:186: syntax error before `u_char'
/usr/include/sys/socket.h:214: syntax error before `u_char'
/usr/include/sys/socket.h:216: `int64_t' undeclared here (not in a
function)
/usr/include/sys/socket.h:216: `u_char' undeclared here (not in a
function)
/usr/include/sys/socket.h:216: size of array `__ss_pad1' is negative
/usr/include/sys/socket.h:217: syntax error before `int64_t'
/usr/include/sys/socket.h:218: `u_char' undeclared here (not in a
function)
/usr/include/sys/socket.h:218: `int64_t' undeclared here (not in a
function)
/usr/include/sys/socket.h:218: `u_char' undeclared here (not in a
function)
/usr/include/sys/socket.h:218: `int64_t' undeclared here (not in a
function)
/usr/include/sys/socket.h:273: syntax error before `uid_t'
/usr/include/sys/socket.h:278: syntax error before `gid_t'
/usr/include/sys/socket.h:452: syntax error before `u_short'
/usr/include/sys/socket.h:460: syntax error before `caddr_t'
/usr/include/sys/socket.h:464: syntax error before `caddr_t'
/usr/include/sys/socket.h:485: syntax error before `recv'
/usr/include/sys/socket.h:485: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:486: syntax error before `recvfrom'
/usr/include/sys/socket.h:487: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:488: syntax error before `recvmsg'
/usr/include/sys/socket.h:488: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:489: syntax error before `send'
/usr/include/sys/socket.h:489: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:490: syntax error before `sendto'
/usr/include/sys/socket.h:491: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:492: syntax error before `sendmsg'
/usr/include/sys/socket.h:492: warning: data definition has no type or
storage class
gmake[2]: *** [x11/xstream.o] Error 1
gmake[2]: Leaving directory
`/usr/local/src/pl-4.0.9/packages/xpce/src'
gmake[1]: *** [dowsobjs] Error 2
gmake[1]: Leaving directory
`/usr/local/src/pl-4.0.9/packages/xpce/src'
gmake: *** [all] Error 2