aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 2 [3]

Author Topic: undefined reference to `non-virtual thunk  (Read 25213 times)

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: undefined reference to `non-virtual thunk
« Reply #30 on: April 30, 2011, 10:30:53 PM »

F-ass-cinating...
wx noDebug optimize, aMule debug noOptimize -> same crash
Both noDebug optimize ->works . "Fixes" both the compile error and the crashes.
And networking appears to be fine (unlike in Windows - it used to be the other way round some time ago).

Now there are 16 possibilities for setting debug and optimize in wx and aMule. Let's try some more.
(I'm tending towards "debug".)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: undefined reference to `non-virtual thunk
« Reply #31 on: April 30, 2011, 11:15:59 PM »

Tended in the right direction. All with wx: +opt -debug
amule:
+opt +debug  fail
-opt +debug  fail
+opt -debug  ok
-opt -debug  ok

thunk error and crashes with worked-around thunk error are always related.
Now what? Is "build aMule 2.3.1 rc1 with and without debug and see what happens" a valid test case for wx devs?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: undefined reference to `non-virtual thunk
« Reply #32 on: April 30, 2011, 11:45:02 PM »

I'm going to bet on "no"
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: undefined reference to `non-virtual thunk
« Reply #33 on: April 30, 2011, 11:51:18 PM »

I was afraid of that...

I rebuilt wx with -opt +debug , and the results are all the same:
amule:
-opt +debug  fail
-opt -debug  ok

So it's just aMule's debug option that triggers the problems.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: undefined reference to `non-virtual thunk
« Reply #34 on: May 01, 2011, 04:16:27 PM »

This doesn't work either.  :(

I did a bunch of googling about this error. Basically it's a missing symbol, just one used in a vtab of a virtual class.  It can have lots of causes.
- broken compiler (would have come up)
- libs for other compiler versions (would have come up)
- mixed compiler builds (nope)
- general missing library problems (then it's accompanied by ordinary missing symbol erros usually)

So what now?  ???
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: undefined reference to `non-virtual thunk
« Reply #35 on: May 06, 2011, 07:55:07 AM »

Can someone please verify we're using EXACTLY the same flags when compiling all parts of aMule?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: undefined reference to `non-virtual thunk
« Reply #36 on: May 07, 2011, 07:04:20 PM »

Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I../../trunk/src -I..  -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS
 -I/home/martin/amule/wx291/build/lib/wx/include/gtk2-unicode-2.9 -I/home/martin/amule/wx291/wxsvn/include -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-DWXUSINGDLL -D__WXGTK__ -I../../trunk/src/libs -I../../trunk/src/include  -DENABLE_IP2COUNTRY=1  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 
-MT libmuleappgui_a-MuleTextCtrl.o -MD -MP -MF .deps/libmuleappgui_a-MuleTextCtrl.Tpo -c -o libmuleappgui_a-MuleTextCtrl.o `test -f 'MuleTextCtrl.cpp' || echo '../../trunk/src/'`MuleTextCtrl.cpp

I'm having suspicions about -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC and also about -DwxDEBUG_LEVEL=0 . I've read that when using the GLIBCXX_DEBUG options in a lib they have to be present in the code as well. Maybe it's the other way round too? How can I turn them off?

Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: undefined reference to `non-virtual thunk
« Reply #37 on: May 07, 2011, 11:29:18 PM »

Sure thing, I was suspicious of them and indeed, that fixes it. And at least on Mac, it's KNOWN that std debugging on gcc (4.x)  is bugged.
« Last Edit: May 07, 2011, 11:35:11 PM by Kry »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: undefined reference to `non-virtual thunk
« Reply #38 on: May 08, 2011, 12:05:36 AM »

Totally did it in Linux too.  :D
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: undefined reference to `non-virtual thunk
« Reply #39 on: May 08, 2011, 12:44:42 PM »

And also WORKS on Mac:

2011-05-08 05:42:35: amuleAppCommon.cpp(331): Initialising aMule SVN compiled with wxOSX Cocoa v2.9.2 (Debugging) (Snapshot: rev. 10562)
Logged
Pages: 1 2 [3]