usual error.... x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../.. -I../../../../src -I../../../../src/sfutil -I/usr/include/pcap -I../../../../src/output-plugins -I../../../../src/detection-plugins -I../../../../src/dynamic-plugins -I../../../../src/preprocessors -I../../../../src/preprocessors/flow -I../../../../src/preprocessors/portscan -I../../../../src/preprocessors/flow/int-snort -I../../../../src/preprocessors/HttpInspect/include -I../../../../src/preprocessors/Stream5 -I/usr/include/mysql -DENABLE_MYSQL -fno-strict-aliasing -O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -Wall -DTIMESTATS -DPERF_PROFILING -DLINUX_SMP -fno-strict-aliasing -c server_stats.c In function ‘open’, inlined from ‘server_stats_save’ at server_stats.c:328: /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments make[5]: *** [server_stats.o] Error 1 make[5]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/snort-2.6.1.4/work/snort-2.6.1.4/src/preprocessors/flow/portscan' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/snort-2.6.1.4/work/snort-2.6.1.4/src/preprocessors/flow' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/snort-2.6.1.4/work/snort-2.6.1.4/src/preprocessors' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/snort-2.6.1.4/work/snort-2.6.1.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/snort-2.6.1.4/work/snort-2.6.1.4' make: *** [all] Error 2
I'll give good odds that the patch in URL fixes this
are u going to commit it to portage?
Created attachment 183541 [details, diff] snort-2.6.1.4-server_stats.patch
Created attachment 183542 [details] snort-2.6.1.4.ebuild This ebuild with the above patch compiles the snort 2.6.1.4.
Created attachment 183544 [details, diff] snort-2.6.1.4-server_stats.patch
+ 01 Mar 2009; Patrick Lauer <patrick@gentoo.org> + +files/snort-2.6.1.4-server_stats.patch, +snort-2.6.1.4-r1.ebuild: + Fixing snort 2.6.1.4 for gcc 4.3.3 / foritfy_sources. Fixes #258487. Patch + by Attila Fazekas.