Solved FreeBSD 10.1: undefined reference to libiconv

Hi all,

I'm trying to compile a special version of transmission for use with TorrentfluxNG (previously TorrentfluxB4RT). This is the error I get:

Code:
./libtransmission.a(utils.o): In function `to_utf8':
/root/tf_temp/transmission-2.73/libtransmission/utils.c:1300: undefined reference to `libiconv_open'
/root/tf_temp/transmission-2.73/libtransmission/utils.c:1302: undefined reference to `libiconv'
/root/tf_temp/transmission-2.73/libtransmission/utils.c:1304: undefined reference to `libiconv_close'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[1]: stopped in /root/tf_temp/transmission-2.73/libtransmission
*** Error code 1

Stop.
make: stopped in /root/tf_temp/transmission-2.73
Libiconv is installed from ports:
Code:
# pkg info | grep libiconv
libiconv-1.14_6                Character set conversion library
System is a clean install of 10.1 (not an upgrade from 9 or 10)
Code:
# uname -a
FreeBSD xxx.xxx.xxx.com 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

Any ideas how to get past this?

Many thanks

Mike
 
Yep of course, that's the first thing I googled. didn't help at all, the error message was still the same.
 
waaaaaait I did it again like this:

Code:
./configure --without-iconv
make CFLAGS=-liconv
make install

and it compiled....

with this warnings:

during ./configure
Code:
configure: WARNING: unrecognized options: --without-iconv

and during make
Code:
cc: warning: -liconv: 'linker' input unused

not sure if it's correct...
 
Back
Top