Bug 1489 - "Jakes" LogComponent is missing???
"Jakes" LogComponent is missing???
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
ns-3-dev
PC Linux
: P5 normal
Assigned To: Tom Henderson
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-22 13:18 UTC by Silvio Sampaio
Modified: 2012-08-27 03:02 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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