aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule on Debian  (Read 3773 times)

his dudeness

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
aMule on Debian
« on: July 12, 2004, 06:39:36 PM »

Hi,
I've some problems linking aMule on my Debian system. Can someone help me please?

Code: [Select]
g++  -I/usr/include/ -D__CRYPTO_DEBIAN_GENTOO__      -o amule  amule-ListenSocket.o amule-ECSocket.o amule-EMSocket.o amule-AddFriend.o amule-AddFileThread.o amule-BarShader.o amule-BaseClient.o amule-ChatSelector.o amule-ChatWnd.o amule-CatDialog.o amule-CFile.o amule-ClientCredits.o amule-ClientDetailDialog.o amule-ClientList.o amule-ClientUDPSocket.o amule-ColorFrameCtrl.o amule-CommentDialog.o amule-CommentDialogLst.o amule-DirectoryTreeCtrl.o amule-DownloadClient.o amule-DownloadListCtrl.o amule-DownloadQueue.o amule-ED2KLink.o amule-EditServerListDlg.o amule-ExternalConn.o amule-FileDetailDialog.o amule-FileDetailListCtrl.o amule-filemem.o amule-filefn.o amule-Friend.o amule-FriendListCtrl.o amule-MuleGifCtrl.o amule-HTTPDownloadDlg.o amule-IPFilter.o amule-KnownFile.o amule-KnownFileList.o amule-listctrl.o amule-MD5Sum.o amule-MuleListCtrl.o amule-MuleNotebook.o amule-muuli_wdr.o amule-OScopeCtrl.o amule-otherfunctions.o amule-packets.o amule-PartFile.o amule-Preferences.o amule-PrefsUnifiedDlg.o amule-Preview.o amule-QueueListCtrl.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList.o amule-SearchListCtrl.o amule-server.o amule-ServerList.o amule-ServerListCtrl.o amule-ServerSocket.o amule-ServerWnd.o amule-SharedFileList.o amule-SharedFilesCtrl.o amule-SharedFilesWnd.o amule-sockets.o amule-StatisticsDlg.o amule-TransferWnd.o amule-UDPSocket.o amule-UploadClient.o amule-UploadListCtrl.o amule-UploadQueue.o amule-amule.o amule-amuleDlg.o  amule-gsocket-2.5.o amule-eggtrayicon.o amule-SysTray.o amule-gtk2-funcs.o amule-gtkplugxembed.o   -pthread -L/usr/X11R6/lib -lwx_gtk2u_html-2.5 -lwx_gtk2u_adv-2.5 -lwx_gtk2u_core-2.5 -lwx_baseu_xml-2.5 -lwx_baseu_net-2.5 -lwx_baseu-2.5 -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lz -L/usr/lib -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcrypto++
amule-ChatSelector.o(.gnu.linkonce.r._ZTV12CChatSession+0x2c4): undefined reference to `wxTextCtrlBase::overflow(int)'
amule-ChatSelector.o(.gnu.linkonce.r._ZTV12CChatSession+0x304): undefined reference to `non-virtual thunk [nv:-336] to wxTextCtrlBase::overflow(int)'
amule-listctrl.o(.gnu.linkonce.r._ZTV16wxODListTextCtrl+0x2c4): undefined reference to `wxTextCtrlBase::overflow(int)'
amule-listctrl.o(.gnu.linkonce.r._ZTV16wxODListTextCtrl+0x304): undefined reference to `non-virtual thunk [nv:-336] to wxTextCtrlBase::overflow(int)'
collect2: ld returned 1 exit status
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #1 on: July 12, 2004, 06:46:27 PM »

sure u have only one wxgtk version installed and not more ?

his dudeness

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #2 on: July 12, 2004, 07:38:09 PM »

I had libwxbase2.4 and libwxgtk2.4 installed, but removing the packages didn't resolve my linking problems. Now I'm compiling wxwidgets2.5-2.5.1.1 package myself, maybe that will help...

Update: I had to compile aMule with WXUSINGDLL defined, though I don't really know,  why wx-config doesn't supply it.
« Last Edit: July 13, 2004, 10:18:31 AM by his dudeness »
Logged

Gusar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #3 on: July 13, 2004, 01:05:26 PM »

his dudeness, could you please explain exactly what you did? I have the same error but don't know how to fix it from just what you wrote.
Logged

his dudeness

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #4 on: July 13, 2004, 03:55:56 PM »

After resolving problems with crypto++/config.h includes I simply did the following:
Code: [Select]
./configure --prefix=/usr --enable-debug --disable-cas --disable-wxcas --disable-alc --disable-alcc --with-gtk-prefix=/usr/include/gtk-2.0 CFLAGS="-O2 -Wall -DWXUSINGDLL" CXXFLAGS="-O2 -Wall -DWXUSINGDLL"
Logged

Mon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #5 on: July 13, 2004, 04:02:09 PM »

Which brings us to: how did you solve the crypto++/config.h prob? I have it currently :)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #6 on: July 13, 2004, 04:09:53 PM »

check http://www.amule.org/wiki/index.php/CryptoppDebian

maybe that helps...

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

Mon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #7 on: July 13, 2004, 04:28:20 PM »

Ofcourse, that did it.

Thanks.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #8 on: July 13, 2004, 04:49:23 PM »

puh :)
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."

Gusar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #9 on: July 13, 2004, 06:20:49 PM »

argh. It compiles now, but when I try to launch it I get this:

OOPS! - Seems like aMule crashed
--== BACKTRACE FOLLOWS: ==--

[0] amule(_ZN9CamuleApp16OnFatalExceptionEv+0x42) [0x8217c62]
[1] /usr/lib/libwx_baseu-2.5.so.1(wxFatalSignalHandler+0x28) [0x405702d8]
[2] [0xffffe420]
[3] /usr/lib/libwx_gtk2u_core-2.5.so.1(_Z12wxMessageBoxRK8wxStringS1_lP8wxWindowii+0x4b) [0x4023352b]
[4] amule(_ZN9CamuleApp19Trigger_New_versionE8wxStringS0_+0x1d4) [0x8218764]
[5] amule(_ZN9CamuleApp6OnInitEv+0x1f92) [0x8214102]
[6] amule(_ZN12wxAppConsole10CallOnInitEv+0x11) [0x821a9b1]
[7] /usr/lib/libwx_baseu-2.5.so.1(_Z7wxEntryRiPPw+0x45) [0x40510b35]
[8] /usr/lib/libwx_baseu-2.5.so.1(_Z7wxEntryRiPPc+0x3d) [0x40510c1d]
[9] amule(main+0x1b) [0x8211e4b]
[10] /lib/tls/libc.so.6(__libc_start_main+0x108) [0x412ca7f8]
Aborted


I removed .aMule & .eMule and tried again but it still crashes. Any suggestions?
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #10 on: July 13, 2004, 06:24:41 PM »

buggy wxgtk ?

his dudeness

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #11 on: July 13, 2004, 07:02:58 PM »

It seems to me, that aMule crashes always, when it tries to open a dialog (maybe wxgtk bug, I guess it's something to do with unicode). I helped myself putting 2.0.0rc4 into ~/.aMule/lastversion and a serverlist site into ~/.aMule/addresses.dat
Logged

Gusar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 27
Re: aMule-2.0.0rc4 & debian compilation pb
« Reply #12 on: July 13, 2004, 08:34:10 PM »

Well, that didn't work for me, so I removed the debian wxgtk packages and compiled wxgtk myself. aMule works ok now.  :D

Thank you for all your help.
Logged