LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2015, 06:05 PM   #1
hibaa
LQ Newbie
 
Registered: Feb 2014
Posts: 25

Rep: Reputation: Disabled
ubuntu 11.04 with ns2.29.3


hi knudfl
i try to install ns2.29.3 on ubuntu 11.04 (32 bit)
i read threads
http://www.linuxquestions.org/questi...-a-4175431350/

and

using gcc41-compat, g++41-compat:
http://www.linuxquestions.org/questi...571/page2.html
Links in post # 17.

but when install i had errors

s/ns-allinone-2.29/include -I/include otcl.c
otcl.c: In function OTclDispatch:
otcl.c:504:1: error: invalid storage class for function AutoLoaderDP
otcl.c:509:1: error: invalid storage class for function AutoLoader
otcl.c:565:1: error: invalid storage class for function AddMethod
otcl.c:580:1: error: invalid storage class for function RemoveMethod
otcl.c:610:1: error: invalid storage class for function OTclDeleteProc
otcl.c:704:1: error: invalid storage class for function ListKeys
otcl.c:717:1: error: invalid storage class for function ListInstanceKeys
otcl.c:731:1: error: invalid storage class for function ListProcKeys
otcl.c:751:1: error: invalid storage class for function FindProc
otcl.c:763:1: error: invalid storage class for function ListProcArgs
otcl.c:798:1: error: invalid storage class for function ListProcDefault
otcl.c:855:1: error: invalid storage class for function ListProcBody
otcl.c:880:1: error: invalid storage class for function PrimitiveOInit
otcl.c:926:13: error: invalid storage class for function PrimitiveODestroyNoFree
otcl.c:929:1: error: invalid storage class for function PrimitiveODestroy
otcl.c:935:1: error: invalid storage class for function PrimitiveODestroyNoFree
otcl.c:1024:1: error: invalid storage class for function PrimitiveOCreate
otcl.c:1048:1: error: invalid storage class for function PrimitiveCInit
otcl.c:1066:1: error: invalid storage class for function PrimitiveCDestroy
otcl.c:1161:1: error: invalid storage class for function PrimitiveCCreate
otcl.c:1195:1: error: invalid storage class for function OTclOAllocMethod
otcl.c:1216:1: error: invalid storage class for function OTclOInitMethod
otcl.c:1243:1: error: invalid storage class for function OTclODestroyMethod
otcl.c:1292:1: error: invalid storage class for function OTclOClassMethod
otcl.c:1311:12: error: invalid storage class for function OTclCInfoMethod
otcl.c:1314:1: error: invalid storage class for function OTclOInfoMethod
otcl.c:1360:1: error: invalid storage class for function OTclOProcMethod
otcl.c:1389:1: error: invalid storage class for function OTclONextMethod
otcl.c:1405:1: error: invalid storage class for function OTclOSetMethod
otcl.c:1421:1: error: invalid storage class for function OTclOUnsetMethod
otcl.c:1469:1: error: invalid storage class for function OTclOInstVarMethod
otcl.c:1506:1: error: invalid storage class for function OTclCAllocMethod
otcl.c:1527:1: error: invalid storage class for function OTclCCreateMethod
otcl.c:1569:1: error: invalid storage class for function OTclCSuperClassMethod
otcl.c:1670:1: error: invalid storage class for function OTclCInfoMethod
otcl.c:1786:1: error: invalid storage class for function OTclCInstProcMethod
otcl.c:1815:1: error: nested function OTclAsObject declared extern
otcl.c:1822:1: error: nested function OTclAsClass declared extern
otcl.c:1829:1: error: nested function OTclGetObject declared extern
otcl.c:1840:1: error: nested function OTclGetClass declared extern
otcl.c:1851:1: error: nested function OTclCreateObject declared extern
otcl.c:1862:1: error: nested function OTclCreateClass declared extern
otcl.c:1873:1: error: nested function OTclDeleteObject declared extern
otcl.c:1882:1: error: nested function OTclDeleteClass declared extern
otcl.c:1891:1: error: nested function OTclAddPMethod declared extern
otcl.c:1905:1: error: nested function OTclAddIMethod declared extern
otcl.c:1914:1: error: nested function OTclRemovePMethod declared extern
otcl.c:1921:1: error: nested function OTclRemoveIMethod declared extern
otcl.c:1927:1: error: nested function OTclNextMethod declared extern
otcl.c:1969:1: error: nested function OTclSetInstVar declared extern
otcl.c:1983:1: error: nested function OTclGetInstVar declared extern
otcl.c:1996:1: error: nested function OTclUnsetInstVar declared extern
otcl.c:2009:1: error: nested function OTclSetObjectData declared extern
otcl.c:2023:1: error: nested function OTclGetObjectData declared extern
otcl.c:2034:1: error: nested function OTclUnsetObje


can u help me

Last edited by hibaa; 04-06-2015 at 06:06 PM.
 
Old 04-06-2015, 06:11 PM   #2
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Rep: Reputation: 65
BUNTUS 11 is WAY past it's end of life

with BUNTUS 14.10 released few months ago...

in 10 DAYS Buntus 11 will hit it's END OF LIFE

Buntus 11 is unsupported !!!

install a supported version of Buntus !!!

BUNTU 15.04 >>> http://cdimage.ubuntu.com/daily-live/current/


Last edited by gor0; 04-06-2015 at 06:13 PM.
 
Old 04-06-2015, 08:05 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@hibaa.

"http://www.linuxquestions.org/questi...571/page2.html"
... is not a valid link.

* HOWTO copy a link address :
Right click >> Select "Copy Link Location".

Which compiler packages did you install ?
Must be gcc41-compat-4.1.2_i386.deb + g++41-compat-4.1.2_i386.deb
... for the 32bits Ubuntu 11.04 >>
$ sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb
$ cd /usr/bin/
$ ln -s ../gcc41/bin/gcc41
$ ln -s ../gcc41/bin/g++41

$ cd ns-allinone-2.29/ && export CC=gcc41 CXX=g++41 && ./install

? Why do you want ns-allinone-2.29.3 ?

-
 
Old 04-08-2015, 01:40 AM   #4
hibaa
LQ Newbie
 
Registered: Feb 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
i need to install nist mobility to simulate Vertical handover between wifi and wimax

after ./install

i have this error:

In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ./../generic/../unix/tclUnixPort.h:39,
from ./../generic/tclPort.h:27,
from ./../generic/tclAlloc.c:29:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
In file included from /usr/include/sys/socket.h:40,
from ./../generic/../unix/tclUnixPort.h:139,
from ./../generic/tclPort.h:27,
from ./../generic/tclAlloc.c:29:
/usr/include/bits/socket.h:381:24: error: asm/socket.h: No such file or directory
make: *** [tclAlloc.o] Error 1
tcl8.4.11 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

Last edited by hibaa; 04-08-2015 at 02:20 AM.
 
Old 04-08-2015, 02:53 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4.

REPEAT : Which 'gcc41-compat' package did you install ?
Quote:
error: asm/errno.h: No such file or directory
.
error: asm/socket.h: No such file or directory
I guess you are missing one of the ns2 build prerequisites :
$ sudo apt-get install g++ automake libtool libxmu-dev


-
 
Old 04-08-2015, 02:49 PM   #6
hibaa
LQ Newbie
 
Registered: Feb 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
i used
gcc41-compat-4.1.2_i386.deb

and i install "g++ automake libtool libxmu-dev "
????


?????
 
Old 04-08-2015, 03:10 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #6.

Then please do :
1) $ cd ns-allinone-2.29/
2) $ tar xvf ns-2.29-nist-mob-022707.tgz
3) $ export CC=gcc41 CXX=g++41 && ./install
** Doesn't work on all Ubuntu versions. See "Note".

Note : Please read posts #33, #34 here ...
http://www.linuxquestions.org/questi...585/page3.html
... for hints about errors, and about the safe OS to use for nist-mob.

All nist-mob INFO http://www.linuxquestions.org/questions/tags/nist-mob/

-
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.34 in ubuntu 12.04 EVyshnavi Linux - Software 1 10-04-2013 10:31 PM
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 04:52 PM
NS2.31 in ubuntu 10.10 Dibs Linux - Newbie 0 08-02-2012 05:30 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
NS2 2.34 in Ubuntu abc Linux - Software 0 07-20-2010 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration