LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2010, 03:32 PM   #1
manjuvce
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
problem with installing ns 2.28 on ubuntu 10.04


hi,
i followed the below instructions for installing ns2.28 on ubuntu 0.04,
To install ns 2.28 and mobiwan 2.28 you should follow these steps

Download the following packages

ns-allinone-2.28.tar.gz
ns-2.28-gcc410.patch
ns-228-mobiwan-102.diff.gz

Type the following

$ tar zxvf ns-allinone-2.28.tar.gz
$ patch -p0 < ns-2.28-gcc410.patch
$ cd ns-allinone-2.28
$ ./install

the problem occurred is

likewin@likewin:~/ns-allinone-2.28$ ./install
*****************
******************
tk8.4.5 installation succeeded.
============================================================
* Build OTcl-1.9
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
configure: error: /bin/bash ./config.sub x86_64-unknown-linux-gnu failed
otcl-1.9 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.

what might be the problem. please help.
 
Old 11-06-2010, 08:41 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
http://mostafafouda.com/ns-2.html had the following suggestion:
Quote:
Originally Posted by mostafafouda.com
1- For installing in Ubuntu, you may run this command before installing NS-2:
sudo apt-get install build-essential autoconf automake libxmu-dev
 
Old 11-07-2010, 02:11 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ. .. .. ..

NS-allinone-2.28: Ubuntu is not very friendly to old tcl tk otcl tclcl.
You can just use later versions : Links to ns-allinone-2.34 → →
http://www.linuxquestions.org/questi...failed-732164/
> Post # 10 , etc. : It's a ns228 thread.
And I used Ubuntu 10.04-64 Bits for the test of ns-allinone-2.28.


But there is also a ns-233-mobiwan-1.patch : for ns-allinone-2.33.
Very easy to use.
http://www.linuxquestions.org/questi...obiwan-842269/
Mobiwan example file
http://www.linuxquestions.org/questi...6/#post4150894
..
Attached Files
File Type: txt 1-script-ns228-lucid.txt (510 Bytes, 125 views)
 
Old 04-28-2012, 11:26 PM   #4
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
otcl-1.9 make failed

I got the below error when i tried installing ns-2.28. Used the command ./install.


* Build OTcl-1.9
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for http.tcl... ../lib/tcl8.4/http2.4
checking Tcl http.tcl library... yes
checking for tclsh8.4.5... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.38-8-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/home/xyz/ns-allinone-2.28/include -I/home/xyz/ns-allinone-2.28/include -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/xyz/ns-allinone-2.28/include -I/home/xyz/ns-allinone-2.28/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/xyz/ns-allinone-2.28/otcl-1.9/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/xyz/ns-allinone-2.28/otcl-1.9/otcl.c:2283: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.9 make failed! Exiting ...


There is an issue with otcl-1.9. How to rectify it?
 
Old 04-29-2012, 01:59 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #4, @priya86mohanty : Welcome to LQ.


Which Linux OS are you using ? ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
... Like CentOS5, Ubuntu 10.04 etc.


No issues with otcl, but you seem to use the wrong g++ / gcc compiler.
Must be one of the extra compilers for your OS, like gcc34, gcc-3.4.

.
 
Old 04-29-2012, 02:12 PM   #6
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
I use Ubuntu 11.04. I removed the whole folder of ns-allinone-2.28 and tried re-installing. Followed the below procedure:
$ sudo apt-get update
$ sudo apt-get install build-essential autoconf automake libxmu-dev
$ tar zxvf ns-allinone-2.28.tar.gz
$ patch -p0 < ns228-gcc410.patch
$ cd ns-allinone-2.28
$ ./install

Now at the prompt type
$ cd ~
$ gedit .bashrc


and included the following path:

# LD_LIBRARY_PATH
OTCL_LIB=~/ns-allinone-2.28/otcl-1.9
NS2_LIB=~/ns-allinone-2.28/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=~/ns-allinone-2.28/tcl8.4.5/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=~/ns-allinone-2.28/bin:~/ns-allinone-2.28/tcl8.4.5/unix:~/ns-allinone-2.28/tk8.4.5/unix
NS=~/ns-allinone-2.28/ns-2.28/
NAM=~/ns-allinone-2.28/nam-1.11/
PATH=$PATH:$XGRAPH:$NS:$NAM


I saved the .bashrc file and typed ./configure which landed me with the below error:

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ ./configure
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../tcl8.4.5/generic
checking for libtcl8.4... -L/usr/lib -ltcl8.4
checking for init.tcl... ../tcl8.4.5/library
checking for tclsh8.4.5... no
checking for tclsh8.4... /usr/bin/tclsh8.4
checking for tk.h... -I../tk8.4.5/generic
checking for libtk8.4... -L/usr/lib -ltk8.4
checking for tk.tcl... ../tk8.4.5/library
checking for otcl.h... -I../otcl-1.9
checking for libotcl1.9... no
configure: error: Installation of otcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where otcl is
using the argument --with-otcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-otcl=no.


Can you please help me with this further?

Quote:
Originally Posted by knudfl View Post
Post #4, @priya86mohanty : Welcome to LQ.


Which Linux OS are you using ? ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
... Like CentOS5, Ubuntu 10.04 etc.


No issues with otcl, but you seem to use the wrong g++ / gcc compiler.
Must be one of the extra compilers for your OS, like gcc34, gcc-3.4.

.

Last edited by priya86mohanty; 04-29-2012 at 02:22 PM. Reason: added few more points
 
Old 04-29-2012, 02:37 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#6.
Quote:
I use Ubuntu 11.04
OK, then please try using the gcc34-compat like the example here

#2 http://www.linuxquestions.org/questi...11-a-902760/#2


.

Last edited by knudfl; 04-30-2012 at 03:52 AM.
 
1 members found this post helpful.
Old 04-30-2012, 04:06 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
About post # 6, and all the text added when the post was edited :

You will have to start from scratch, and use the right compiler !


Adding *PATH to .bashrc : Not required on Linux.
1) The binary 'ns' is hard coded to know the location of its libraries.
2) Nam : Copy a usable version of 'nam' to /usr/local/bin/
#4 http://www.linuxquestions.org/questi...10-a-840509/#4

3) Xgraph : sudo apt-get install xgraph
..... ( No ns2 xgraph works.)

.
 
1 members found this post helpful.
Old 04-30-2012, 08:12 AM   #9
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
export gcc

I could install gcc34-compact. I checked with the link that you gave. It is mentioned

32bits OS : cd ns-allinone-2.29/ && export CC=gcc34 CXX=g++34 && ./install

CC=gcc34 and CXX=g++34 has to be entered in the Makefile.in (in ns-2.28) is it?



Quote:
Originally Posted by knudfl View Post
#6.

OK, then please try using the gcc34-compat like the example here

#2 http://www.linuxquestions.org/questi...11-a-902760/#2


.
 
Old 04-30-2012, 04:18 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
CC=gcc34 and CXX=g++34 has to be entered in the Makefile.in (in ns-2.28) is it ?
When you do :
cd ns-allinone-2.28/ && export CC=gcc34 CXX=g++34 && ./install
.. then all the Makefile's will be created with this text :
CC = gcc34
CPP = g++34


The "&&" signs are used when you do more than one command, like :
First command : cd ns-allinone-2.28/
Second command : export CC=gcc34 CXX=g++34
Third command : ./install

.

Last edited by knudfl; 04-30-2012 at 04:45 PM.
 
Old 04-30-2012, 07:28 PM   #11
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
tcl8.3.2 configuration failed

I did as you have mentioned. But there still some problem. Please find the lines below after I typed the 1st, 2nd and 3rd command:

============================================================
* Build zlib
============================================================
Building static library libz.a version 1.1.4 with gcc34.
Checking for unistd.h... Yes.
Checking for errno.h... No.
Checking for mmap support... Yes.
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o example.o example.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o adler32.o adler32.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o compress.o compress.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o crc32.o crc32.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o gzio.o gzio.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o deflate.o deflate.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o trees.o trees.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o zutil.o zutil.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o inflate.o inflate.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o infblock.o infblock.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o infcodes.o infcodes.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o infutil.o infutil.c
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
gcc34 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -o example example.o -L. -lz
/usr/bin/ld: errno: TLS definition in /lib/i386-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in ./libz.a(gzio.o)
/lib/i386-linux-gnu/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [example] Error 1
Zlib make failed, but it's optional Continue ...

============================================================
* Build tcl8.4.5
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc34
checking whether the C compiler (gcc34 ) works... yes
checking whether the C compiler (gcc34 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc34 accepts -g... yes
checking how to run the C preprocessor... gcc34 -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... yes
checking for errno.h... no
checking for float.h... yes
checking for values.h... yes
checking for limits.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... no
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.


Why does it say "tcl8.3.2" when tcl8.4.5 is required for ns-2.28? And also it does not build otcl-1.9 like it builds tcl8.4.5. Please help me further.

Quote:
Originally Posted by knudfl View Post
When you do :
cd ns-allinone-2.28/ && export CC=gcc34 CXX=g++34 && ./install
.. then all the Makefile's will be created with this text :
CC = gcc34
CPP = g++34


The "&&" signs are used when you do more than one command, like :
First command : cd ns-allinone-2.28/
Second command : export CC=gcc34 CXX=g++34
Third command : ./install

.
 
Old 05-01-2012, 02:31 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#11.

Sorry, it appears that only gcc41 / g++41 works with ns-2.28 in Ubuntu 11.04.

Links in post # 181 here :
http://www.linuxquestions.org/questi...68/page13.html
 
1 members found this post helpful.
Old 05-01-2012, 04:26 AM   #13
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
make: *** No rule to make target `clean'. Stop.

I got th efollowing error when i typed make clean as mentioned in the link provided by you:

xyz@xyz-Presario-V3000-GN367PA-ACJ:~$ cd ns-allinone-2.28/
xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28$ cd ns-2.28/
xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ make clean
make: *** No rule to make target `clean'. Stop.
xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ cd ..

Then I typed export CC=gcc41 CXX=g++41 && ./install but still getting the same error:
....
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.1.4 with gcc41.
Checking for unistd.h... Yes.
Checking for errno.h... No.
Checking for mmap support... Yes.
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o example.o example.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o adler32.o adler32.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o compress.o compress.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o crc32.o crc32.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o gzio.o gzio.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o deflate.o deflate.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o trees.o trees.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o zutil.o zutil.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o inflate.o inflate.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o infblock.o infblock.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o infcodes.o infcodes.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o infutil.o infutil.c
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
gcc41 -O3 -DHAVE_UNISTD_H -DNO_ERRNO_H -DUSE_MMAP -o example example.o -L. -lz
/usr/bin/ld: errno: TLS definition in /lib/i386-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in ./libz.a(gzio.o)
/lib/i386-linux-gnu/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [example] Error 1
Zlib make failed, but it's optional Continue ...

============================================================
* Build tcl8.4.5
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... yes
checking whether the C compiler (gcc41 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc41 accepts -g... yes
checking how to run the C preprocessor... gcc41 -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... yes
checking for errno.h... no
checking for float.h... yes
checking for values.h... yes
checking for limits.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... no
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28$

Can you please le tme know the exact steps to be followed for ns-2.28 right from unzipping it till validating it??? !!!

Note: gcc41 and g++41 successfully installed.


Quote:
Originally Posted by knudfl View Post
#11.

Sorry, it appears that only gcc41 / g++41 works with ns-2.28 in Ubuntu 11.04.

Links in post # 181 here :
http://www.linuxquestions.org/questi...68/page13.html

Last edited by priya86mohanty; 05-01-2012 at 04:34 AM.
 
Old 05-01-2012, 04:41 AM   #14
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
Unhappy

I also checked the Makefile.in in ns-2.28, nam-1.11, tclcl-1.16, otcl-1.9... nowhere CC and CPP was replaced by gcc41 and g++41!!!
 
Old 05-01-2012, 07:24 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 14.

OK, the confusion is that we have two patches "ns 2.28 gcc4**.patch".

The Makefile's are not recreated, unless you 'make clean'
in all directories with a Makefile.
And delete the Makefile when 'make clean' doesn't delete it.

So actually it's easier to start from scratch :
1) tar xvf ns-allinone-2.28.tar.gz
2) patch -p0 < ns228-gcc40.patch
3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter>
4) export CC=gcc41 CXX=g++41
5) cd ns-allinone-2.28/
6) ./install
7) cd ns-2.28/
8) ./validate ( Or 'make test' which also will run 'validate'.)

Code:
validate overall report: some tests failed:
     ./test-all-newreno ./test-all-quickstart ./test-all-red ./test-all-jobs ./test-all-xcp
The validate result is better, when Ubuntu 10.04 is used, and when
later versions of tcl tk otcl tclcl are used. See post #3.
.
Attached Files
File Type: txt ns228-gcc40.patch.txt (4.2 KB, 326 views)
File Type: txt ns-2.28-gcc410.patch.txt (15.6 KB, 234 views)
 
1 members found this post helpful.
  


Reply

Tags
ns228, ns228#15, ns228-patch



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
problem installing ubuntu 8.10 warun Ubuntu 2 05-27-2009 12:41 AM
Problem Installing Ubuntu 8.10 edgartech Ubuntu 2 11-05-2008 01:28 AM
Problem installing Ubuntu 8 Juvencio Linux - Newbie 5 07-05-2008 01:30 AM
problem with installing ubuntu 7.04... opmeena Linux - Newbie 4 01-12-2008 09:48 AM
Installing Ubuntu Problem LinuxNewbie092 Ubuntu 5 03-29-2007 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 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