Trying to use libidn in a port but get this error ld: library not found for -lidn

Brandon Allbery allbery.b at
Sat Aug 15 09:19:01 PDT 2015

On Sat, Aug 15, 2015 at 12:14 PM, Ben Greenfield <ben at> wrote:

> gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o encodings.o encodings.c
> gcc -o 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

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list