I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv.
Any hint?.
Leonardo M. Ramé
http://leonardorame.blogspot.com

Mailing lists / fpc-devel / 2013-01
8 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv.
Any hint?.
Leonardo M. Ramé
http://leonardorame.blogspot.com
Leonardo M. Ramé wroteI'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv.
Install libiconv-dev, libiconv-devel or something like that.
Jonas
Mmm, no, that would work for Linux, but not on bsd.
Leonardo M. Ramé
http://leonardorame.blogspot.com
I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv…
In our previous episode, Leonardo M. Ram? said:
I'm trying to compile fpc on a new FreeBsd 9.1 machine, I've installed iconv and libiconv from ports, but /usr/bin/ld keeps complaining about cannot finding -liconv.? Any hint?.
Pass -Fl/usr/local/lib in OPT=""
----- Original Message -----
Thanks Marco, that did the trick!.
Leonardo M. Ramé
http://leonardorame.blogspot.com
I had a similar problem for X11 apps recently. I simply modified my ~/.fpc.cfg file and specified -Fl/usr/local/lib inside there. Solved my problem without too much fuss, and no need to modify compiler parameters per project.
Regards,
- Graeme -
In our previous episode, Graeme Geldenhuys said:
The TAR installer and afaik the port should add this line to the config already, so if your installation derives from that, it should be already done.
But building fpc ignores (.)fpc.cfg, so it is not a solution anyway for the reported problem.
Marco van de Voort wroteThe TAR installer and afaik the port should add this line to the config already,
I installed the stable FPC from the TAR installer, then installed the "fixes" version from the repository. All done as a normal user, not root.
But building fpc ignores (.)fpc.cfg, so it is not a solution anyway for the reported problem.
Thanks for correcting me, my mistake. Re-reading the original post, I see he mentions compiling FPC itself. My message referred to compiling my applications.
Regards,
- Graeme -