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

Peter Manev petermanev at gmail.com
Mon Oct 14 07:20:37 UTC 2013


On Sun, Oct 13, 2013 at 2:26 AM, Cooper F. Nelson <cnelson at ucsd.edu> wrote:
> -----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.
>

What does  - equery list "*gcc*"  - show?


-- 
Regards,
Peter Manev



More information about the Oisf-users mailing list