aMule Forum

English => Compilation problems => Topic started by: wuischke on December 19, 2007, 10:59:41 AM

Title: [r7794] - linking error on Linux
Post by: wuischke on December 19, 2007, 10:59:41 AM
Code: [Select]
g++ -DENABLE_UPNP=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread    -I./libs -Ilibs -I./include -DUSE_EMBEDDED_CRYPTO -g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0   -DUSE_WX_EXTENSIONS  -lpthread -o amule 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-UPnP.o amule-UPnPCompatibility.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  -pthread   -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8   -lz
amule-amule.o: In function `CamuleApp::OnInit()':
~/devel/amule-dev.test/src/amule.cpp:652: undefined reference to `aMuleConvBrokenFileNames'
amule-amule.o: In function `unicode2char(wchar_t const*)':
~/devel/amule-dev.test/src/./libs/common/StringFunctions.h:81: undefined reference to `aMuleConv'
amule-amule.o: In function `char2unicode(char const*)':
~/devel/amule-dev.test/src/./libs/common/StringFunctions.h:82: undefined reference to `aMuleConv'
./libmuleappcommon.a(libmuleappcommon_a-CFile.o): In function `unicode_2_broken(wchar_t const*)':
~/devel/amule-dev.test/src/./libs/common/StringFunctions.h:90: undefined reference to `aMuleConvBrokenFileNames'
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `~/devel/amule-dev.test/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `~/devel/amule-dev.test/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `~/devel/amule-dev.test'
make: *** [all] Error 2
Title: Re: [r7794] - linking error on Linux
Post by: Schuttwegraeumer on December 19, 2007, 03:53:41 PM
Here too.

No Problem with aMule-CVS-20071218.tar.bz2.
Title: Re: [r7794] - linking error on Linux
Post by: phoenix on December 20, 2007, 12:00:22 AM
make clean && make

In other words, delete the old objects, they got incompatible since Kry did the MSVC updates.
Title: Re: [r7794] - linking error on Linux
Post by: wuischke on December 20, 2007, 12:20:59 AM
I tried compiling with a freshly checked out copy of the source tree. Does it work for you?
Title: Re: [r7794] - linking error on Linux
Post by: phoenix on December 20, 2007, 12:59:20 AM
Sorry, you are right, it does not link anymore.