aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation problems on Gentoo  (Read 2489 times)

gmichels

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Compilation problems on Gentoo
« on: May 09, 2006, 10:26:57 PM »

Hi all

I've been struggling with aMule and wxGTK since yesterday. I can't make aMule to compile on my Gentoo machine.

Versions used:
Code: [Select]
# emerge -av wxGTK amule

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-libs/wxGTK-2.6.3.2  +X -debug -doc -gnome -joystick -odbc -opengl -sdl +unicode 0 kB
[ebuild  N    ] net-p2p/amule-2.1.1  -amuled -debug +gtk +nls +remote -stats +unicode 0 kB
Here is some compile output, with the error:
Code: [Select]
i686-pc-linux-gnu-g++  -O2 -march=athlon-xp  -pipe -momit-leaf-frame-pointer -fno-ident -Wl,-O1 -fvisibility-inlines-hidden -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2   -Wl,-O1  -lpthread -o amuleweb -L/usr/lib -Wl,-rpath,/usr/lib -lpng12 -lz -lm -L../../libs/common -L../../libs/ec amuleweb-WebServer.o amuleweb-WebInterface.o amuleweb-WebSocket.o amuleweb-ExternalConnector.o amuleweb-OtherFunctions.o amuleweb-RLE.o amuleweb-NetworkFunctions.o amuleweb-php_parser.o amuleweb-php_lexer.o amuleweb-php_syntree.o amuleweb-php_core_lib.o -lec_noevt -lmulecommon -pthread -Wl,-O1  -L/usr/X11R6/lib  -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lz -lreadline -lpng12 -lz -lm  -lbfd -liberty
amuleweb-WebInterface.o:(.gnu.linkonce.r._ZTV12CamulewebApp+0x14): undefined reference to `wxObject::ReservedObjectFunc1()'
amuleweb-WebInterface.o:(.gnu.linkonce.r._ZTV12CamulewebApp+0x18): undefined reference to `wxObject::ReservedObjectFunc2()'
amuleweb-WebInterface.o:(.gnu.linkonce.r._ZTV12CamulewebApp+0x1c): undefined reference to `wxObject::ReservedObjectFunc3()'
amuleweb-WebInterface.o:(.gnu.linkonce.r._ZTV12CamulewebApp+0x20): undefined reference to `wxObject::ReservedObjectFunc4()'
amuleweb-WebInterface.o:(.gnu.linkonce.r._ZTV12CamulewebApp+0x24): undefined reference to `wxObject::ReservedObjectFunc5()'
amuleweb-WebInterface.o:(.gnu.linkonce.r._ZTV12CamulewebApp+0x28): undefined reference to `wxObject::ReservedObjectFunc6()'
...
...goes on
...
amuleweb-WebSocket.o:(.gnu.linkonce.r._ZTV9CWSThread+0x8): undefined reference to `wxThread::OnExit()'
amuleweb-WebSocket.o:(.gnu.linkonce.r._ZTV9CWCThread+0x8): undefined reference to `wxThread::OnExit()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x14): undefined reference to `wxObject::ReservedObjectFunc1()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x18): undefined reference to `wxObject::ReservedObjectFunc2()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x1c): undefined reference to `wxObject::ReservedObjectFunc3()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x20): undefined reference to `wxObject::ReservedObjectFunc4()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x24): undefined reference to `wxObject::ReservedObjectFunc5()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x28): undefined reference to `wxObject::ReservedObjectFunc6()'
amuleweb-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x2c): undefined reference to `wxObject::ReservedObjectFunc7()'
...
...goes on
...
/usr/lib/libwx_baseu_net-2.6.so: undefined reference to `wxConnectionBase::OnAdvise(wxString const&, wxString const&, wchar_t*, int, wxIPCFormat)'
/usr/lib/libwx_baseu_net-2.6.so: undefined reference to `wxStreamBase::IsSeekable() const'
/usr/lib/libwx_baseu_net-2.6.so: undefined reference to `wxStreamBase::ReservedStreamFunc2()'
/usr/lib/libwx_baseu_net-2.6.so: undefined reference to `wxStreamBase::ReservedStreamFunc9()'
/usr/lib/libwx_baseu_net-2.6.so: undefined reference to `wxInputStream::LastRead() const'
/usr/lib/libwx_baseu_net-2.6.so: undefined reference to `wxConnectionBase::OnRequest(wxString const&, wxString const&, int*, wxIPCFormat)'
collect2: ld returned 1 exit status
distcc[10378] ERROR: compile (null) on localhost failed
make[4]: *** [amuleweb] Error 1
make[4]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1/src/webserver/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1/src/webserver'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1'
make: *** [all] Error 2

This is while trying to compile with amuleweb and gtk gui.

Now trying only with the gtk gui (-remote -amuled):
Code: [Select]
i686-pc-linux-gnu-g++  -O2 -march=athlon-xp  -pipe -momit-leaf-frame-pointer -fno-ident -Wl,-O1 -fvisibility-inlines-hidden -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2   -Wl,-O1  -lpthread -o amulecmd  amulecmd-TextClient.o amulecmd-ExternalConnector.o amulecmd-OtherFunctions.o -Llibs/common -Llibs/ec -lmulecommon -lec_noevt -pthread -Wl,-O1  -L/usr/X11R6/lib  -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lreadline -lz  -lbfd -liberty
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x14): undefined reference to `wxObject::ReservedObjectFunc1()'
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x18): undefined reference to `wxObject::ReservedObjectFunc2()'
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x1c): undefined reference to `wxObject::ReservedObjectFunc3()'
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x20): undefined reference to `wxObject::ReservedObjectFunc4()'
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x24): undefined reference to `wxObject::ReservedObjectFunc5()'
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x28): undefined reference to `wxObject::ReservedObjectFunc6()'
amulecmd-TextClient.o:(.gnu.linkonce.r._ZTV12CamulecmdApp+0x2c): undefined reference to `wxObject::ReservedObjectFunc7()'
...
...goes on
...
amulecmd-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x30): undefined reference to `wxObject::ReservedObjectFunc8()'
amulecmd-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x34): undefined reference to `wxObject::ReservedObjectFunc9()'
amulecmd-ExternalConnector.o:(.gnu.linkonce.r._ZTV23CaMuleExternalConnector+0x48): undefined reference to `wxEvtHandler::TryValidator(wxEvent&)'
amulecmd-ExternalConnector.o:(.gnu.linkonce.r._ZTV13CECFileConfig+0x14): undefined reference to `wxFileConfig::GetPath() const'
amulecmd-ExternalConnector.o:(.gnu.linkonce.r._ZTV13CECFileConfig+0x38): undefined reference to `wxConfigBase::GetEntryType(wxString const&) const'
libs/ec/libec_noevt.a(libec_noevt_a-ECSocket.o):(.gnu.linkonce.r._ZTV16CECSocketHandler+0x14): undefined reference to `wxObject::ReservedObjectFunc1()'
libs/ec/libec_noevt.a(libec_noevt_a-ECSocket.o):(.gnu.linkonce.r._ZTV16CECSocketHandler+0x18): undefined reference to `wxObject::ReservedObjectFunc2()'
libs/ec/libec_noevt.a(libec_noevt_a-ECSocket.o):(.gnu.linkonce.r._ZTV16CECSocketHandler+0x1c): undefined reference to `wxObject::ReservedObjectFunc3()'
...
...goes on
...
/usr/X11R6/lib/libwx_baseu_net-2.6.so: undefined reference to `wxStreamBase::IsSeekable() const'
/usr/X11R6/lib/libwx_baseu_net-2.6.so: undefined reference to `wxStreamBase::ReservedStreamFunc2()'
/usr/X11R6/lib/libwx_baseu_net-2.6.so: undefined reference to `wxStreamBase::ReservedStreamFunc9()'
/usr/X11R6/lib/libwx_baseu_net-2.6.so: undefined reference to `wxInputStream::LastRead() const'
/usr/X11R6/lib/libwx_baseu_net-2.6.so: undefined reference to `wxConnectionBase::OnRequest(wxString const&, wxString const&, int*, wxIPCFormat)'
collect2: ld returned 1 exit status
distcc[20110] ERROR: compile (null) on localhost failed
make[3]: *** [amulecmd] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.1/work/aMule-2.1.1'
make: *** [all] Error 2

Also tried stable releases (wxGTK and aMule), I get compilation errors too.

And here's some (un)useful information:
Code: [Select]
# emerge --info
Portage 2203-svn (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -momit-leaf-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -momit-leaf-frame-pointer -fno-ident -Wl,-O1 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo [URL]http://gentoo.mirrors.pair.com[/URL]"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow apache2 apm arts avi berkdb bitmap-fonts bzip2 cdr cli crypt curl dri eds emboss encode esd expat fam foomaticdb fortran gd gdbm gif gmp gpm gstreamer imlib isdnlog java jpeg junit libg++ libwww mad mikmod mmx motif mp3 mpeg mysql ncurses nls nptl ogg pam pcre pdflib perl png pppd python quicktime readline reflection samba sdl session snmp spell spl sse ssl tcpd threads truetype truetype-fonts type1-fonts udev unicode utf8 vorbis xml xml2 xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LINGUAS

Any ideas?

Thanks!
Logged

Ben

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
RE: Compilation problems on Gentoo
« Reply #1 on: May 16, 2006, 05:22:32 PM »

i get the same... but i think the problem is in wxwidgets: neither my own projects link against wxwidgets since the last time i installed again gentoo:
i made a fresh install in order to create a separate and clear environment into which try to manage with new modular xorg..

on my xorg6.8 based install there was no problem linking against wxwidgets...

i didn't make changes to my CFLAGS ("-O3 -march=athlon-xp -fomit-frame-pointer -pipe -mfpmath=sse") nor CXXFLAGS ("-O3 -march=athlon-xp -fomit-frame-pointer -pipe -fvisibility-inlines-hidden -mfpmath=sse") and gcc is the same (gcc3.4.5) so the problem is not in the compiler nor in the compile flags

maybe we have to open a bug discussion thread in the gentoo bugzilla, it isn't upon amule....
Logged
If freedom is outlawed, only outlaws will have freedom!!!

gmichels

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Compilation problems on Gentoo
« Reply #2 on: May 16, 2006, 05:52:46 PM »

I got this problem solved using a hint from a user on the gentoo forums, but forgot to add the solution here.

Anyway, the problem lies on compiling wxGTK with -fvisibility-inlines-hidden on the CXXFLAGS. Strip that, compile wxGTK again and aMule will be compiled without errors.

Hope that helps.
Logged