aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problems building on Debian Unstable (From cvs)  (Read 3290 times)

exobuzz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Problems building on Debian Unstable (From cvs)
« on: April 09, 2004, 03:20:47 PM »

hi.. first of all. keep up the good work with amule :-)

now my problems.. I havn't built from cvs for a while, but this corruption bug was driving me crazy.. so

ran configure with ./configure --disable-debug-syms --enable-optimise

it recognises my system as debian/gentoo for the cryptoo headers

Crypto++ library/headers style?                          gentoo_debian

however

g++  -I/usr/include/ -D__CRYPTO_DEBIAN_GENTOO__  -g -O2    -o amulecmd  amulecmd-TextClient.o amulecmd-MD5Sum.o amulecmd-ECSocket.o -pthread -lwx_base-2.4 -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcrypto++
/usr/bin/ld: cannot find -lcrypto++
collect2: ld returned 1 exit status

There is no libcrypto++ as part of the libcrypto++ dev deb. There is a libcrypto though. removing of the -lcrypto++ will allow this to work (As its already specifies -lcrypto twice!) (Adding a symlink can also fix this of course.

Then later on I get another error.  some sources are including an include which doesn't exist

crypto++/config.h which doesn't exist

however there is a  crypto++/cryptopp_config.h which is the one it wants.

guess it needs some more checks in the configure stage

I'll symlink the config.h and see if i can get it to build
Logged

exobuzz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Problems building on Debian Unstable (From cvs)
« Reply #1 on: April 09, 2004, 03:49:16 PM »

So, I changed the files

ClientCredits.cpp
ClientCredits.h

to use crypto++/cryptopp_config.h

and it all seems to build well (with some warning about names being redefined).. Do both ClientCredits.cpp and CleintCredits.h need to include this file ? Seems strange.
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Problems building on Debian Unstable (From cvs)
« Reply #2 on: April 09, 2004, 04:05:53 PM »

hi,

seems only debian doesn't include config.h in the sources .. all other distris have both (cryptopp_config.h & config.h) or only config.h

greets

exobuzz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Problems building on Debian Unstable (From cvs)
« Reply #3 on: April 09, 2004, 04:10:04 PM »

I made some mistakes my my original post. I mistook libcrypto as the required library on my system its not its libcrypto++5.1. There is no libcrypto++ though.

i added -lcrypto++5.1 at the linking stage and everything seems to be working.
Logged

DrazziB

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
    • http://www.drazzib.com/
Debian Bug for this
« Reply #4 on: April 10, 2004, 02:21:38 AM »

There is a bug report on this in BTS :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=241148

May be fixed in next package upload :)
Logged