/usr/bin/ld: cannot find -liconv

Leonardo M. Ramé martinrame at yahoo.com
Sun Jan 27 15:36:11 UTC 2013


----- Original Message -----

> From: Leonardo M. Ramé <martinrame at yahoo.com>
> To: "freebsd-questions at freebsd.org" <freebsd-questions at freebsd.org>
> Cc: 
> Sent: Sunday, January 27, 2013 12:28 PM
> Subject: /usr/bin/ld: cannot find -liconv
> 
> Hi, I'm trying to compile FreePascal from sources, but it keeps complaining 
> about cannot find -liconv:
> 
> When I do "gmake all" on fpc src directory, I get this:
> 
> Output of ldconfig -r|grep iconv:
> 
> 19:-lkiconv.4 => /lib/libkiconv.so.4
> 112:-liconv.3 => /usr/local/lib/libiconv.so.3
> 433:-lbiconv.2 => /usr/local/lib/libbiconv.so.2
> 434:-lticonv.6 => /usr/local/lib/libticonv.so.6
> 
> 
> Output of gmake all:
> 
> ...
> /usr/bin/ld: cannot find -liconv
> fpdoc.pp(404,1) Error: Error while linking
> fpdoc.pp(404,1) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> gmake[3]: *** [fpdoc] Error 1
> gmake[3]: Leaving directory `/usr/home/martin/fpc/utils/fpdoc'
> gmake[2]: *** [fpdoc_all] Error 2
> gmake[2]: Leaving directory `/usr/home/martin/fpc/utils'
> gmake[1]: *** [utils_all] Error 2
> gmake[1]: Leaving directory `/usr/home/martin/fpc'
> gmake: *** [build-stamp.x86_64-freebsd] Error 2
> 
> 
> This is a FreeBsd 9.1 RELEASE x86-64 machine.
> 
> What I'm doing wrong?.
>  


The solution was doing:

gmake all OPT="-Fl/usr/local/lib"


 
Leonardo M. Ramé
http://leonardorame.blogspot.com



More information about the freebsd-questions mailing list