how to solve errors during installation of Mannasim in ns-allinone-2.34

This post list the errors occurred during installation of mannasim in ns-allinone-2.34 and also provide solution for them.
1. mannasim / accessPointApp.o mannasim/accessPointApp.cc
In file included from mannasim/processing.h:44:0,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/sensorNode.h:36:18: fatal error: list.h: No such file or directory compilation terminated.
make: *** [mannasim/accessPointApp.o] Error 1
sol:
Go to mannasim/sensorNode.h
#ifndef __ns_sensornode_h__
#define __ns_sensornode_h__
#include
Comment and change this
//#include to
#include #include “app.h”
#include “mobilenode.h”
#include “battery.h”
2.
/diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o mannasim/accessPointApp.o mannasim/accessPointApp.cc
In file included from mannasim/processing.h:45:0,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/sensedData.h:40:18: fatal error: list.h: No such file or directory compilation terminated.
make: *** [mannasim/accessPointApp.o] Error 1
Sol.
Go to mannasim/sensedData.h
Comment and change these
//#include //#include
to
#include #include
#include
#include <common/ns-process.h>
3.
ffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o mannasim/accessPointApp.o mannasim/accessPointApp.cc
In file included from mannasim/processing.h:47:0,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/dataGenerator.h:28:18: fatal error: list.h: No such file or directory compilation terminated.
make: *** [mannasim/accessPointApp.o] Error 1
Sol.
Go to mannasim/dataGenerator.h
Comment and change this
//#include to
#include #include <tools/rng.h>
#include <common/ns-process.h>
#include “battery.h”
#include “sensorNode.h”
#include “sensorBaseApp.h”
#include “util/accounts.h”
4.
mannasim/onDemandData.o mannasim/onDemandData.cc
mannasim/onDemandData.cc: In constructor ‘OnDemandData::OnDemandData()’:
mannasim/onDemandData.cc:44:33: error: cannot call constructor ‘OnDemandData::OnDemandData’ directly [-fpermissive]
mannasim/onDemandData.cc:44:33: error: for a function-style cast, remove the redundant ‘::OnDemandData’ [-fpermissive]
make: *** [mannasim/onDemandData.o] Error 1
Sol.
Go to mannasim/onDemandData.cc
Comment the following lines
//OnDemandData :: OnDemandData()
//{
/// REAL request type is default.
//OnDemandData::OnDemandData(REAL);
//}
5.
mannasim/diffusion/commonNodeDiffApp.o mannasim/diffusion/commonNodeDiffApp.cc
In file included from mannasim/diffusion/commonNodeDiffApp.cc:9:0:
mannasim/diffusion/commonNodeDiffApp.h:6:18: fatal error: list.h: No such file or directory compilation terminated.
make: *** [mannasim/diffusion/commonNodeDiffApp.o] Error 1
Sol.
Go to mannasim/diffusion/commonNodeDiffApp.h
#ifndef _COMMONNODEDIFFAPP_H_
#define _COMMONNODEDIFFAPP_H_
Comment and change this
//#include to
#include #include
#include “nrAttributes.h”
#include “attrsExporter.h”
#include “../commonNodeApp.h”
6.
/diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o mannasim/leach/rca/rca-ll.o mannasim/leach/rca/rca-ll.cc
mannasim/leach/rca/rca-ll.cc:13:18: fatal error: list.h: No such file or directory compilation terminated.
make: *** [mannasim/leach/rca/rca-ll.o] Error 1
Sol.
Go to mannasim/leach/rca/rca-ll.cc
#include “delay.h”
//#include “object.h”
#include “packet.h”
//#include “debug.h”
Comment and change this
//#include “list.h”
to
#include “list”
#include “arp.h”
#include “topography.h”
#include “trace.h”
#include “node.h”
#include “mac.h”
#include “ll.h”
#include “mannasim/leach/rca/rca-ll.h”
#include “random.h”
7.
mannasim/leach/rca/rcagent.o mannasim/leach/rca/rcagent.cc
In file included from mannasim/leach/rca/rcagent.cc:7:0:
./mannasim/leach/app/leachApp.h:7:18: fatal error: list.h: No such file or directory compilation terminated.
make: *** [mannasim/leach/rca/rcagent.o] Error 1
Sol.
Go to ./mannasim/leach/app/leachApp.h
#define _LEACHAPP_H_
#include <mannasim/sensorBaseApp.h>
#include <mannasim/sensedData.h>
#include <scheduler.h>
Comment and change this
//#include <list.h>
to
#include <list>
#include <mannasim/leach/mac/mac-sensor.h>