[netsa-tools-discuss] Compilation error with SiLK 3.17.0
Bo Bayles
bbayles at obsrvbl.com
Sat Apr 21 23:03:56 EDT 2018
I found that I get a compilation error when building SiLK 3.17.0 on
CentOS 6 that I didn't get with 3.16.1.
Specifically the error is:
Making all in rwstats
make[3]: Entering directory `/netsa-pkg/silk-src/src/rwstats'
depbase=`echo rwstatssetup.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -I. -I../../src/include -I../../src/include -DNDEBUG
-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -Wall -W -Wmissing-prototypes
-Wformat=2 -Wdeclaration-after-statement -Wpointer-arith
-fno-strict-aliasing -O3 -MT rwstatssetup.o -MD -MP -MF $depbase.Tpo
-c -o rwstatssetup.o rwstatssetup.c &&\
mv -f $depbase.Tpo $depbase.Po
rwstatssetup.c:97: error: redefinition of typedef 'builtin_field_t'
rwstats.h:67: note: previous declaration of 'builtin_field_t' was here
make[3]: *** [rwstatssetup.o] Error 1
make[3]: Leaving directory `/netsa-pkg/silk-src/src/rwstats'
make[2]: Leaving directory `/netsa-pkg/silk-src/src'
make[2]: *** [all-recursive] Error 1
make[1]: Leaving directory `/netsa-pkg/silk-src'
make[1]: *** [all-recursive] Error 1
make: *** [silk] Error 2
I notice that this is something that changed in the new version:
https://github.com/bbayles/netsa-pkg/blob/090f127375f0b29ffbc000da29c6c1e5243036e2/silk-src/src/rwstats/rwstatssetup.c#L82-L97
I've not figured out why building on Debian still works, but I wonder
if this might be fixed? The RHEL 6 family will be around for a while,
I'm afraid.
Best regards,
-Bo
More information about the netsa-tools-discuss
mailing list