Page 1 of 1

Compile Problem

Posted: Thu Sep 15, 2011 7:02 am
by shevegen
In file included from utp.cpp:78:0:
utp_config.h:8:2: warning: #warning implement this in libtransmission
CXX utp_utils.o
AR libutp.a
make[2]: Leaving directory `/Depot/Temp/transmission-2.33/third-party/libutp'
make[2]: Entering directory `/Depot/Temp/transmission-2.33/third-party'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/Depot/Temp/transmission-2.33/third-party'
make[1]: Leaving directory `/Depot/Temp/transmission-2.33/third-party'
Making all in libtransmission
make[1]: Entering directory `/Depot/Temp/transmission-2.33/libtransmission'
CC announcer.o
CC announcer-http.o
CC announcer-udp.o
CC bandwidth.o
CC bencode.o
CC bitfield.o
CC blocklist.o
CC cache.o
CC clients.o
CC completion.o
CC ConvertUTF.o
CC crypto.o
CC fdlimit.o
CC handshake.o

handshake.c: In function ‘canRead’:
handshake.c:996:23: warning: ‘ret’ may be used uninitialized in this function
CC history.o

CC inout.o
CC json.o
CC JSON_parser.o
CC list.o
CC magnet.o
CC makemeta.o
CC metainfo.o
CC natpmp.o
CC net.o
CC peer-io.o
CC peer-mgr.o
CC peer-msgs.o
CC platform.o
CC port-forwarding.o
CC ptrarray.o
CC resume.o
CC rpcimpl.o
CC rpc-server.o
CC session.o
CC stats.o
CC torrent.o
CC torrent-ctor.o
CC torrent-magnet.o
CC tr-dht.o
CC tr-lpd.o
CC tr-udp.o

CC tr-utp.o

CC tr-getopt.o

CC trevent.o

trevent.c: In function ‘tr_runInEventThread’:
trevent.c:322:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
trevent.c:325:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
trevent.c: In function ‘tr_eventInit’:
trevent.c:267:9: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
CC upnp.o

CC utils.o

utils.c: In function ‘tr_urlParse’:
utils.c:1013:18: warning: ‘host_len’ may be used uninitialized in this function
utils.c:1014:18: warning: ‘protocol_len’ may be used uninitialized in this function
CC verify.o
CC web.o
CC webseed.o
CC wildmat.o
AR libtransmission.a
CC blocklist-test.o
CCLD blocklist-test

./libtransmission.a(utils.o): In function `to_utf8':
/Depot/Temp/transmission-2.33/libtransmission/utils.c:1248: undefined reference to `libiconv_open'
/Depot/Temp/transmission-2.33/libtransmission/utils.c:1250: undefined reference to `libiconv'
/Depot/Temp/transmission-2.33/libtransmission/utils.c:1252: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[1]: *** [blocklist-test] Error 1
make[1]: Leaving directory `/Depot/Temp/transmission-2.33/libtransmission'
make: *** [all-recursive] Error 1

Re: Compile Problem

Posted: Thu Sep 15, 2011 7:02 am
by shevegen
GNU libiconv is compiled from source to /usr prefix

But Transmission can not find it?

Re: Compile Problem

Posted: Fri Sep 16, 2011 6:20 pm
by rb07
Its not transmission the one that cannot find it, its the linker.

That means you probably forgot to tell the linker that a new library was installed (i.e. executing ldconfig).

Re: Compile Problem

Posted: Mon Dec 05, 2011 9:39 pm
by churlbong
Were you able resolve this issue? I am getting the same errors trying to build transmission 2.42 on Solaris 11 Express. I believe my problem is that libiconv is in a non-standard dir (/usr/gnu/lib), and I can't seem to get the linker to find it there. Let me know if you have any suggestions...

Re: Compile Problem

Posted: Mon Dec 05, 2011 11:12 pm
by rb07
churlbong:
Solaris is different from everything else, you have several choices to fix the compilation problem:
  • Add the location of the library to configure, i.e.

    Code: Select all

    ./configure ... CFLAGS="... -I/usr/gnu/include" LDFLAGS="... -L/usr/gnu/lib -R/usr/gnu/lib
  • Learn to use Solaris, i.e. the command crle is used to define the library path.
  • And many others, but I hope by now you get the idea.