[MacPorts] #41176: snort 2.9.1.2_0 build failure under Mavericks
#41176: snort 2.9.1.2_0 build failure under Mavericks ----------------------------+-------------------------------- Reporter: mschamschula@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: ----------------------------+-------------------------------- I get the following error when building snort under Mavericks: {{{ /usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/sw/include -I../../src/output-plugins -I../../src /detection-plugins -I../../src/dynamic-plugins -I../../src/preprocessors -I../../src/preprocessors/portscan -I../../src/preprocessors/HttpInspect/include -I../../src/preprocessors/Stream5 -I../../src/target-based -I../../src/control -I/opt/local/include -I/opt/local/include -DDYNAMIC_PLUGIN -I/opt/local/include -DZLIB -DGRE -DMPLS -DPREPROCESSOR_AND_DECODER_RULE_EVENTS -DPPM_MGR -DENABLE_PAF -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 -DSF_WCHAR -DSUP_IP6 -DTARGET_BASED -DPERF_PROFILING -DSNORT_RELOAD -DNORMALIZER -DACTIVE_RESPONSE -pipe -Os -arch x86_64 -DSF_VISIBILITY -fvisibility=hidden -Wall -c spo_alert_test.c In file included from spo_alert_syslog.c:70: ../../src/strlcatu.h:24:8: error: expected parameter declarator size_t strlcat(char *, const char *, size_t); ^ }}} main.log attached. -- Ticket URL: <https://trac.macports.org/ticket/41176> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => markd@… * keywords: => mavericks * port: => snort -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by mschamschula@…): Apparently the size_t issue is a well known problem when using clang instead of gcc. I added {{{ configure.cc ${prefix}/bin/gcc-mp-4.8 }}} to get around the clang issue. A more general solution is required here. Portfile diff is attached. -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by mschamschula@…): Also note snort 2.9.5.5 depends on daq 2.0.1, see ticket #41330 -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by mschamschula@…): Replying to [comment:3 mschamschula@…]:
Apparently the size_t issue is a well known problem when using clang instead of gcc.
I added
{{{ configure.cc ${prefix}/bin/gcc-mp-4.8 }}}
to get around the clang issue. A more general solution is required here. Portfile diff is attached.
I tried building snort 2.9.5.6 using clang by adding {{{ configure.cflags -D_FORTIFY_SOURCE=0 }}} instead of configure.cc This ran into a different issue: {{{ libtool: link: /usr/bin/clang -pipe -D_FORTIFY_SOURCE=0 -arch x86_64 -DSF_VISIBILITY -fvisibility=hidden -Wall -pipe -D_FORTIFY_SOURCE=0 -arch x86_64 -DSF_VISIBILITY -fvisibility=hidden -Wall -Wl,-headerpad_max_install_names -arch x86_64 -o u2spewfoo u2spewfoo- u2spewfoo.o -L/opt/local/lib -ldaq_static -ldnet -lcrypto -lpcre -lm -ldl -ldaq_static_modules -lsfbpf -lpcap -lz -lpthread Undefined symbols for architecture x86_64: "_free_iterator", referenced from: _u2dump in u2spewfoo-u2spewfoo.o ld: symbol(s) not found for architecture x86_64 }}} Portfile-snort.2.diff and main.3.log attached -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by mschamschula@…): In the meantime snort has been updated to @2.9.6.0. Still using the same workarounds as for versions 2.9.5.x. -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by jul_bsd@…): same problem here. with latest Portfile patch build/install without problem -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by mschamschula@…): Bumped the diff file ({{{Portfile-snort.4.diff}}}) to snort version 2.9.6.2. Also fixed {{{master_sites}}} and {{{livecheck}}}, as the URL for the download page has changed. -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: snort | -----------------------------+----------------------- Comment (by mschamschula@…): The ticket is superseded by #42531. Please close! -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#41176: snort 2.9.1.2_0 build failure under Mavericks -----------------------------+----------------------- Reporter: mschamschula@… | Owner: markd@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: duplicate | Keywords: mavericks Port: snort | -----------------------------+----------------------- Changes (by mf2k@…): * status: new => closed * resolution: => duplicate -- Ticket URL: <https://trac.macports.org/ticket/41176#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts