- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- NS2 Installation Problem
AKannan1983
Participant
Dear Sir,
I am not able to install ns-allinone-2.29 package in fedora 9.
[root@localhost ns-allinone-2.29]# patch -p1 < mannasim-patch.diff
Patch applied successfully.
then install ns2.
[root@localhost ns-allinone-2.29]#./install
The following error message is displayed.
./common/packet.h:268: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:271: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:274: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:276: warning: deprecated conversion from string constant to ‘char*’
g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/root/ns-allinone-2.29/tclcl-1.17 -I/root/ns-allinone-2.29/otcl-1.11 -I/root/ns-allinone-2.29/include -I/root/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/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 wpan/p802_15_4trace.o wpan/p802_15_4trace.cc
In file included from wpan/p802_15_4trace.cc:54:
./common/packet.h: In constructor ‘p_info:_info()’:
./common/packet.h:184: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:185: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:186: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:187: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:188: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:189: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:190: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:191: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:192: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:193: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:194: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:195: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:196: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:197: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:198: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:199: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:200: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:201: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:202: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:203: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:205: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:206: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:207: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:208: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:209: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:210: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:212: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:213: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:214: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:215: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:216: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:217: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:218: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:219: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:220: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:221: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:222: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:223: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:224: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:225: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:227: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:228: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:230: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:231: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:232: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:235: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:238: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:241: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:244: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:247: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:250: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:254: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:258: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:259: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:261: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:262: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:265: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:268: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:271: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:274: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:276: warning: deprecated conversion from string constant to ‘char*’
g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/root/ns-allinone-2.29/tclcl-1.17 -I/root/ns-allinone-2.29/otcl-1.11 -I/root/ns-allinone-2.29/include -I/root/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/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 wpan/p802_15_4transac.o wpan/p802_15_4transac.cc
In file included from wpan/p802_15_4transac.h:57,
from wpan/p802_15_4transac.cc:55:
./common/packet.h: In constructor ‘p_info:_info()’:
./common/packet.h:184: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:185: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:186: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:187: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:188: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:189: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:190: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:191: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:192: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:193: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:194: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:195: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:196: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:197: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:198: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:199: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:200: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:201: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:202: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:203: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:205: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:206: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:207: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:208: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:209: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:210: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:212: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:213: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:214: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:215: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:216: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:217: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:218: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:219: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:220: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:221: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:222: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:223: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:224: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:225: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:227: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:228: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:230: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:231: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:232: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:235: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:238: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:241: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:244: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:247: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:250: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:254: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:258: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:259: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:261: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:262: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:265: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:268: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:271: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:274: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:276: warning: deprecated conversion from string constant to ‘char*’
g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/root/ns-allinone-2.29/tclcl-1.17 -I/root/ns-allinone-2.29/otcl-1.11 -I/root/ns-allinone-2.29/include -I/root/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/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:44,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/sensorNode.h:36:18: error: list.h: No such file or directory
In file included from mannasim/processing.h:45,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/sensedData.h:41:20: error: vector.h: No such file or directory
In file included from ./common/agent.h:41,
from mannasim/accessPointApp.h:40,
from mannasim/accessPointApp.cc:37:
./common/packet.h: In constructor ‘p_info:_info()’:
./common/packet.h:184: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:185: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:186: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:187: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:188: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:189: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:190: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:191: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:192: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:193: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:194: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:195: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:196: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:197: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:198: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:199: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:200: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:201: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:202: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:203: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:205: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:206: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:207: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:208: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:209: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:210: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:212: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:213: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:214: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:215: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:216: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:217: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:218: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:219: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:220: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:221: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:222: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:223: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:224: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:225: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:227: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:228: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:230: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:231: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:232: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:235: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:238: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:241: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:244: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:247: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:250: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:254: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:258: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:259: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:261: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:262: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:265: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:268: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:271: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:274: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:276: warning: deprecated conversion from string constant to ‘char*’
In file included from mannasim/processing.h:44,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/sensorNode.h: At global scope:
mannasim/sensorNode.h:48: error: expected initializer before ‘<’ token
mannasim/sensorNode.h:73: error: ‘AppList’ does not name a type
In file included from mannasim/processing.h:45,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/sensedData.h:49: error: expected initializer before ‘<’ token
mannasim/sensedData.h:50: error: expected initializer before ‘<’ token
mannasim/sensedData.h:65: error: ‘AppDataList’ does not name a type
mannasim/sensedData.h:105: error: ‘AppDataList’ does not name a type
In file included from mannasim/processing.h:47,
from mannasim/accessPointApp.h:45,
from mannasim/accessPointApp.cc:37:
mannasim/dataGenerator.h: In member function ‘virtual AppData* DataGenerator::collect()’:
mannasim/dataGenerator.h:94: warning: no return statement in function returning non-void
mannasim/dataGenerator.h: In member function ‘virtual AppData* DataGenerator::getMaximumAllowedValue()’:
mannasim/dataGenerator.h:132: warning: no return statement in function returning non-void
mannasim/accessPointApp.cc: In member function ‘virtual void AccessPointApp:rocess_data(int, AppData*)’:
mannasim/accessPointApp.cc:79: error: ‘AppDataList’ was not declared in this scope
mannasim/accessPointApp.cc:79: error: expected `;’ before ‘list’
mannasim/accessPointApp.cc:81: error: expected primary-expression before ‘int’
mannasim/accessPointApp.cc:81: error: expected `)’ before ‘int’
mannasim/accessPointApp.cc:83: error: ‘AppDataList’ is not a class or namespace
mannasim/accessPointApp.cc:83: error: expected `;’ before ‘it’
mannasim/accessPointApp.cc:83: error: ‘it’ was not declared in this scope
mannasim/accessPointApp.cc:83: error: missing template arguments before ‘.’ token
mannasim/accessPointApp.cc: In member function ‘virtual void AccessPointApp::forward_data(int, AppData*)’:
mannasim/accessPointApp.cc:97: error: ‘AppDataList’ was not declared in this scope
mannasim/accessPointApp.cc:97: error: expected `;’ before ‘list’
mannasim/dataGenerator.h: At global scope:
mannasim/dataGenerator.h:65: warning: inline function ‘virtual void EventTimer::expire(Event*)’ used but never defined
mannasim/dataGenerator.h:52: warning: inline function ‘virtual void SensingTimer::expire(Event*)’ used but never defined
mannasim/sensorBaseApp.h:84: warning: inline function ‘virtual void DisseminatingTimer::expire(Event*)’ used but never defined
make: *** [mannasim/accessPointApp.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
[root@localhost ns-allinone-2.29]#
How to solve it.
Thank U
A.Kannan
CharlesPandian
Keymaster
This problem may be due to the gcc version of Fedora 9. Try installing lower version of gcc.
OR
Try installing higher versions of ns2 on Fedora 9
OR
Try ns2 on lower version of Fedora.
ns2 can be installed on RedHat Linux (I tried only on old versions of RHL) without any gcc related issues.