Link to home
Start Free TrialLog in
Avatar of pause-
pause-

asked on

Ctorrent on OpenBSD

I need help installing the Bittorrent client CTorrent on my OpenBSD machine. When i run the configure script i get this error:

/usr/tmp/ctorrent-1.3.2> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... gcc
checking for SHA1_Init in -lssl... no
checking for SHA1_Init in -lcrypt... no
checking for SHA1_Init in -lmd... no
configure: error: error, Please install OpenSSL first!

OpenSSL is installed by default on OpenBSD systems but for some reason the configure script can't find it. I've also tried ./configure --libdir=/usr/lib with no luck.

The app can be found @ http://ctorrent.sourceforge.net/?action=started

Any ideas anyone?
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of turn123
turn123
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
pause-, Please respond to the comments from the Experts.
See:  https://www.experts-exchange.com/help.jsp#hi49 Thank you, turn123 (s)
Avatar of pause-
pause-

ASKER

Sorry turn123, I've been away for a while and haven't had any time to check for answers the past week. When I didn't get any responses I decided to just forget about installing this application.

I'll reward you with the points anyway, for poiting me in the correct direction. Thanks mate.
Try to modify the "configure" file, replacing "-lssl" to "-lcrypto", then try again.

It worked for me.

(Thank to YuHong)
Hi,
I have been trying to install ctorrent on openbsd for a while without any progress.
I am keep getting the message:
error: please install openssl first!
provided that openssl is already installed.
I changed the configure file as mentioned here :"changed -lssl to -lcrypto", now i do not get the openssl error message. however, when i run make, i get a bunch of errors:
g++  -g -O2    -o ctorrent  bencode.o bitfield.o  btconfig.o btcontent.o btfiles.o  btrequest.o btstream.o bufio.o  connect_nonb.o ctorrent.o downloader.o  httpencode.o iplist.o peer.o  peerlist.o rate.o setnonblock.o  sigint.o tracker.o  -lcrypto
iplist.cpp:99: Undefined symbol `debug(int, char const *,...)' referenced from text segment
iplist.cpp:102: Undefined symbol `debug(int, char const *,...)' referenced from text segment
iplist.cpp:116: Undefined symbol `debug(int, char const *,...)' referenced from text segment
iplist.cpp:139: Undefined symbol `debug(int, char const *,...)' referenced from text segment
iplist.cpp:179: Undefined symbol `debug(int, char const *,...)' referenced from text segment
peer.cpp:78: Undefined symbol `debug(int, char const *,...)' referenced from text segment
peer.cpp:85: Undefined symbol `debug(int, char const *,...)' referenced from text segment
peer.cpp:96: Undefined symbol `debug(int, char const *,...)' referenced from text segment
peer.cpp:141: Undefined symbol `debug(int, char const *,...)' referenced from text segment
peer.cpp:0: More undefined symbol debug(int, char const *,...)refs follow
tracker.cpp:305: Undefined symbol `_inflateInit2_' referenced from text segment
tracker.cpp:318: Undefined symbol `_inflate' referenced from text segment
tracker.cpp:327: Undefined symbol `_inflateEnd' referenced from text segment
collect2: ld returned 1 exit status
*** Error code 1

Stop in /home/rdinoni/new/ctorrent-bigbro (line 197 of Makefile).

any ideas?