1.31 Compile Errors on CentOS 5.2

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission

1.31 Compile Errors on CentOS 5.2

Postby skycree » Fri Aug 08, 2008 8:41 pm

OS: CentOS 5.2 Kernel 2.6.18-92.1.6.el5

Libs and CFLAGS bypassing pkg-config:

OPENSSL_LIBS=-L/usr/lib/openssl;export OPENSSL_LIBS
LIBCURL_LIBS=-L/usr/local/downloads/curl-7.18.2/lib/.libs;export LIBCURL_LIBS
LIBCURL_CFLAGS=-I/usr/local/downloads/curl-7.18.2/include/;export LIBCURL_CFLAGS

After configure I do a make and receive the following errors. Research indicates that it could be a problem with openssl but I do not know how to fix it.

Making all in libtransmission
make[1]: Entering directory `/usr/local/downloads/transmission-1.31/libtransmission'
make all-am
make[2]: Entering directory `/usr/local/downloads/transmission-1.31/libtransmission'
/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/downloads/curl-7.18.2/include/ -I/usr/kerberos/include -pthread -g -Wall -W -O3 -funroll-loops -o bencode-test bencode-test.o ./libtransmission.a ../third-party/shttpd/libshttpd.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/libevent/libevent.la -L/usr/local/downloads/curl-7.18.2/lib/.libs -L/usr/lib/openssl -lm
gcc -I/usr/local/downloads/curl-7.18.2/include/ -I/usr/kerberos/include -pthread -g -Wall -W -O3 -funroll-loops -o bencode-test bencode-test.o ./libtransmission.a ../third-party/shttpd/libshttpd.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/libevent/.libs/libevent.a -lnsl -lrt -lresolv -L/usr/local/downloads/curl-7.18.2/lib/.libs -L/usr/lib/openssl -lm
./libtransmission.a(utils.o): In function `tr_base64_decode':
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1182: undefined reference to `BIO_f_base64'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1182: undefined reference to `BIO_new'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1183: undefined reference to `BIO_new_mem_buf'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1184: undefined reference to `BIO_push'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1185: undefined reference to `BIO_read'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1200: undefined reference to `BIO_free_all'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1189: undefined reference to `BIO_free_all'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1190: undefined reference to `BIO_f_base64'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1190: undefined reference to `BIO_new'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1192: undefined reference to `BIO_new_mem_buf'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1193: undefined reference to `BIO_push'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1194: undefined reference to `BIO_read'
./libtransmission.a(utils.o): In function `tr_base64_encode':
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1156: undefined reference to `BIO_s_mem'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1156: undefined reference to `BIO_new'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1157: undefined reference to `BIO_f_base64'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1157: undefined reference to `BIO_new'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1158: undefined reference to `BIO_push'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1159: undefined reference to `BIO_write'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1160: undefined reference to `BIO_ctrl'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1161: undefined reference to `BIO_ctrl'
/usr/local/downloads/transmission-1.31/libtransmission/utils.c:1166: undefined reference to `BIO_free_all'
collect2: ld returned 1 exit status
make[2]: *** [bencode-test] Error 1
make[2]: Leaving directory `/usr/local/downloads/transmission-1.31/libtransmission'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/downloads/transmission-1.31/libtransmission'
make: *** [all-recursive] Error 1

v1.22 works fine but I cannot get it to work correctly with Clutch, hence the reason I am trying to upgrade.

Thanks for any help.
skycree

 
Posts: 7
Joined: Fri Aug 08, 2008 8:16 pm

Re: 1.31 Compile Errors on CentOS 5.2

Postby Charles Kerr » Fri Aug 08, 2008 8:49 pm

Looks like you're causing link problems to openssl when you override the openssl flags and do them by hand.

You'd need to set OPENSSL_LIBS to something like "-L/usr/lib -lopenssl" I think.
Charles Kerr
Transmission Developer
 
Posts: 1783
Joined: Sat May 26, 2007 3:39 pm
Location: Cydonia

Re: 1.31 Compile Errors on CentOS 5.2

Postby skycree » Sat Aug 09, 2008 1:39 am

Nope, I tried that option but it didn't have any different effect. I've now removed the variable completely and am getting make errors related to curl. I guess I will just keep playing with it.

Thanks
skycree

 
Posts: 7
Joined: Fri Aug 08, 2008 8:16 pm

Re: 1.31 Compile Errors on CentOS 5.2

Postby Charles Kerr » Sat Aug 09, 2008 2:24 am

CentOS is a RHEL-derived distro, right? If so, why not just install the openssl-devel and libcurl-devel rpms?
Charles Kerr
Transmission Developer
 
Posts: 1783
Joined: Sat May 26, 2007 3:39 pm
Location: Cydonia


Return to Support

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 4 guests