aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: SVN20070522/Win32: error while linking amule  (Read 2518 times)

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
SVN20070522/Win32: error while linking amule
« on: May 22, 2007, 04:33:45 PM »

Hi!

Today's SVN tarball has linker problems during compilation for Win32/MingW.

Code: [Select]
g++  -DNOMINMAX -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC   -DUSE_WX_EXTENSIONS   -o amule.exe  amule-RC4Encrypt.o amule-amule.o amule-BaseClient.o amule-ClientList.o amule-ClientCreditsList.o amule-ClientTCPSocket.o amule-ClientUDPSocket.o amule-DownloadClient.o amule-DownloadQueue.o amule-ECSpecialCoreTags.o amule-EMSocket.o amule-EncryptedStreamSocket.o amule-EncryptedDatagramSocket.o amule-ExternalConn.o amule-Friend.o amule-FriendList.o amule-HTTPDownload.o amule-IPFilter.o amule-KnownFileList.o amule-ListenSocket.o amule-MuleUDPSocket.o amule-SearchFile.o amule-SearchList.o amule-ServerConnect.o amule-ServerList.o amule-ServerSocket.o amule-ServerUDPSocket.o amule-SharedFileList.o amule-ThreadTasks.o amule-UploadBandwidthThrottler.o amule-UploadClient.o amule-UploadQueue.o amule-Kademlia.o amule-Search.o amule-Indexed.o amule-KademliaUDPListener.o amule-Prefs.o amule-RoutingZone.o amule-Contact.o  amule-amule-gui.o amule-amuleDlg.o amule-AddFriend.o amule-CatDialog.o amule-ChatSelector.o amule-ClientDetailDialog.o amule-FileDetailDialog.o amule-KadDlg.o amule-OScopeCtrl.o amule-PartFileConvert.o amule-PrefsUnifiedDlg.o amule-SearchDlg.o amule-ServerWnd.o amule-SharedFilesWnd.o amule-StatisticsDlg.o amule-SearchListCtrl.o amule-DownloadListCtrl.o amule-ClientListCtrl.o amule-FriendListCtrl.o amule-ServerListCtrl.o amule-SharedFilesCtrl.o amule-MuleTrayIcon.o amule-TransferWnd.o  amule-ClientCredits.o amule-ECSpecialMuleTags.o amule-KnownFile.o amule-GetTickCount.o amule-GuiEvents.o amule-Logger.o amule-PartFile.o amule-Preferences.o amule-Proxy.o amule-Server.o amule-Statistics.o amule-StatTree.o amule-SHAHashSet.o amule-TerminationProcess.o amule-UserEvents.o amule-OtherFunctions.o amule-NetworkFunctions.o -L. -lmuleappcommon -Llibs/common -Llibs/ec/cpp -lmulecommon -lec   -lbfd -liberty  -L. -lmuleappcore -L. -lmuleappgui  -L/mingw/lib  -mthreads  -Wl,--subsystem,windows -mwindows /mingw/lib/libwx_mswu_adv-2.8.a /mingw/lib/libwx_mswu_core-2.8.a /mingw/lib/libwx_baseu_net-2.8.a /mingw/lib/libwx_baseu-2.8.a -lwxregexu-2.8 -lwxexpat-2.8 -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32  amulerc.o -lz
amule-ClientTCPSocket.o: In function `ZN8CryptoPP8DES_EDE34BaseC2ERKS1_':
p:/sources/amule-cvs/src/extern/cryptopp/CryptoPP.h:(.rdata$_ZTV23CClientTCPSocketHandler[vtable for CClientTCPSocketHandler]+0x8): undefined reference to `wxObject::GetClassInfoW() const'
p:/sources/amule-cvs/src/extern/cryptopp/CryptoPP.h:(.rdata$_ZTV16CClientTCPSocket[vtable for CClientTCPSocket]+0x8): undefined reference to `wxObject::GetClassInfoW() const'
amule-EMSocket.o: In function `ZN8CryptoPP13AlgorithmImplINS_25SimpleKeyingInterfaceImplINS_8TwoBasesINS_25SimpleKeyedTransformationINS_19BlockTransformationEEENS_13DES_EDE3_InfoEEES7_EES8_EC2ERKS9_':
p:/sources/amule-cvs/src/extern/cryptopp/CryptoPP.h:(.rdata$_ZTV9CEMSocket[vtable for CEMSocket]+0x8): undefined reference to `wxObject::GetClassInfoW() const'
amule-EncryptedStreamSocket.o: In function `ZN8CryptoPP8ClonableC2ERKS0_':
p:/sources/amule-cvs/src/extern/cryptopp/CryptoPP.h:(.rdata$_ZTV22CEncryptedStreamSocket[vtable for CEncryptedStreamSocket]+0x8): undefined reference to `wxObject::GetClassInfoW() const'
p:/sources/amule-cvs/src/extern/cryptopp/CryptoPP.h:(.rdata$_ZTV18CSocketClientProxy[vtable for CSocketClientProxy]+0x8): undefined reference to `wxObject::GetClassInfoW() const'
amule-ServerSocket.o:p:/sources/amule-cvs/src/extern/cryptopp/CryptoPP.h:(.rdata$_ZTV13CServerSocket[vtable for CServerSocket]+0x8): more undefined references to `wxObject::GetClassInfoW() const' follow
collect2: ld returned 1 exit status

Looks, as if it has sth to do with <Kry>'s changes concerning cryptopp. The log of configure tells me, it's using the embedded library, though...

Cheers
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: SVN20070522/Win32: error while linking amule
« Reply #1 on: May 22, 2007, 06:16:05 PM »

I didn't declare them as dynamic object in wx probably I'll take alook when I have time.
Logged

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: SVN20070522/Win32: error while linking amule
« Reply #2 on: May 27, 2007, 04:34:26 PM »

I just did some "nosing around": the only place I could find this mysterious GetClassInfoW() is in wx/msw/winundef.h, which in turn was included in TransferWnd.cpp just recently to get around some other problem. Don't really know if this is related, but seems worth mentioning. The definition of GetClassInfo() is in wx/objects.h, by the way.

Maybe some of you can make sth out of that. I just get lost in this wilderness of defines, #includes and #ifdefs, and don't have the time to hack me a way through this.
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: SVN20070522/Win32: error while linking amule
« Reply #3 on: June 02, 2007, 04:05:26 PM »

Unfortunately I'm in london till the 11th.

Unfortunately for you, because I'm having a hell of a great time.
Logged