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 CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error  (Read 4055 times)

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
aMule CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error
« on: December 19, 2005, 07:18:55 AM »

When compiling with wxgtk 2.6.2 and gtk+ 2.8.9 I've got this error
Code: [Select]
i686-pc-linux-gnu-g++  -O2 -pipe -march=athlon-xp -fvisibility-inlines-hidden -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef    -lpthread
-o amule  amule-AICHSyncThread.o amule-AddFileThread.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-EMSocket.o amule-ECSpecialCoreTags.o amule-Ext
ernalConn.o amule-Friend.o amule-FriendList.o amule-HTTPDownload.o amule-IPFilter.o amule-KnownFileList.o amule-ListenSocket.o amule-MuleUD
PSocket.o amule-SearchList.o amule-ServerConnect.o amule-ServerList.o amule-ServerSocket.o amule-ServerUDPSocket.o amule-SharedFileList.o a
mule-UploadBandwidthThrottler.o amule-UploadClient.o amule-UploadQueue.o amule-Kademlia.o amule-Search.o amule-Indexed.o amule-KademliaUDPL
istener.o amule-Prefs.o amule-RoutingZone.o amule-Contact.o amule-amule-gui.o amule-amuleDlg.o amule-AddFriend.o amule-ChatSelector.o amule
-ClientDetailDialog.o amule-FileDetailDialog.o amule-KadDlg.o amule-OScopeCtrl.o amule-PartFileConvert.o amule-PrefsUnifiedDlg.o amule-Sear
chDlg.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 amu
le-ECSpecialMuleTags.o amule-KnownFile.o amule-GetTickCount.o amule-Logger.o amule-PartFile.o amule-Preferences.o amule-Proxy.o amule-Serve
r.o amule-Statistics.o amule-StatTree.o amule-SHAHashSet.o amule-OtherFunctions.o -L. -lmuleappcommon -Llibs/common -Llibs/ec -lmulecommon
-lec -lz  -lbfd -liberty  -L. -lmuleappcore -L. -lmuleappgui  -pthread   -L/usr/X11R6/lib  -lwx_gtk2_core-2.6 -lwx_gtk2_adv-2.6 -lwx_base_n
et-2.6 -lwx_base-2.6
/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld: amule: hidden symbol `wxWindowBase::HasCapture() const' in amule
-HTTPDownload.o is referenced by DSO
/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[3]: *** [amule] BBd 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20051218/work/amule-cvs/src'
make[2]: *** [all-recursive] BBd 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20051218/work/amule-cvs/src'
make[1]: *** [all-recursive] BBd 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.1.0_pre20051218/work/amule-cvs'
make: *** [all] BBd 2
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: aMule CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error
« Reply #1 on: December 19, 2005, 07:50:35 AM »

Did you have the same problem with CVS-20051217? Could you try CVS-20051219? Does it work without "-fvisibility-inlines-hidden"?
Logged

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: aMule CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error
« Reply #2 on: December 19, 2005, 12:24:29 PM »

It might not be a problem with gtk+ or wxgtk bacause after downgrading to gtk 2.8.8 and recompiling wxgtk I still have got the same error. I've got it with amule cvs 20051218 and 20051219. "-fvisibility-inlines-hidden" worked on 20051218 before upgrading to gtk+ 2.8.9 and recompiling whole system.

So I will leave gtk+ 2.8.8, recompile whole system and see what happend.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: aMule CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error
« Reply #3 on: December 19, 2005, 12:41:15 PM »

Be careful with advanced GCC switches, sometimes they only work if all involved libraries were compiled with it.
Logged

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: aMule CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error
« Reply #4 on: December 19, 2005, 12:43:56 PM »

My whole system is compiled with this flag.

This is the error i've got when i try to run old binary (compiled against gtk+ 2.8.8 and wxgtk 2.6.2):
amule: symbol lookup error: /usr/lib/libwx_base-2.6.so.0: undefined symbol: _ZNK11wxClassInfo8IsKindOfEPKS_
Logged

Rafal_Glazar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: aMule CVS 20051218 +wxGTK 2.6.2 +gtk+ 2.8.9 linking error
« Reply #5 on: December 25, 2005, 06:37:06 AM »

Nothing I've tried worked and I've tried downgrading gtk+ and glib, removing -fvisibility-inlines-hidden, recompiling whole system until I've recompile wxgtk and amule with gcc 3.3.6. So I think that either wxgtk or amule (I think wxgtk) does not like gcc 4.0.2.
Logged