aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Relocation Error after rebuild aMule after updating wxGTK  (Read 4625 times)

steppenwolf

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Relocation Error after rebuild aMule after updating wxGTK
« on: September 19, 2006, 12:20:03 PM »

Hello,
   I know it sounds like a old problem here, but I have googled around and follow some suggestion like "recompile amule after upgrading wxGTK," but still no luck.
   It looks like:
   
Code: [Select]
amule: relocation error: amule: symbol _ZTI12wxEvtHandler, version WXU_2.6 not defined in file libwx_gtk2u_core-2.6.so.0 with link time reference   What make thing even more funny is that, when I try somehing like:
   
Code: [Select]
xhost +
sudo su
DISPLAY=:0 amule
  aMule start without any problem! But I don't really want to run it as root. So may anyone have any idea about what's wrong? Thanks.

package info:
i686-linux-gcc-4.1.1 automake-1.9.6 autoconf 2.59
zlib-1.2.3 wxGTK-2.6.3 amule-2.1.3
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #1 on: September 19, 2006, 03:47:53 PM »

You have multiple versions of either aMule or wx installed, and by coincidence, the root account picks up the right ones - maybe because of differently set environment variables.

Delete all redundant copies of aMule and wx.
Logged

steppenwolf

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #2 on: September 19, 2006, 09:19:21 PM »

First of all, Thanks for your reply.  :D

I guess I've better confess about "compiling", I'm using gentoo's emerge command in fact to get wxGTK and aMule to work. Whenever I update wxGTK, it would manage to clean up the previous version, although I can't be sure if there would be any orphaned old share object or some sort like that are left.
( Is there some way to find out? )

But one certain thing is that: I do only get one version of aMule. Thanks for your reminds.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #3 on: September 19, 2006, 09:50:10 PM »

No, sorry, this is technically impossible:

The error message you are getting in the account where aMule does not work is clearly something that must affect every user who uses these binaries.

Anything else is technically impossible - relocation errors are always fatal (no exception), the conclusion is that the other user where aMule works is using other binaries.

In order to verify, execute the following commands as the user where aMule works and again as the user where aMule doesn't work and compare the results:
Code: [Select]
which amule
ldd `which amule`
« Last Edit: September 19, 2006, 09:51:20 PM by Gerd78 »
Logged

pcmaster

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 79
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #4 on: September 24, 2006, 05:25:51 PM »

I'm getting the same error message after upgrading systen to GCC-4.1.1.

wxGTK compiles Ok with GCC-4.1.1, but amule don't compiles, and the old version (compiled with gcc-3.4.6) shows this error.
Logged
pcmaster

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #5 on: September 24, 2006, 06:34:50 PM »

Uh... aMule compiels here perfectly with 4.1.2 (and any previous compiler)
Logged

pcmaster

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 79
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #6 on: September 24, 2006, 07:01:00 PM »

Packages are compiled with options:

# emerge -pv gtk+ wxGTK amule

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/gtk+-2.8.19  USE="X jpeg tiff -debug -doc -xinerama" 0 kB
[ebuild   R   ] x11-libs/wxGTK-2.6.3.2  USE="X opengl unicode -debug -doc -gnome -joystick -odbc -sdl" 0 kB
[ebuild   R   ] net-p2p/amule-2.1.3  USE="gtk nls remote stats unicode -amuled -debug" 0 kB

Total size of downloads: 0 kB

Trying to change back to gcc-3.4.6 and compile amule (not the other packages) with the old gcc version don't solves the problem.

The errors:

# amulegui
amulegui: relocation error: amulegui: symbol _ZTI12wxEvtHandler, version WXU_2.6 not defined in file libwx_gtk2u_core-2.6.so.0 with link time reference

# emerge -pv amule

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-p2p/amule-2.1.3  USE="gtk nls remote stats unicode -amuled -debug" 0 kB

Total size of downloads: 0 kB

# emerge -v amule
...
...
...
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I/usr/include -D__GD__ -march=athlon-xp -O2 -pipe -W -Wall -Wshadow -Wundef -O2  -MT cas-lines.o -MD -MP -MF ".deps/cas-lines.Tpo" -c -o cas-lines.o `test -f 'lines.c' || echo './'`lines.c; \
then mv -f ".deps/cas-lines.Tpo" ".deps/cas-lines.Po"; else rm -f ".deps/cas-lines.Tpo"; exit 1; fi
i686-pc-linux-gnu-gcc  -march=athlon-xp -O2 -pipe -W -Wall -Wshadow -Wundef -O2   -lpthread -o cas  cas-cas.o cas-configfile.o cas-functions.o cas-graphics.o cas-html.o cas-lines.o  -ljpeg -lz -lm -lgd  
cas-graphics.o: In function `createimage':
graphics.c:(.text+0x4d): undefined reference to `gdImageCreateFromPng'
graphics.c:(.text+0xbe): undefined reference to `gdImagePng'
collect2: ld returned 1 exit status
make[5]: *** [cas] Error 1
make[5]: Leaving directory `/var/tmp/portage/amule-2.1.3/work/aMule-2.1.3/src/utils/cas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/amule-2.1.3/work/aMule-2.1.3/src/utils/cas'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.3/work/aMule-2.1.3/src/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.3/work/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.3/work/aMule-2.1.3'
make: *** [all] Error 2

!!! ERROR: net-p2p/amule-2.1.3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  amule-2.1.3.ebuild, line 102:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
« Last Edit: September 24, 2006, 07:06:09 PM by pcmaster »
Logged
pcmaster

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #7 on: September 24, 2006, 07:10:58 PM »

That's caused by wrong libdg, not gcc version. Disable cas.
Logged

pcmaster

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 79
Re: Relocation Error after rebuild aMule after updating wxGTK
« Reply #8 on: September 24, 2006, 08:09:36 PM »

Thanks.
Logged
pcmaster