aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation problem with Boos:Asio  (Read 4259 times)

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Compilation problem with Boos:Asio
« on: June 11, 2016, 01:03:58 PM »

Hi
I've just pulled the latest git source base.
If I enable Boost::asio the compilation fails because IPFilterScanner fails to link against CLoggr:IsEnabled
I see that in case that __DEBUG__ is not defined, the definition of such function is done in Logger.h returning false.
I compile with --disable-debug, so my understanding is that for some reason this __DEBUG__ define is not managed correctly in case of Boost:Asio
Bye
Logged

bubez811

  • Approved Newbie
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 24
Re: Compilation problem with Boos:Asio
« Reply #1 on: June 14, 2016, 08:36:01 AM »

i read somewhere that if you enable boost you have to disable debug it's a known thing
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Compilation problem with Boos:Asio
« Reply #2 on: June 22, 2016, 10:17:13 AM »

No, it's not a known thing and most importantly they should not affect each other. I have built aMule successfully with both debug and boost enabled.

Could you please attach a log of the error?
Logged
concordia cum veritate

bubez811

  • Approved Newbie
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 24
Re: Compilation problem with Boos:Asio
« Reply #3 on: June 22, 2016, 11:31:21 AM »

ah ok my mistake!
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Compilation problem with Boos:Asio
« Reply #4 on: June 22, 2016, 10:36:39 PM »

No, it's not a known thing and most importantly they should not affect each other. I have built aMule successfully with both debug and boost enabled.

Could you please attach a log of the error?

Hi
I should clean  and rebuild the source tree,   however I remember the error.
It was failing to link a lib because of a missing CLogger:IsEnabled() 
In the GIT rev I have used this method was defined in Logger.h returning false in case of #ifndef__DEBUG__.
Otherwise if__DEGUG__ is defined,  the definition of such method is in Logger.cpp. I have fixed the issue removing the return false definition from .h and moved it under ifdef-else in the .cpp.
I cannot be more specific about what was the exact component failing to build, but was Boost:Asio specific for sure and with - - disable-debug.
But please consider that it was the same directory where I built the non Asio version, going through a new .configure so maybe it was the problem?
Bye
« Last Edit: June 22, 2016, 10:40:09 PM by Menion »
Logged