Eichert, Diana
2002-Feb-17 05:27 UTC
[syslinux] failure when trying to build on OpenBSD 2.8
Hello I'm trying to build hpa-tftp on an OpenBSD so I'll have support for "tsize". configure run successfully, then I run gmake, then the following errors. thanks gmake[1]: Entering directory `/usr/local/src/tftp-hpa-0.28/tftp' gcc -g -O2 -D_XPG4_2 -D_XOPEN_SOURCE -D__EXTENSIONS__ -D_BSD_SOURCE -D_ISO9X_SOURCE -D_OSF_SOURCE -D_XOPEN_SOURCE_EXTENDED -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -I.. -c tftp.c In file included from ../config.h:95, from tftpsubs.h:48, from tftp.c:39: /usr/include/sys/socket.h:164: syntax error before `u_char' /usr/include/sys/socket.h:166: syntax error before `u_char' /usr/include/sys/socket.h:174: syntax error before `u_short' /usr/include/sys/socket.h:319: syntax error before `u_int' /usr/include/sys/socket.h:383: syntax error before `u_short' In file included from ../config.h:232, from tftpsubs.h:48, from tftp.c:39: /usr/include/arpa/inet.h:89: syntax error before `inet_nsap_addr' /usr/include/arpa/inet.h:89: syntax error before `u_char' /usr/include/arpa/inet.h:89: warning: data definition has no type or storage class /usr/include/arpa/inet.h:90: syntax error before `*' gmake[1]: *** [tftp.o] Error 1 gmake[1]: Leaving directory `/usr/local/src/tftp-hpa-0.28/tftp' gmake: *** [tftp.build] Error 2 # uname -a OpenBSD littledawg 2.8 LIBRETTO#1 i386
H. Peter Anvin
2002-Feb-17 22:28 UTC
[syslinux] failure when trying to build on OpenBSD 2.8
Eichert, Diana wrote:> Hello > > I'm trying to build hpa-tftp on an OpenBSD so I'll have support > for "tsize". configure run successfully, then I run gmake, then > the following errors. >Looks like a header file problem; all of these are syntax errors in header files. Hard to do anything about without actually having one of these systems... I guess my best suggestion would be try to figure out if it's the feature test macros (the -DXXXX options) which trips it up and if so why. -hpa