aMule Forum

English => Compilation problems => Topic started by: Menion on June 11, 2016, 01:03:58 PM

Title: Compilation problem with Boos:Asio
Post by: Menion 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
Title: Re: Compilation problem with Boos:Asio
Post by: bubez811 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
Title: Re: Compilation problem with Boos:Asio
Post by: GonoszTopi 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?
Title: Re: Compilation problem with Boos:Asio
Post by: bubez811 on June 22, 2016, 11:31:21 AM
ah ok my mistake!
Title: Re: Compilation problem with Boos:Asio
Post by: Menion 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