[MacPorts] #51746: libedit @3.1 Building error - command execution failed
#51746: libedit @3.1 Building error - command execution failed ------------------------+-------------------------------- Reporter: liuhj.86@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: libedit ------------------------+-------------------------------- {{{ ---> Attempting to fetch libedit-20160618-3.1.tar.gz from http://thrysoee.dk/editline/ ---> Verifying checksums for libedit ---> Extracting libedit ---> Applying patches to libedit ---> Configuring libedit ---> Building libedit Error: org.macports.build for port libedit returned: command execution failed Error: Failed to install libedit Please see the log file for port libedit for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libedit/libedit/main.log }}} -- Ticket URL: <https://trac.macports.org/ticket/51746> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1 Building error - command execution failed -------------------------+-------------------------------- Reporter: liuhj.86@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libedit | -------------------------+-------------------------------- Comment (by liuhj.86@…): Install python27 in leopard 10.5.6 failed, libedit is a dependency to be installed -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1 Building error - command execution failed -------------------------+-------------------------------- Reporter: liuhj.86@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: libedit | -------------------------+-------------------------------- Comment (by liuhj.86@…): Xcode 3.1.4, GCC 4.2.1 -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+------------------------ Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard Port: libedit | -------------------------+------------------------ Changes (by ryandesign@…): * keywords: => leopard * owner: macports-tickets@… => mcalhoun@… Comment: Looks like the relevant error in the log is: {{{ :info:build Undefined symbols: :info:build "_libedit_getline", referenced from: :info:build _el_source in el.o :info:build _history_w in history.o :info:build _history_w in history.o :info:build _history in historyn.o :info:build _history in historyn.o :info:build ld: symbol(s) not found }}} -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+------------------------ Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard Port: libedit | -------------------------+------------------------ Comment (by kenneth.f.cunningham@…): Getline appears to be unavailable until 10.7 or later. I ran into a similar error with a different port using PPC on MacOSX 10.4 and fixed it successfully using the information here: <http://forums.macrumors.com/threads/unable-to-compile-c-program-with- getline-using-gcc.1308709/>, which sends you ultimately here < http://opensource.apple.com//source/cvs/cvs-42/cvs/lib/> for the missing functions. There are two files, getline.c and getdelim.c, and their headers in that directory, that provide the missing functions. You could try to modify history.c, historyn.c, and probably el.c to add in those functions, and see where that takes you. Good luck! -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+------------------------ Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard Port: libedit | -------------------------+------------------------ Comment (by liuhj.86@…): Replying to [comment:4 kenneth.f.cunningham@…]:
Getline appears to be unavailable until 10.7 or later.
I ran into a similar error with a different port using PPC on MacOSX 10.4 and fixed it successfully using the information here: <http://forums.macrumors.com/threads/unable-to-compile-c-program-with- getline-using-gcc.1308709/>, which sends you ultimately here < http://opensource.apple.com//source/cvs/cvs-42/cvs/lib/> for the missing functions.
There are two files, getline.c and getdelim.c, and their headers in that directory, that provide the missing functions.
There is also this fix <https://trac.macports.org/browser/trunk/dports/textproc/uni2ascii/files /patch-ascii2uni.c.diff?rev=73852> for a similar error.
You could try to modify history.c, historyn.c, and probably el.c to add in those functions, and see where that takes you.
Thanks a lot. I'll modify el.c and el.h, then have a test. -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+------------------------ Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard Port: libedit | -------------------------+------------------------ Comment (by liuhj.86@…): {{{ ---> Fetching distfiles for libedit ---> Attempting to fetch libedit-20160618-3.1.tar.gz from http://cjj.kr.distfiles.macports.org/libedit ---> Verifying checksums for libedit ---> Extracting libedit ---> Applying patches to libedit ---> Configuring libedit ---> Building libedit ---> Staging libedit into destroot ---> Installing libedit @20160618-3.1_0 ---> Activating libedit @20160618-3.1_0 ---> Cleaning libedit ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. }}} I just try to install libedit again to see where el.c and el.h is, but the errors gone. This time the archive fetched from "http://cjj.kr.distfiles.macports.org/libedit", and last time the archive fetched from "http://thrysoee.dk/editline/". -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+------------------------ Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard Port: libedit | -------------------------+------------------------ Comment (by kenneth.f.cunningham@…): I note there is an official getline replacement in the port now, added 4 days ago. It must have been rolling out when you first tried your build. -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+------------------------ Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard Port: libedit | -------------------------+------------------------ Comment (by liuhj.86@…): Replying to [comment:7 kenneth.f.cunningham@…]:
I note there is an official getline replacement in the port now, added 4 days ago. It must have been rolling out when you first tried your build.
It's OK. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#51746: libedit @3.1: Undefined symbols _libedit_getline -------------------------+--------------------------------------- Reporter: liuhj.86@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: tiger leopard snowleopard Port: libedit | -------------------------+--------------------------------------- Changes (by ryandesign@…): * keywords: leopard => tiger leopard snowleopard * status: new => closed * resolution: => fixed * cc: jmr@… (added) Comment: So I guess r149803 fixed this. -- Ticket URL: <https://trac.macports.org/ticket/51746#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts