Trying to use libidn in a port but get this error ld: library not found for -lidn
ben at cogs.com
Sun Aug 16 12:43:42 PDT 2015
> On Aug 15, 2015, at 1:48 PM, Ben Greenfield <ben at cogs.com> wrote:
>> On Aug 15, 2015, at 12:19 PM, Brandon Allbery <allbery.b at gmail.com <mailto:allbery.b at gmail.com>> wrote:
>> On Sat, Aug 15, 2015 at 12:14 PM, Ben Greenfield <ben at cogs.com <mailto:ben at cogs.com>> wrote:
>> gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o encodings.o encodings.c
>> MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET;
>> gcc -o encodings.so encodings.o -bundle -undefined dynamic_lookup -lidn
>> ld: library not found for -lidn
>> You have the appropriate -I at compile time to find MacPorts-installed headers, but no matching -L at link time to find MacPorts-installed libraries.
> Great you were exactly right and I managed to find the problem.
I think I fixed the problem by adding -L/opt/local/lib to the LDFLAGS in macosx specific section.
Does that sound like the expected fix?
>> brandon s allbery kf8nh sine nomine associates
>> allbery.b at gmail.com <mailto:allbery.b at gmail.com> ballbery at sinenomine.net <mailto:ballbery at sinenomine.net>
>> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net <http://sinenomine.net/>
> macports-users mailing list
> macports-users at lists.macosforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users