Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ patch -p0 < sip-svn.r29__ns229.patch
$ tar xvf sip_r104-adds-to-r29__ns229.tar.gz
$ export CC=gcc34 CXX=g++34
$ ./install
after execution of ./install i have this error:
checking whether the C compiler (gcc34 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
If you installed "gcc34 / g++34" they can be used. Else not.
And you will have to specify your 'Linux OS' to get the information about the gcc34/g++34 choices.
Please show the output from the command $ uname -m
And please specify OS name and version.
-
Thanks for your response
the output of $ uname -m is: i686
and i have installed ubuntu 12.04.5.LTS
yes i installed "gcc34 / g++34"
and then i installed gcc41 / g++41 and i tried with the solution posted in this link :http://www.linuxquestions.org/questi...quasim-932264/
but no result and i had the same problem
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Re #3.
Quote:
Yes I installed "gcc34 / g++34"
Which packages ? The file names, please.
1) There is a new version.
2) Not all "gcc34/g++34" will fit Ubuntu 12.04 .
2a) Your gcc34/g++34`s may not be in your PATH :
a) $ which gcc34
b) $ which g++34
3) gcc41/g++41 can also be used, if you installes the right packages :
$ export CC=gcc41 CXX=g++41 && ./install
... if they are in your PATH.
Which packages ? The file names, please.
1) There is a new version.
2) Not all "gcc34/g++34" will fit Ubuntu 12.04 .
2a) Your gcc34/g++34`s may not be in your PATH :
a) $ which gcc34
b) $ which g++34
3) gcc41/g++41 can also be used, if you installes the right packages :
$ export CC=gcc41 CXX=g++41 && ./install
... if they are in your PATH.
-
i installed compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb
and compat-gcc-34-c++_3.4.6-20_amd64.deb
the problem is of the version which packages i should install please?
when i execute this command sudo apt-get install gcc-4.6
i have this message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 101 not upgraded.
thanks for your response but i have another question please if i installed ns2.35 and used the ns2VoIP++150310.patch of ns2.34 i should do same instructions that i used for ns-2.29?
and when i execute this command for ns-2.35 : cat /tmp/ns2VoIP++150310.patch | patch -Np1
i have this problem
Thanks sir you are very helpful all these instructions are executed successfully but when i simulate the example sip-example-udp.tcl from "sip-examples-2014.tar.gz"
i have the same problem :
Start simulation with 33 Call/sec
invalid command name "Agent/UDP/UDPSIP"
while executing
"Agent/UDP/UDPSIP create _o194 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/UDP/UDPSIP"
invoked from within
"set udp_1 [new Agent/UDP/UDPSIP]"
(file "sip-example-udp.tcl" line 96)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Re #10.
This is what "patch_sip-full_ns2_v1.0" will add to an ns-2.26 :
SIP-UDPSIP-overview__patch_sip-full_ns2_v1.0.tar.gz EDIT, sorry wrong package.
EDIT : see SIP-UDPSIP_patch_sip-full_ns2_v1.0_2.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing
thanks sir i installed
SIP-UDPSIP-overview__patch_sip-full_ns2_v1.0.tar.gz
when i execute these commands:
cd SIP-UDPSIP-overview__patch_sip-full_ns2_v1.0/ns-2.26
patch -p0 < patch_sip-full_ns2_v1.0.patch
i have this error:
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naurb ns-allinone-2.26/ns-2.26/apps/app.h ns-2.26-sip-fullversion/ns-2.26/apps/app.h
|--- ns-allinone-2.26/ns-2.26/apps/app.h 2003-02-26 23:07:16.000000000 +0100
|+++ ns-2.26-sip-fullversion/ns-2.26/apps/app.h 2003-10-15 14:10:50.000000000 +0200
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Re #12.
The patch "patch_sip-full_ns2_v1.0.patch" is supposed to be added to ns-2.26.
The "SIP-UDPSIP-overview..." is nothing but an overview. For you to read.
The "SIP-UDPSIP-overview..." shows the files added to ns-2.26 .
And shows the changes of {Makefile.in, packet.h, trace.cc, ns-default.tcl}.
The lines starting with a ` + ' are added to the files.
( The + is not added, is just an argument for the patch command.
See `patch_sip-full_ns2_v1.0.patch'.)
The patch "patch_sip-full_ns2_v1.0.patch" is supposed to be added to ns-2.26.
-
i have the same problem
cd ns-allinone-2.26/
patch -p0 < patch_sip-full_ns2_v1.0.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naurb ns-allinone-2.26/ns-2.26/apps/app.h ns-2.26-sip-fullversion/ns-2.26/apps/app.h
|--- ns-allinone-2.26/ns-2.26/apps/app.h 2003-02-26 23:07:16.000000000 +0100
|+++ ns-2.26-sip-fullversion/ns-2.26/apps/app.h 2003-10-15 14:10:50.000000000 +0200
---------------
i followed the solution added in this link :http://www.linuxquestions.org/questi...s2-4175521400/
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Re #14.
$ cd ns-allinone-2.26/
$ patch -p1 < patch_sip-full_ns2_v1.0.patch
? Which "Linux OS" are you using ?
a) Please show the output from the command $ uname -m
b) OS name and version, please.
Not all contemporary Linux OS`s can chew ns-allinone-2.26 .
And : ns-allinone-2.26 requires the patch "ns-2.26-gcc410.patch".
$ patch -p1 < ns-2.26-gcc410.patch
... In order to use gcc-3.4.6 or gcc-4.1.2 .
( $ export CC=gcc34 CXX=g++34 && ./install ).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.