ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
thank u sir, i've corrected the errors but i'm getting errors while i run the trace file, the errors are like the changes i've done in files have not updated.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 4 .
Quote:
g++ -o common/ptypes2tcl common/ptypes2tcl.o
You are using the wrong compiler. Should be g++-4.1, not g++.
Please read http://www.linuxquestions.org/questi...-4175451154/#6
> Post #6 : That's the answer you got a month ago.
And there is an unanswered question in that post #6 :
"Where did you get the information that the above will work ?"
I.e. you are trying to mix two patches, ns-229-nist-mob + pmip6-for-ns-229.
? The two patches may conflict ?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 6 .
Well, then please tell what you are doing.
The error tells very little when all the beginning is mising.
Things to specify when you ask an ns2 question :
OS name, version, architecture. Like Ubuntu 10.04 - 32bits(i686).
Ns2 version. 'ns-allinone-2.29.3.tar.gz' ? ( If ns-2.29 : version 3 is a must.)
And if any changes were made to ns-2.xx : Please specify patch name(s).
i Use ubuntu 10.04 (32 bit) , I want to add wimax module to ns-allinone-2.29 from this link http://www.lrc.ic.unicamp.br/wimax_ns2/ (this is an old version but i want it to make comparison with my work )
i install my ns-allinone-2.29 correctly then i add the mac files , i change the makefile.in , i copy the modification in the packet.h and tcl/lib file then i try to make
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 8 .
You are right. "WiMAX_module-1.02.zip" does not work in ns-2.29.
Is for ns-2.28 :
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) cd ns-allinone-2.28/
5) tar xvf wimax102-ns228-patch.tar.bz2
6) export CC=gcc41 CXX=g++41 && ./install
I need you help again sir
when i configure then make the nam-1.11 folder i get those errors , do you have any idea about this
/usr/bin/ld: nam: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [nam] Erreur 1
? By the way : Why run './configure && make' in nam-1.11/ ?
Is handled by ./install.
And : There is no such thing as ./configure in any ns-2.28 application.
The command is $ export CC=gcc41 CXX=g++41 && ./configure .
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Getting Out of segmentation Fault
Quote:
Originally Posted by raji27
thank u sir, i've corrected the errors but i'm getting errors while i run the trace file, the errors are like the changes i've done in files have not updated.
Dear raji27,
Could you please help to solve the segmentation fault problem?
root@chakraborty-desktop:/home/chakraborty/ns/ns-allinone-2.33/ns-2.33# gdb ./common/ptypes2tcl
.....
.......
Reading symbols from /home/chakraborty/ns/ns-allinone-2.33/ns-2.33/common/ptypes2tcl...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/chakraborty/ns/ns-allinone-2.33/ns-2.33/common/ptypes2tcl
static const char code[] = "\n\
global ptype pvals\n\
set ptype(error) -1\n\
set pvals(-1) error\n\
........
...........
set ptype(belllabstrace) 60\n\
set pvals(60) BellLabsTrace\n\
Program received signal SIGSEGV, Segmentation fault.
0x080489b5 in lcase(char const*) ()
(gdb) bt
#0 0x080489b5 in lcase(char const*) ()
#1 0x08048a6e in main ()
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post #13, @Chakraborty.
What is it you are trying to do ?
** Using "ptypes2tcl" :
$ cd ns-allinone-2.33/ns-2.33/common/ && ./ptypes2tcl
Quote:
# gdb ./common/ptypes2tcl
Two things are wrong. Do not use root for ns2 commands.
And : There are generally no debugging symbols in any ns2 executable.
Meaning you can't use gdb to debug those.
Quote:
I am patching GPSR to NS-2.33 in Ubuntu-12.04
Then please do not ask off-topic questions in a WIMAX thread.
As you can see from post #5, you can get segmentation fault,
when you are using a wrong compiler.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.