aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [SOLVED] Compile Problem (undefined reference)  (Read 3219 times)

whiskerz

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
[SOLVED] Compile Problem (undefined reference)
« on: September 04, 2006, 06:12:42 PM »

I started out with a tutorial telling me to install wxbase, wxgtk and then aMule. Which ended up by giving a long long list of "undefined reference" messages like the following :

Code: [Select]
amuleweb-WebServer.o: In function `__static_initialization_and_destruction_0': ../../../src/libs/
common/StringFunctions.h:79: undefined reference to `wxCSConv::wxCSConv(wchar_t const*)'
amuleweb-WebServer.o: In function `DownloadFileInfo::ItemDeleted(DownloadFile*)': /home/whiskerz/
Documents/aMule-2.1.3/src/webserver/src/WebServer.cpp:746: undefined reference to
`operator+(wchar_t const*, wxString const&)' amuleweb-WebServer.o: In function `CDynStatisticImage': /
home/whiskerz/Documents/aMule-2.1.3/src/webserver/src/WebServer.cpp:1345: undefined reference to
`wxString::Format(wchar_t const*, ...)'

I then read in the sticky that I don't really need wxBase, but well, I don't really have any clue about how to remove it.

The things that you wanted to have listed gave the following output :

Code: [Select]
whiskerz@Leopard:~/Documents/aMule-2.1.3> ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root    44 2006-09-04 15:44 /usr/bin/wx-config -> /usr//lib/wx/config/gtk2-unicode-release-2.6
lrwxrwxrwx 1 root root     8 2006-09-04 15:44 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x 1 root root 75834 2006-09-04 15:44 /usr/bin/wxrc-2.6

whiskerz@Leopard:~/Documents/aMule-2.1.3> ls -l /usr/local/bin/wx*
-rwxr-xr-x 1 root root  4870 2006-09-04 18:05 /usr/local/bin/wxbase-2.4-config
lrwxrwxrwx 1 root root    17 2006-09-04 18:05 /usr/local/bin/wx-config -> wxbase-2.4-config
lrwxrwxrwx 1 root root     8 2006-09-04 17:42 /usr/local/bin/wxrc -> wxrc-2.6
-rwxr-xr-x 1 root root 75834 2006-09-04 17:42 /usr/local/bin/wxrc-2.6

whiskerz@Leopard:~/Documents/aMule-2.1.3> rpm -qa | grep wx
whiskerz@Leopard:~/Documents/aMule-2.1.3>

I've tried using the hints in the other compile error thread, and recompiled wxgtk with the options that were specified, as well as tried to recompile aMule with the specified options, but that didn't do any difference.

Anyone have any idea? At least how I could remove all of my existing wxbase and wxgtk and maybe start over just in case something was not installed correctly?

Cheers

Whizz
« Last Edit: September 05, 2006, 03:42:32 PM by whiskerz »
Logged

whiskerz

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: [SOLVED] Compile Problem (undefined reference)
« Reply #1 on: September 05, 2006, 11:43:48 AM »

Update : I've now found and followed the instructions provided in the aMule WIKI, removing (as far as I was able to) all traces of the previous packages. However I still get undefined references, and aMule just won't install. Does anyone have any idea what I am missing?

Here are some more undefined references  :

Code: [Select]
HeaderWindowE[vtable for MuleExtern::wxListHeaderWindow]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-MuleGifCtrl.o):(.rodata._ZTV11MuleGifCtrl[vtable for MuleGifCtrl]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-MuleListCtrl.o): In function `__static_initialization_and_destruction_0(int, int)':
MuleListCtrl.cpp:(.text+0x1cf): undefined reference to `wxCSConv::wxCSConv(wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-MuleListCtrl.o): In function `CMuleListCtrl::OnChar(wxKeyEvent&)':
MuleListCtrl.cpp:(.text+0xde8): undefined reference to `wxString::StartsWith(wchar_t const*, wxString*) const'
MuleListCtrl.cpp:(.text+0xf59): undefined reference to `wxString::StartsWith(wchar_t const*, wxString*) const'
./libmuleappgui.a(libmuleappgui_a-MuleListCtrl.o): In function `CMuleListCtrl::LoadSettings()':
MuleListCtrl.cpp:(.text+0x17d9): undefined reference to `operator+(wchar_t const*, wxString const&)'
MuleListCtrl.cpp:(.text+0x189b): undefined reference to `operator+(wchar_t const*, wxString const&)'
./libmuleappgui.a(libmuleappgui_a-MuleListCtrl.o): In function `CMuleListCtrl::SaveSettings()':
MuleListCtrl.cpp:(.text+0x1afd): undefined reference to `operator+(wchar_t const*, wxString const&)'
MuleListCtrl.cpp:(.text+0x1bc6): undefined reference to `operator+(wchar_t const*, wxString const&)'
./libmuleappgui.a(libmuleappgui_a-MuleListCtrl.o):(.rodata._ZTV13CMuleListCtrl[vtable for CMuleListCtrl]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-MuleNotebook.o):(.rodata._ZTV13CMuleNotebook[vtable for CMuleNotebook]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-MuleTextCtrl.o):(.rodata._ZTV13CMuleTextCtrl[vtable for CMuleTextCtrl]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-FileDetailListCtrl.o):(.rodata._ZTV19CFileDetailListCtrl[vtable for CFileDetailListCtrl]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-muuli_wdr.o):(.rodata._ZTV12wxButtonBase[vtable for wxButtonBase]+0x274): undefined reference to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)'
./libmuleappgui.a(libmuleappgui_a-muuli_wdr.o):(.rodata._ZTV14wxCheckBoxBase[vtable for wxCheckBoxBase]+0x274): more undefined references to `wxWindow::ApplyToolTip(_GtkTooltips*, wchar_t const*)' follow
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/home/whiskerz/Documents/aMule-2.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/whiskerz/Documents/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/whiskerz/Documents/aMule-2.1.3'
make: *** [all] Error 2

I used the ./configure options as specified by the HowTo ... this is getting somewhat frustrating, all I wanted to get to work was the amuleweb server and now nothing works ...
Logged

Bourdieu

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
Re: [SOLVED] Compile Problem (undefined reference)
« Reply #2 on: September 05, 2006, 02:21:32 PM »

I think you have to update your wxWidgets package.

Remove wxBase and wxGTK, and install this wxWidgets package version 2.6.3.
Logged

whiskerz

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: [SOLVED] Compile Problem (undefined reference)
« Reply #3 on: September 05, 2006, 03:42:12 PM »

That did the trick thanks a bunch! however the actual error was not an outdated, but rather an incomplete version of the library as I found out. Since in all HowTos I found people always talked about wxGTK, I only got the wxGTK-2.6.3.tar.gz file from the wxwidgets homepage. However it seems that the complete library, available through the link wxALL and named wxWidgets-2.6.3.tar.bz2, is necessary, at least it worked only after I installed that! Still, kinda frustrating how you need years of experience to make an educated guess about whats wrong when getting some kind of error message in any supposedly "modern" OS ...

Well off to the amuleweb forum, amule is running but the web server doesn't seem to do much anything ... still lots to configure I guess

Thanks again

Whizz
Logged