[Oisf-users] Odd build error on hardened-gentoo

Cooper F. Nelson cnelson at ucsd.edu
Sun Oct 13 00:26:00 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The suricata dev. branch fails to build on my gentoo system with gcc
v4.7.3 with this error:

> gcc -DHAVE_CONFIG_H -I. -I..   -I./../libhtp/  -I/usr/include/nspr  -I/usr/include/nss -I/usr/include/nspr  -DLOCAL_STATE_DIR=\"/var\" -g -O2 -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -fno-strict-aliasing -Wno-unused-parameter -std=gnu99 -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE_LIBNET_ICMPV6_UNREACH  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DHAVE_LIBCAP_NG -DREVISION="64203be" -MT suricata.o -MD -MP -MF .deps/suricata.Tpo -c -o suricata.o suricata.c
> suricata.c: In function 'SCPrintBuildInfo':
> suricata.c:682:50: error: 'defined' undeclared (first use in this function)
> suricata.c:682:50: note: each undeclared identifier is reported only once for each function it appears in
> suricata.c:682:50: error: expected ')' before numeric constant
> make[3]: *** [suricata.o] Error 1

Reverting to gcc v.4.6.3 fixes this issue.  Suricata 2.0 beta 1 builds
fine.

I'm not filing a bug report as this could very well be an issue unique
to my environment, I'm more curious too see if anyone else has
encountered this.

- -- 
Cooper Nelson
Network Security Analyst
UCSD ACT Security Team
cnelson at ucsd.edu x41042
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSWeiYAAoJEKIFRYQsa8FW6LAIAIf35c0ygGWNkU14Pbj+28+9
k1w2KxwdqiM7OLcVZ3iC5I3EUOeUz9IHfK2w+JBLYi90Nv3LLOeeaCw/lAyzWpn9
2nVSkNEIKFxTAEKB+yV7g1uUxgFR5ORRqVmoXOOrLmKGhAgkPfLez57UyG1fvHXi
sfsvCa70QOwAnN5eY2uaB+BmIs9UmqriOiz5eRNPVCWo1gdGnv0/o1vnGuXCelyM
b3hk8Q6lt8hgr4/+vBiw1rDQiaA8mKlboBzV0GlRXXhIn+0JcS+bNRGXs7TWRgCf
caaPN2R8RdpIcxaRkQu0uqniHI+t2/GxEOFMrifcWJiYkrfXkSaOPCJ2ii9xDgs=
=Llr5
-----END PGP SIGNATURE-----


More information about the Oisf-users mailing list