Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 258487

Summary: net-analyzer/snort-2.6.1.4 fails with gcc-4.3.3 ( DFORTIFY_SOURCE=2 )
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
URL: http://cvs.fedoraproject.org/viewvc/devel/snort/snort-2.7.0.1-glibc.patch?view=log
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: snort-2.6.1.4-server_stats.patch
snort-2.6.1.4.ebuild
snort-2.6.1.4-server_stats.patch

Description Patrizio Bassi 2009-02-10 18:11:06 UTC
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
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-11 00:59:11 UTC
I'll give good odds that the patch in URL fixes this
Comment 2 Patrizio Bassi 2009-02-14 16:20:56 UTC
are u going to commit it to portage?
Comment 3 Attila Fazekas 2009-03-01 07:10:50 UTC
Created attachment 183541 [details, diff]
snort-2.6.1.4-server_stats.patch
Comment 4 Attila Fazekas 2009-03-01 07:13:32 UTC
Created attachment 183542 [details]
snort-2.6.1.4.ebuild

This ebuild with the above patch compiles the snort 2.6.1.4.
Comment 5 Attila Fazekas 2009-03-01 07:28:34 UTC
Created attachment 183544 [details, diff]
snort-2.6.1.4-server_stats.patch
Comment 6 Patrick Lauer gentoo-dev 2009-03-01 19:16:08 UTC
+  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.