hello,
I use havp with NetBSD and it work very well, but now I use OpenBSD.
I want too compile havp on OpenBSD 4.0, but I have problem with
socket include.
I have this error, did you know where is the problem?
thank's
cd havp && gmake
gmake[1]: Entering directory `/root/havp-0.83/havp'
g++ -O2 -I/usr/local/include -O2 -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o helper.o helper.cpp
g++ -O2 -I/usr/local/include -O2 -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o logfile.o logfile.cpp
g++ -O2 -I/usr/local/include -O2 -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o scannerhandler.o scannerhandler.cpp
In file included from sockethandler.h:23,
from genericscanner.h:22,
from scannerhandler.h:22,
from scannerhandler.cpp:19:
/usr/include/sys/socket.h:145: error: 'u_int8_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:146: error: 'sa_family_t' is used as a type, but is
not defined as a type.
/usr/include/sys/socket.h:163: error: 'u_int8_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:164: error: 'sa_family_t' is used as a type, but is
not defined as a type.
/usr/include/sys/socket.h:166: error: 'u_int64_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:230: error: 'uid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:231: error: 'uid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:232: error: 'gid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:233: error: 'gid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:235: error: syntax error before `[' token
/usr/include/sys/socket.h:348: error: 'socklen_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:352: error: 'socklen_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:374: error: 'socklen_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:429: error: 'caddr_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:433: error: 'caddr_t' is used as a type, but is not
defined as a type.
In file included from sockethandler.h:23,
from genericscanner.h:22,
from scannerhandler.h:22,
from scannerhandler.cpp:19:
/usr/include/sys/socket.h:444: error: syntax error before `*' token
/usr/include/sys/socket.h:445: error: type specifier omitted for parameter `
socklen_t'
/usr/include/sys/socket.h:446: error: type specifier omitted for parameter `
socklen_t'
/usr/include/sys/socket.h:447: error: syntax error before `*' token
/usr/include/sys/socket.h:448: error: syntax error before `*' token
/usr/include/sys/socket.h:449: error: syntax error before `*' token
/usr/include/sys/socket.h:450: error: syntax error before `*' token
/usr/include/sys/socket.h:452: error: syntax error before `,' token
/usr/include/sys/socket.h:453: error: syntax error before `,' token
/usr/include/sys/socket.h:454: error: syntax error before `,' token
/usr/include/sys/socket.h:455: error: syntax error before `,' token
/usr/include/sys/socket.h:456: error: syntax error before `,' token
/usr/include/sys/socket.h:458: error: syntax error before `,' token
/usr/include/sys/socket.h:459: error: type specifier omitted for parameter `
socklen_t'
gmake[1]: *** [scannerhandler.o] Error 1
gmake[1]: Leaving directory `/root/havp-0.83/havp'
gmake: *** [all] Error 2
|