Date: Sun, 27 Jan 2013 07:36:04 -0800 (PST) From: =?iso-8859-1?Q?Leonardo_M=2E_Ram=E9?= <martinrame@yahoo.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: /usr/bin/ld: cannot find -liconv Message-ID: <1359300964.71525.YahooMailNeo@web126204.mail.ne1.yahoo.com> In-Reply-To: <1359300490.69232.YahooMailNeo@web126205.mail.ne1.yahoo.com> References: <1359300490.69232.YahooMailNeo@web126205.mail.ne1.yahoo.com>
index | next in thread | previous in thread | raw e-mail
----- Original Message ----- > From: Leonardo M. Ramé <martinrame@yahoo.com> > To: "freebsd-questions@freebsd.org" <freebsd-questions@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.comhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1359300964.71525.YahooMailNeo>
