aMule Forum

English => en_Linux => Topic started by: alGo on April 29, 2004, 11:56:17 PM

Title: Problems with compilation
Post by: alGo 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
Title: Re: Problems with compilation
Post by: alGo 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
Title: Re: Problems with compilation
Post by: stefanero 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
Title: Re: Problems with compilation
Post by: deltaHF on April 30, 2004, 08:56:03 AM
try to disable wxcas on configure (configure --help)

greets
Title: Re: Problems with compilation
Post by: alGo 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
Title: Re: Problems with compilation
Post by: deltaHF on April 30, 2004, 10:23:24 AM
try to reinstall gtk1
Title: Re: Problems with compilation
Post by: Jacobo221 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
Title: Re: Problems with compilation
Post by: thepolish 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
Title: Re: Problems with compilation
Post by: alGo 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
Title: Re: Problems with compilation
Post by: Jacobo221 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.