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 with compilation  (Read 4201 times)

alGo

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Problems with compilation
« on: April 29, 2004, 11:56:17 PM »

Hi

Just installed the RH fedora OS, and I'm having some problems getting amule back to work.
I've followed the howto about compilation WxGTK and WxBase, but got the following problem:

-When doing RC2, everything seems to go fine, but when trying to run amule, I got the following:

$ amule
amule: relocation error: /usr/lib/libgdk-1.2.so.0: undefined symbol: XListInputDevices

-RC3 doesn't even finish the compilation, giving the following error:

g++  -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__  -O2    -o wxcas  wxcas-onlinesig.o wxcas-linuxmon.o wxcas-wxcas.o wxcas-wxcascanvas.o wxcas-wxcasframe.o -pthread -lwx_gtk-2.4 -lcryptopp
/usr/lib/libgdk-1.2.so.0: undefined reference to `XGetDeviceMotionEvents'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XFreeDeviceList'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XQueryDeviceState'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XListInputDevices'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XFreeDeviceMotionEvents'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XFreeDeviceState'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XOpenDevice'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XSelectExtensionEvent'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XUngrabDevice'
/usr/lib/libgdk-1.2.so.0: undefined reference to `XGrabDevice'
collect2: ld devolvió el estado de salida 1
make[2]: *** [wxcas] Error 1
make[2]: Saliendo directorio `/home/al/Install/aMule-2.0.0rc3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Saliendo directorio `/home/al/Install/aMule-2.0.0rc3'
make: *** [all] Error 2

I've attached the configure output in case you need it, but I haven't found anything strange. I'm falling asleep anyway, so maybe I should look again tomorrow ;-)

That's all, any help will be highly apreciated, and if you need any more info, just ask.

Thanks for everything
Al
Logged
"The consensus seemed to be that if really large numbers of men were sent to storm the mountain, then enough might survive the rocks to take the citadel. This is essentially the basis of all military thinking. "

"Eric" (Terry Pratchett)

alGo

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Problems with compilation
« Reply #1 on: April 30, 2004, 02:12:53 AM »

Well, seems that I'll answer myself.
Just read that fedora is a bit buggy with gtk+ ;-(

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=109673

While I think about what to do next, are there any other users with fedora with the problem? or having solved it? Any hint would be great.

Thanks

Al
Logged
"The consensus seemed to be that if really large numbers of men were sent to storm the mountain, then enough might survive the rocks to take the citadel. This is essentially the basis of all military thinking. "

"Eric" (Terry Pratchett)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4236
Re: Problems with compilation
« Reply #2 on: April 30, 2004, 07:49:02 AM »

hey

actually that you are running fedora should not matter, I ran FC2-test1 for a while myself.
but I never used the redhat wxGTK packages, you can either use the wxGTK wxGTK-devel and wxBase from our homepage or the offical once from wxwidgets,
both worked fine with me :)

just make sure to uninstall the fedora once

stefanero
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."

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Problems with compilation
« Reply #3 on: April 30, 2004, 08:56:03 AM »

try to disable wxcas on configure (configure --help)

greets

alGo

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Problems with compilation
« Reply #4 on: April 30, 2004, 10:10:55 AM »

Disabling wxcas allowed me to compile, but I still have the runtime error ;-(
I got no time now, but I'll try to uninstall everything related and start again with the sources later.

Al
Logged
"The consensus seemed to be that if really large numbers of men were sent to storm the mountain, then enough might survive the rocks to take the citadel. This is essentially the basis of all military thinking. "

"Eric" (Terry Pratchett)

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Problems with compilation
« Reply #5 on: April 30, 2004, 10:23:24 AM »

try to reinstall gtk1

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2711
Re: Problems with compilation
« Reply #6 on: April 30, 2004, 02:33:17 PM »

Or reinstall wx. I remember someone on the irc channel who had the same problem and after I told him to reinstall wx, it compiled.

Greetings
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 908
Re: Problems with compilation
« Reply #7 on: April 30, 2004, 04:20:45 PM »

Hi,

wxcas doesnt embed any pure gtk code. All is wx code.

so try to re-compile wx first, then, if doenst work, try recompile gtk too

the polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

alGo

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Problems with compilation
« Reply #8 on: April 30, 2004, 05:03:31 PM »

No luck.
I reinstalled gtk, wxGTK and wxBase from sources, but still the same. May the problem be that I'm not 'overwritting' the buggy gtk (if that's the problem anyway)?
I've been told that:

$ ldd /usr/lib/libgdk-1.2.so.0
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x00161000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x00f1c000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00164000)
        libdl.so.2 => /lib/libdl.so.2 (0x0094f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00899000)

should give much more output, anyone can confirm?
If that's the case, how should I get a working libgdk? My knowledge about shared libraries is quite low and I'm not sure what should I do. Tried uninstalling the gtk that comes with the installation, but it complained that there were some applications that needed it. But maybe I'm not doing it right anyway (used the redhat-config-packages tool). Any more help? It's no problem if I have to reinstall the OS (In fact after all I've touched, I should ;-)) so anything can be considered.

Al
Logged
"The consensus seemed to be that if really large numbers of men were sent to storm the mountain, then enough might survive the rocks to take the citadel. This is essentially the basis of all military thinking. "

"Eric" (Terry Pratchett)

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2711
Re: Problems with compilation
« Reply #9 on: April 30, 2004, 05:39:36 PM »

try removing the installed sources of gtk and wx and install the binnaries from your distro. Most surely they won't suffer any problems ;-)
If you're on Debian, join #amule in irc.freenode.net and I'll help you on that.

Greetings.
Logged