UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building ns-2.29 :
Please start from scratch with $ tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ tar xvf ns-2.29-nist-mob-022707.tgz
$ patch -p0 < pmip6-for-ns-2.29-nist.patch
$ export CC=gcc41 CXX=g++41 && ./install
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
#7, #8 .
Ubuntu 11.04 - i686 :
Testing with ns229.3 + ns-2.29-nist-mob-022707.tgz + pmip6-for-ns-2.29-nist.patch:
$ cd ns-allinone-2.29/
$ export CC=gcc41 CXX=g++41 && ./install
.. And when the errors appear : cd ns-2.29/,
.. then edit the Makefile to g++34,
.. and run $ make
** You will be stopped by a linker error.
( g++34 cannot do the linking. g++41 can.)
* Edit the Makefile to g++41
* Delete bluetooth/sco-agent.o
.. and run $ make
.. then the executable 'ns' is being created.
i follow each step you asked me for but i got this ...
Quote:
./routing/route.h:133: error: ‘atoi’ was not declared in this scope
./common/node.h: At global scope:
./common/node.h:157: error: expected ‘;’ before ‘(’ token
./mac/arp.h:73: error: ‘u_int16_t’ does not name a type
./mac/arp.h:74: error: ‘u_int16_t’ does not name a type
./mac/arp.h:75: error: ‘u_int8_t’ does not name a type
./mac/arp.h:76: error: ‘u_int8_t’ does not name a type
./mac/arp.h:77: error: ‘u_int16_t’ does not name a type
./mac/arp.h:79: error: ‘u_int16_t’ does not name a type
./mac/arp.h:80: error: ‘nsaddr_t’ does not name a type
./mac/arp.h:82: error: ‘u_int16_t’ does not name a type
./mac/arp.h:83: error: ‘nsaddr_t’ does not name a type
./mac/arp.h:96: error: ‘nsaddr_t’ has not been declared
./mac/arp.h:108: error: ‘nsaddr_t’ does not name a type
./mac/arp.h: In constructor ‘ARPEntry::ARPEntry(ARPEntry_List*, int)’:
./mac/arp.h:98: error: ‘ipaddr_’ was not declared in this scope
./mac/arp.h: At global scope:
./mac/arp.h:121: error: ‘nsaddr_t’ has not been declared
./mac/arp.h:123: error: expected ‘;’ before ‘(’ token
./mac/arp.h:124: error: ‘nsaddr_t’ has not been declared
./mac/arp.h:124: error: ‘nsaddr_t’ has not been declared
./mac/ll.h:82: error: ‘nsaddr_t’ has not been declared
./mac/ll.h:82: error: ‘nsaddr_t’ has not been declared
./hsntg/mih-types.h:342: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:343: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:382: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:386: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:425: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:428: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:429: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:440: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:452: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:453: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:457: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:458: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:459: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:464: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:465: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:469: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:470: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:471: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:475: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:476: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:481: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:482: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:483: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:488: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:489: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:494: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:495: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:500: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:501: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:502: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:506: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:507: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:508: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:513: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:514: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:515: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:516: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:521: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:522: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:523: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:524: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:529: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:530: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:534: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:538: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:539: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:543: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:547: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:548: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:550: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:551: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:555: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:556: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:558: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:559: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:563: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:564: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:569: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:570: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:575: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:576: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:581: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:582: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:585: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:592: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:593: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:598: error: ‘u_int16_t’ does not name a type
./hsntg/mih-types.h:599: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:600: error: ‘u_char’ does not name a type
./hsntg/mih-types.h:604: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:605: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:614: error: ‘u_int32_t’ does not name a type
./hsntg/mih-types.h:615: error: ‘u_int32_t’ does not name a type
./mac/mac.h:113: error: ‘u_int16_t’ does not name a type
./mac/mac.h:128: error: ISO C++ forbids declaration of ‘u_int16_t’ with no type
./mac/mac.h:128: error: ‘u_int16_t’ declared as an ‘inline’ field
./mac/mac.h:128: error: expected ‘;’ before ‘&’ token
./mac/mac.h:130: error: expected `;' before ‘inline’
./mac/mac.h:214: error: ‘u_int16_t’ has not been declared
./mac/mac.h:225: error: ‘u_int32_t’ does not name a type
./mac/mac.h:226: error: ISO C++ forbids declaration of ‘u_int32_t’ with no type
./mac/mac.h:226: error: expected ‘;’ before ‘*’ token
./mac/mac.h:227: error: ISO C++ forbids declaration of ‘u_int32_t’ with no type
./mac/mac.h:227: error: expected ‘;’ before ‘*’ token
./mac/mac.h:283: error: ‘u_int32_t’ does not name a type
./mac/mac.h:284: error: ‘u_int32_t’ does not name a type
./mac/mac.h:285: error: ‘u_int32_t’ does not name a type
./mac/mac.h: In member function ‘virtual int Mac::hdr_type(char*, int)’:
./mac/mac.h:217: error: ‘struct hdr_mac’ has no member named ‘hdr_type_’
./mac/mac.h:218: error: ‘struct hdr_mac’ has no member named ‘hdr_type’
./diffusion/diff_header.h: At global scope:
./diffusion/diff_header.h:106: error: ‘nsaddr_t’ does not name a type
mac/wireless-phy.cc: In member function ‘virtual int WirelessPhy::command(int, const char* const*)’:
mac/wireless-phy.cc:159: error: ‘strcasecmp’ was not declared in this scope
mac/wireless-phy.cc:186: error: ‘strcmp’ was not declared in this scope
mac/wireless-phy.cc:192: error: ‘strcasecmp’ was not declared in this scope
mac/wireless-phy.cc:193: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:196: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:199: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:202: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:205: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:208: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:211: error: ‘strcmp’ was not declared in this scope
mac/wireless-phy.cc:212: error: ‘atof’ was not declared in this scope
mac/wireless-phy.cc:244: error: ‘fprintf’ was not declared in this scope
mac/wireless-phy.cc:251: error: ‘fprintf’ was not declared in this scope
mac/wireless-phy.cc: In member function ‘virtual void WirelessPhy::sendDown(Packet*)’:
mac/wireless-phy.cc:342: error: ‘fprintf’ was not declared in this scope
mac/wireless-phy.cc: In member function ‘virtual void WirelessPhy::dump() const’:
mac/wireless-phy.cc:666: error: ‘fprintf’ was not declared in this scope
make: *** [mac/wireless-phy.o] Error 1
zahraa@ubuntu:/usr/src/ns-allinone-2.29/ns-2.29$
i install it on ubunt10.04 32 bit at the end of installation it asks me to edit bashrc file & i do edit variables & and now i'll execute ./validate command
but question is that error appear
Quote:
ns: command not found
sudo apt-get install ........ << not contain ns option
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Post #10.
Doesn't look like you are using g++34. ( I don't get those errors.)
Repeat (from post #8) :
""Please show line 36 - 37 from ns-allinone-2.29/ns-2.29/Makefile "".
* I.e. as long as we don't know which compiler you are using,
your errors tell nothing.
# 11 : You are not supposed to edit the .bashrc !
That's an old (1999) text only to be used when you are not the computer owner,
and cannot use 'sudo make install'.
? Did you manage to build the executable 'ns' ?
When 'ns' is present, you can do $ sudo make install
* Else not. As the only thing 'make install' does,
is to copy 'ns' to /usr/local/bin/
Wrong Number of Arguments! No arguments in this topology
ns wifi_wimax.tcl seed gd_threshold shutdown
expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 3} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "ns wifi_wimax.tcl seed gd_threshold shutdown"
puts..."
(file "wifi_wimax.tcl" line 29)
see tcl-object.tcl in tclcl for info about this warning.
lan created between router1 and iface2
multiFaceNode: tcl=_o218; id=7; addr=4.0.0
num_nodes is set 11
INITIALIZE THE LIST xListHead
bstation802: tcl=_o236; id=8; addr=3.0.0
bss_id for bstation 1=6
_o245 channelID = 2412000000.000000
_o273 channelID = 2412000000.000000
iface1: tcl=_o264; id=9; addr=3.0.1
At 0.000000 in 0.0.0 ND module added RA target 0.0.2
At 0.000000 in 3.0.0 MIH is adding mac 6
At 0.000000 in 4.0.0 Interface Manager : Flow added
tcp stream made from 1.0.0 and 0.0.2
At 0.000000 in 4.0.0 MIH is adding mac 0
At 0.000000 in 4.0.0 MIH is adding mac 7
At 0.000000 in 4.0.0 MIH is adding mac 5
Simulation is running ... please wait ...
Calling MIH_Get_Status
At 0.001000 in 4.0.0, MIH receives get_status for local MIH
MIH_Get_Status results for 3 interface(s):
Link ID: linkType=23, macMobileTerminal=0, macPoA=-1
Capabilities are: commands:3, events:3
MIH User subscribing for events 3 on Mac 0
Subscription status: requested=3, result=3
Link ID: linkType=19, macMobileTerminal=7, macPoA=-1
Capabilities are: commands:f, events:1bf
MIH User subscribing for events 2f on Mac 7
Subscription status: requested=2f, result=2f
Link ID: linkType=15, macMobileTerminal=5, macPoA=-1
Capabilities are: commands:3, events:3
MIH User subscribing for events 3 on Mac 5
Subscription status: requested=3, result=3
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
At 9.000000 in 4.0.0 MIH Agent received LINK UP trigger.
At 9.000000 in 4.0.0 Interface Manager received MIH event
At 9.000000 in 4.0.0 Handover link up
type 23, MacAddr=0, MacPoA=-1
At 10.700306 in 4.0.0 MIH Agent received LINK DETECTED trigger.
At 10.700306 in 4.0.0 Interface Manager received MIH event
At 10.700306 in 4.0.0 Handover received link detected
type 19, MacAddr=7, PoA=6, MIHCapable=1
I launch the connection on the link
Link Connect to AP 6 on Channel 1
At 10.701313 in 4.0.0 MIH Agent received LINK UP trigger.
At 10.701313 in 4.0.0 Interface Manager received MIH event
At 10.701313 in 4.0.0 Handover link up
type 19, MacAddr=7, MacPoA=6
At 10.701313 MIPv6 Agent in 4.0.0 requests ND to send RS
At 10.701313 in 3.0.1 ND module send RS
At 10.703523 in 3.0.0 ND module received RS from node 3.0.1
At 10.918726 in 3.0.0 ND module processes RS reply.
At 10.918726 in 3.0.0 ND module send RA
At 10.919844 in 3.0.1 ND module received RA from node 3.0.0
router-lifetime=5.000000 s
prefix valid_lifetime=5 s
prefix=3.0.0
advertisement interval=600000 ms
-> New neighbor
At 10.919844 in 4.0.0 SimpleHandover received new prefix 3.0.0
old address: 3.0.1, prefix=3.0.0, new address will be 3.0.1
At 10.919844 in 4.0.0 MIH Agent sending capability discovery request
At 11.026134 in 3.0.0 MIH Agent received capability discovery request
At 11.026134 in 3.0.0 MIH Agent sending capability discovery response
At 11.029875 in 4.0.0 MIH Agent received capability discovery response
At 11.029875 in 4.0.0 SimpleHandover received MIH_Capability_discover.confirm
Remote MIHF: Id = 1,
At 11.029875 in 4.0.0 MIH Agent sending registration request
At 11.031119 in 3.0.0 MIH Agent received registration request
At 11.530736 in 3.0.0 MIH Agent received registration request
At 12.030916 in 3.0.0 MIH Agent received registration request
At 12.530736 in 3.0.0 MIH Agent received registration request
At 15.919844 in 3.0.1 ND module has prefix 3.0.0 expired
At 20.000000 in 4.0.0 MIH Agent received LINK UP trigger.
At 20.000000 in 4.0.0 Interface Manager received MIH event
At 20.000000 in 4.0.0 Handover link up
type 15, MacAddr=5, MacPoA=-1
At 24.000000 in 4.0.0 MIH Agent received LINK DOWN trigger.
At 24.000000 in 4.0.0 Interface Manager received MIH event
At 24.000000 in 4.0.0 Handover received link down
type 15, MacAddr=5, MacPoA=-1
At 26.200306 in 4.0.0 MIH Agent received LINK DOWN trigger.
At 26.200306 in 4.0.0 Interface Manager received MIH event
At 26.200306 in 4.0.0 Handover received link down
type 19, MacAddr=7, MacPoA=6
Simulation ended.
root@ubuntu:/usr/src/ns-allinone-2.29/ns-2.29/tcl/hsntg#
# 9
Quote:
$ export CC=gcc41 CXX=g++41 && ./install
.. And when the errors appear : cd ns-2.29/,
.. then edit the Makefile to g++34,
.. and run $ make
** You will be stopped by a linker error.
( g++34 cannot do the linking. g++41 can.)
* Edit the Makefile to g++41
* Delete bluetooth/sco-agent.o
.. and run $ make
.. then the executable 'ns' is being created.
#12
Quote:
# The following will be redefined under Windows (see WIN32 lable below)
CC = gcc
CPP = g++41
Last edited by fatma alzahra; 09-04-2014 at 01:39 AM.
hi knudfl;
first of all i want to thank you for your help and support and giving me from your time and attention .
i check it all things is ok ; and Makefile.in is correct ....
why am i able to simulate MIH.tcl example correctly even it contains wifi&wimax&umts ?????
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.