Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258487 - net-analyzer/snort-2.6.1.4 fails with gcc-4.3.3 ( DFORTIFY_SOURCE=2 )
Summary: net-analyzer/snort-2.6.1.4 fails with gcc-4.3.3 ( DFORTIFY_SOURCE=2 )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Netmon Herd
URL: http://cvs.fedoraproject.org/viewvc/d...
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2009-02-10 18:11 UTC by Patrizio Bassi
Modified: 2009-03-01 19:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
snort-2.6.1.4-server_stats.patch (snort-2.6.1.4-server_stats.patch,501 bytes, patch)
2009-03-01 07:10 UTC, Attila Fazekas
Details | Diff
snort-2.6.1.4.ebuild (snort-2.6.1.4.ebuild,5.89 KB, text/plain)
2009-03-01 07:13 UTC, Attila Fazekas
Details
snort-2.6.1.4-server_stats.patch (snort-2.6.1.4-server_stats.patch,525 bytes, patch)
2009-03-01 07:28 UTC, Attila Fazekas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.