[MacPorts] #41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 --------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: tcpreplay --------------------------+-------------------------------- {{{ sudo port install tcpreplay ---> Computing dependencies for tcpreplay ---> Fetching archive for tcpreplay ---> Attempting to fetch tcpreplay-3.4.4_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/tcpreplay ---> Attempting to fetch tcpreplay-3.4.4_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/tcpreplay ---> Attempting to fetch tcpreplay-3.4.4_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/tcpreplay ---> Fetching distfiles for tcpreplay ---> Verifying checksums for tcpreplay ---> Extracting tcpreplay ---> Configuring tcpreplay ---> Building tcpreplay Error: org.macports.build for port tcpreplay returned: command execution failed Please see the log file for port tcpreplay for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_tcpreplay/tcpreplay/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port tcpreplay failed }}} Apparently, same issue as in ticket #40763 Adding the following to the CFLAGS seems to solve the issue: {{{ -D_FORTIFY_SOURCE=0 }}} -- Ticket URL: <https://trac.macports.org/ticket/41101> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: => mavericks haspatch * owner: macports-tickets@… => pmq@… Comment: We would prefer a unified diff of your Portfile changes instead of a complete new Portfile. -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Comment (by vincent.passaro@…): Error seems to still linger..... -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Comment (by wayne.veilleux@…): Sorry, I'm a little bit new to Macports. I run Maverick. I applied the tcpreplay_maverick.patch patch on /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/tcpreplay/Portfile and what should I do after ? I tried a "sudo port install tcpreplay" and I still have the error: "checking for library containing pcap_close... no \ configure: error: Unable to link libpcap in /opt/local" and failed to install tcpreplay. Thanks for any help ! -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Comment (by luc.dandoy@…): In your config.log (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_tcpreplay/tcpreplay/work/tcpreplay-3.4.4/config.log) do you have some errors regarding dbus? Something like that: {{{ configure:17394: checking for library containing pcap_close configure:17425: /usr/bin/clang -o conftest -D_U_="__attribute__((unused))" -pipe -Os -arch x86_64 -Wall -O3 -std=gnu99 -I/opt/local/include -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c /opt/local/lib/libpcap.a >&5 Undefined symbols for architecture x86_64: "_dbus_bus_add_match", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_bus_get", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_bus_register", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_connection_flush", referenced from: _dbus_write in libpcap.a(pcap-dbus.o) "_dbus_connection_open", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_connection_pop_message", referenced from: _dbus_read in libpcap.a(pcap-dbus.o) "_dbus_connection_read_write", referenced from: _dbus_read in libpcap.a(pcap-dbus.o) "_dbus_connection_send", referenced from: _dbus_write in libpcap.a(pcap-dbus.o) "_dbus_connection_set_max_received_size", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_connection_unref", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_error_free", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) _dbus_write in libpcap.a(pcap-dbus.o) "_dbus_error_is_set", referenced from: _dbus_activate in libpcap.a(pcap-dbus.o) "_dbus_free", referenced from: _dbus_read in libpcap.a(pcap-dbus.o) "_dbus_message_demarshal", referenced from: _dbus_write in libpcap.a(pcap-dbus.o) "_dbus_message_is_signal", referenced from: _dbus_read in libpcap.a(pcap-dbus.o) "_dbus_message_marshal", referenced from: _dbus_read in libpcap.a(pcap-dbus.o) "_dbus_message_unref", referenced from: _dbus_write in libpcap.a(pcap-dbus.o) ld: symbol(s) not found for architecture x86_64 }}} I had to reinstall macports on a laptop and I'm facing the same issue. but according to the config.log I think I have an error with dbus or libpcap, not "yet" tcpreplay. -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Comment (by jms@…): Hi all. So... how does this fix get put back into the port library? I'd be happy to do the work if someone could point me at a general round of instructions for such things. It looks like there is a fix, but doing a normal "port install tcpreply" returns the error... -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: normen@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Changes (by mf2k@…): * owner: pmq@… => normen@… Comment: Assigning to new maintainer. -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: normen@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Changes (by snc@…): * cc: snc@… (added) * status: new => closed * resolution: => fixed Comment: Updated in r121135. -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: normen@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Comment (by snc@…): Maintainer fixed in r121136. -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#41101: tcpreplay @3.4.4 failed to build due to strlcat/strcpy on OS X.9 ---------------------------+-------------------------------- Reporter: luc.dandoy@… | Owner: normen@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: mavericks haspatch Port: tcpreplay | ---------------------------+-------------------------------- Comment (by jmr@…): Fixed properly in r121309. -- Ticket URL: <https://trac.macports.org/ticket/41101#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts