[MacPorts] #51746: libedit @3.1: Undefined symbols _libedit_getline
MacPorts
noreply at macports.org
Sun Jul 3 05:35:47 PDT 2016
#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
More information about the macports-tickets
mailing list