aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Error compiling on gentoo  (Read 2717 times)

lfranchi

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Error compiling on gentoo
« on: August 08, 2004, 03:53:59 AM »

I am trying to compile amule on my gentoo box. I'm using the official gentoo amule-2.0.0_rc5 ebuild.

gcc version 3.4.0 20040601 (Gentoo Linux 3.4.0-r6, ssp-3.4-2, pie-8.7.6.3)

here is the error that i get when compiling:

Code: [Select]
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libwx_gtk-2.4.so, may conflict with libstdc++.so.5
amule-BaseClient.o(.gnu.linkonce.t._ZN8CryptoPP18StandardReallocateIjNS_16AlignedAllocatorIjEEEEN1A7pointerERS3_PT_NS3_9size_typeES8_b+0x3d): In function `A::pointer CryptoPP::StandardReallocate >(A&, unsigned*, A::size_type, A::size_type, bool)':
: undefined reference to `CryptoPP::AlignedAllocator::allocate(unsigned, void const*)'
amule-BaseClient.o(.gnu.linkonce.t._ZN8CryptoPP18StandardReallocateIjNS_16AlignedAllocatorIjEEEEN1A7pointerERS3_PT_NS3_9size_typeES8_b+0x77): In function `A::pointer CryptoPP::StandardReallocate >(A&, unsigned*, A::size_type, A::size_type, bool)':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-BaseClient.o(.gnu.linkonce.t._ZN8CryptoPP18StandardReallocateIjNS_16AlignedAllocatorIjEEEEN1A7pointerERS3_PT_NS3_9size_typeES8_b+0x9c): In function `A::pointer CryptoPP::StandardReallocate >(A&, unsigned*, A::size_type, A::size_type, bool)':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-BaseClient.o(.gnu.linkonce.t._ZN8CryptoPP18StandardReallocateIjNS_16AlignedAllocatorIjEEEEN1A7pointerERS3_PT_NS3_9size_typeES8_b+0xb3): In function `A::pointer CryptoPP::StandardReallocate >(A&, unsigned*, A::size_type, A::size_type, bool)':
: undefined reference to `CryptoPP::AlignedAllocator::allocate(unsigned, void const*)'
amule-ClientCredits.o(.text+0x26b6): In function `CClientCreditsList::CreateKeyPair()':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-ClientCredits.o(.text+0x2f86): In function `CClientCreditsList::CreateKeyPair()':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-ClientCredits.o(.gnu.linkonce.t._ZN8CryptoPP11RSAFunctionC1Ev+0xc9): In function `CryptoPP::RSAFunction::RSAFunction[in-charge]()':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-ClientCredits.o(.gnu.linkonce.t._ZN8CryptoPP11RSAFunctionD1Ev+0x3f): In function `CryptoPP::RSAFunction::~RSAFunction [in-charge]()':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-ClientCredits.o(.gnu.linkonce.t._ZN8CryptoPP11RSAFunctionD1Ev+0x68): In function `CryptoPP::RSAFunction::~RSAFunction [in-charge]()':
: undefined reference to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)'
amule-ClientCredits.o(.gnu.linkonce.t._ZN8CryptoPP11RSAFunctionD1Ev+0x141): more undefined references to `CryptoPP::AlignedAllocator::deallocate(void*, unsigned)' follow
collect2: ld returned 1 exit status
make[4]: *** [amule] Error 1
make[4]: Leaving directory `/var/tmp/portage/amule-2.0.0_rc5/work/aMule-2.0.0rc5/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.0.0_rc5/work/aMule-2.0.0rc5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/amule-2.0.0_rc5/work/aMule-2.0.0rc5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.0.0_rc5/work/aMule-2.0.0rc5'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-2.0.0_rc5 failed.
!!! Function src_compile, Line 57, Exitcode 2

crypto++ compiled with CFLAGS="-0 -w -pipe"

I have no idea what is wrong. Help would be greatly appreciated.
« Last Edit: August 08, 2004, 04:55:26 AM by lfranchi »
Logged

GhePeU

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 240
Re: Error compiling on gentoo
« Reply #1 on: August 08, 2004, 11:59:00 AM »

Code: [Select]
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libwx_gtk-2.4.so, may conflict with libstdc++.so.5
al c++ apps (crypto++, amule, don't remember if wxGTK too) have to be compiled with same gcc version

I'm not sure amule and/or crypto++ are compatible with gcc 3.4
« Last Edit: August 08, 2004, 11:59:13 AM by GhePeU »
Logged
When they kick at your front door
how you gonna come?
with your hands on your head
or on the trigger of your gun

lfranchi

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Error compiling on gentoo
« Reply #2 on: August 08, 2004, 05:49:08 PM »

I compiled amule, crypto++, and wxGTK all with gcc 3.4.

If crypto++ and amule are not compatible with 3.4 at all, then i'll try to re-compile everything (including wxGTK) with 3.3 and see what happens then.
« Last Edit: August 08, 2004, 05:50:58 PM by lfranchi »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Error compiling on gentoo
« Reply #3 on: August 08, 2004, 06:21:40 PM »

hey

if you really wanto gcc3.4 you need crypto++5.2.1 or 5.2 and current CVS
both are 3.4 compatibel....
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

lfranchi

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Error compiling on gentoo
« Reply #4 on: August 08, 2004, 07:12:39 PM »

i'll try compiling everything with 3.3 first and see if it works. what i care most about is getting amule compiled, then i can deal with getting it compiled with 3.4.
« Last Edit: August 08, 2004, 07:13:26 PM by lfranchi »
Logged

lfranchi

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Error compiling on gentoo
« Reply #5 on: August 08, 2004, 11:35:35 PM »

Ok, compiled everything with 3.3 and amule compiled without any problems.

The CFLAGS i used were: '-O -w -pipe'
Logged