aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Problem compiling ed2k with wx trunk  (Read 4625 times)

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Problem compiling ed2k with wx trunk
« on: January 12, 2011, 02:29:44 PM »

I tried to compile amule against wx svn and it seem ed2k doens't respect the --with-wx-prefix option, instead it tries to use the standard library path.

Code: [Select]
mv -f .deps/ed2k-MagnetURI.Tpo .deps/ed2k-MagnetURI.Po
mv -f .deps/ed2k-MuleCollection.Tpo .deps/ed2k-MuleCollection.Po
g++ -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2    -o ed2k ed2k-ED2KLinkParser.o ed2k-MagnetURI.o ed2k-MuleCollection.o   
libs/ec/cpp/libec.a(ECMuleSocket.o): In function `CECMuleSocket::InternalConnect(unsigned int, unsigned short, bool)':
/home/egallego/tmp/amule/src/libs/ec/cpp/ECMuleSocket.cpp:110: undefined reference to `wxIPV4address::Service(unsigned short)'
/home/egallego/tmp/amule/src/libs/ec/cpp/ECMuleSocket.cpp:111: undefined reference to `wxSocketClient::Connect(wxSockAddress&, bool)'
libs/ec/cpp/libec.a(ECMuleSocket.o): In function `wxStringBase':
/usr/include/wx-2.8/wx/string.h:368: undefined reference to `wxStringBase::npos'
/usr/include/wx-2.8/wx/string.h:368: undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned long, unsigned long)'

Disabling ed2k it build and run perfectly (well, let's see if it crashes as much ;) )
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Problem compiling ed2k with wx trunk
« Reply #1 on: January 12, 2011, 07:22:10 PM »

ed2k is pure C++ and doesn't use wx at all. That's why it doesn't respect the --with-wx-prefix option.

The problem occurs in libec.a, which is not even referred to in the g++ command line. I don't see how they can be related...
Logged
concordia cum veritate

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problem compiling ed2k with wx trunk
« Reply #2 on: January 13, 2011, 01:05:57 AM »

Compilation threads, gonosz...
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: Problem compiling ed2k with wx trunk
« Reply #3 on: January 13, 2011, 01:55:46 AM »

You are right Kry, this may be related to make clean not deleting .deps directories or something like that. Unfortunately my knowledge of autotools is (intentionally) null.

If I delete all the .deps directories this kind of problem goes away.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Problem compiling ed2k with wx trunk
« Reply #4 on: January 13, 2011, 04:17:37 AM »

No, I mean, the error may come from a different thread than what's shown on the previous message. When make uses parallel jobs, the output is mashed together.

Try using make with just one job (make -j 1) and pasted the error output again (with the messages before it).

Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Problem compiling ed2k with wx trunk
« Reply #5 on: January 13, 2011, 07:30:59 AM »

Compilation threads, gonosz...
I'm so much used to single-thread make, that I completely forgot about that.
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Problem compiling ed2k with wx trunk
« Reply #6 on: January 13, 2011, 07:12:38 PM »

That was my first thought too, but it didn't explain why it worked with ed2k disabled.
Disabling ed2k it build and run perfectly (well, let's see if it crashes as much ;) )
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