Build failure on recent FreeBSD current
Closed this issue · 2 comments
wxsBSD commented
Trying to build libuinet under a fairly recent FreeBSD current (11.0-CURRENT FreeBSD 11.0-CURRENT #23 r269088) fails with the following:
cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -ggdb -O0 -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -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 -fstack-protector -I. -I/usr/home/wxs/dev/libuinet/lib/libuinet/api_include -Werror uinet_host_interface.c
In file included from uinet_host_interface.c:82:
In file included from /usr/home/wxs/dev/libuinet/lib/libuinet/api_include/uinet_api.h:36:
/usr/home/wxs/dev/libuinet/lib/libuinet/api_include/uinet_api_types.h:449:11: error:
expected ';' at end of declaration list
uint64_t ifi_epoch; /* uptime at attach or s...
^
/usr/include/net/if.h:107:30: note: expanded from macro 'ifi_epoch'
#define ifi_epoch __ifi_epoch.tt
^
1 error generated.
gmake: *** [uinet_host_interface.o] Error 1
wxs@ack libuinet %
caladri commented
This is a known issue; for now you can add #undef ifi_epoch
right before that line in uinet_api_types.h. As I understand it, Pat has a better fix in mind long-term.
caladri commented
Checked in the temporary hack of just doing the #undef. Hope that helps going forward!