[MacPorts] #41176: snort 2.9.1.2_0 build failure under Mavericks

MacPorts noreply at macports.org
Tue Nov 26 13:34:45 PST 2013


#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


More information about the macports-tickets mailing list