can't compile on freebsd/i386
erikarn opened this issue · 0 comments
cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -O -gdwarf-2 -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-inline -Wcast-qual -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-incompatible-library-redeclaration -Wno-builtin-requires-header -DUINET=1 -DHAS_NATIVE_TLS -fstack-protector -D__FreeBSD__ -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-builtin -I/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/override_include -I/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/api_include -undef -imacros filtered_predefined_macros.h -nostdinc -I. -I/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys -I/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/contrib/altq -I/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/contrib/pf -I./machine_include -I./opt -Werror /usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c
/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c:508:15: error: variable has incomplete type 'union q_util'
union q_util q_util;
^
/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c:508:8: note: forward declaration of 'union q_util'
union q_util q_util;
^
/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c:509:15: error: variable has incomplete type 'union l_util'
union l_util l_util;
^
/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c:509:8: note: forward declaration of 'union l_util'
union l_util l_util;
^
/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c:526:14: error: implicit declaration of function 'in_cksumdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sum += in_cksumdata(addr, mlen) << 8;
^
/usr/home/adrian/git/github/pkelsey/libuinet/lib/libuinet/../../sys/i386/i386/in_cksum.c:533:2: error: use of undeclared identifier 'REDUCE16'
REDUCE16;
^
4 errors generated.
Makefile:349: recipe for target 'in_cksum.o' failed
gmake: *** [in_cksum.o] Error 1
adrian@lucy-11i386:~/git/github/pkelsey/libuinet/lib/libuinet %