Bug 1489

Summary: "Jakes" LogComponent is missing???
Product: ns-3 Reporter: Silvio Sampaio <silviocs>
Component: wifiAssignee: Tom Henderson <tomh>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, ruben, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: Linux   

Description Silvio Sampaio 2012-08-22 13:18:23 UTC
When attempt to run the wifi example ./waf --run "wifi-simple-infra --verbose=1"
it returns an error:
...
Ipv4L3Protocol=0
Ipv4Interface=0
WifiSimpleInfra=0
msg="Logging component "Jakes" not found. See above for a list of available log components", file=../src/core/model/log.cc, line=280
terminate called without an active exception

In WifiHelper we have:

void
WifiHelper::EnableLogComponents (void)
{
...
LogComponentEnable ("Jakes", LOG_LEVEL_ALL);
...
}

But I couldn't find the "Jakes"'log definition.
Comment 1 Tom Henderson 2012-08-22 13:32:40 UTC
I'll take this bug and fix it later this week.

This is probably due to the replacement of the Jakes model last release cycle, where old one had a LOG component defined, and new one does not.

Temporary workaround is to put 

NS_LOG_COMPONENT_DEFINE ("Jakes"); 

in either the jakes-process.cc or jakes-propagation-loss-model.cc and rebuild ns-3.
Comment 2 Tom Henderson 2012-08-22 13:33:27 UTC
> 
> Temporary workaround is to put 
> 
> NS_LOG_COMPONENT_DEFINE ("Jakes"); 
> 
> in either the jakes-process.cc or jakes-propagation-loss-model.cc and rebuild
> ns-3.

or else comment out the 
LogComponentEnable ("Jakes", LOG_LEVEL_ALL);
statement, obviously.
Comment 3 Tom Henderson 2012-08-27 03:02:27 UTC
changeset 4e780b4a0969