Configuring Ns-2.35 And Sumo For TraNS In Fedora 15

hello
i installed sumo-0.9.8 and ns-2.35 in fedora 15. i want to use TraNS.
i know that TraNS no need to install. but it needs to be configured for using ns-2.
when i use the command patch -p0 < traci.patch
the error is appeared
Quote:
[root@Fedora-15 ns-allinone-2.35]# patch -p0 < traci.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|*** Makefile.in.2.29 2005-10-20 06:45:22.000000000 +0200
|--- Makefile.in 2007-09-11 13:46:57.000000000 +0200
--------------------------
File to patch: traci.patch
patching file traci.patch
Hunk #1 FAILED at 85.
Hunk #2 succeeded at 90 with fuzz 2 (offset -1 lines).
Hunk #3 succeeded at 152 with fuzz 2 (offset -2 lines).
Hunk #4 succeeded at 318 with fuzz 2 (offset -3 lines).
Hunk #5 FAILED at 345.
2 out of 5 hunks FAILED -- saving rejects to file traci.patch.rej
can't find file to patch at input line 74
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|*** common/mobilenode.h.2.31 2007-09-20 13:13:18.000000000 +0200
|--- common/mobilenode.h 2007-09-20 13:13:59.000000000 +0200
--------------------------
and when i use the command patch traci.patch
it needs too time to patch .(the traci.patch is 3kB).
what's the matter?

thanks


Similar Content



Installation Of Pmip6-for-ns-2.29-nist.patch

Hello,
I'm new user of ns-2.I've installed the ns-2.29 and nist-ns-2.29.mob
when i tried to install the patch pmip6-for-ns-2.29-nist.patch.
I had this errors
patching file p1
Hunk #1 FAILED at 124.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 304.
Hunk #2 FAILED at 444.
Hunk #3 FAILED at 514.
Hunk #4 FAILED at 639.
Hunk #5 FAILED at 2746.
Hunk #6 FAILED at 3251.
Hunk #7 FAILED at 3284.
Hunk #8 FAILED at 3848.
8 out of 8 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 922.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
The next patch would create the file p1,
which already exists! Assume -R? [n] y
patching file p1
Hunk #1 FAILED at 1.
File p1 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
The next patch would create the file p1,
which already exists! Assume -R? [n] y
patching file p1
Hunk #1 FAILED at 1.
File p1 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
The next patch would create the file p1,
which already exists! Assume -R? [n] y
patching file p1
Hunk #1 FAILED at 1.
File p1 is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 77.
Hunk #2 FAILED at 365.
Hunk #3 FAILED at 542.
3 out of 3 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 228.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 177.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 201.
Hunk #2 FAILED at 324.
2 out of 2 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 38.
Hunk #2 FAILED at 52.
Hunk #3 FAILED at 86.
Hunk #4 FAILED at 852.
Hunk #5 FAILED at 968.
5 out of 5 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 316.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
Could anyone help me???

Erreur When Install Ns2.34

Hi , i desinstall ns2.34 and i want to reinstall again so i was follow your step
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < lwx+LTE+dccp+MPTCP.patch
$ export CC=gcc41 CXX=g++41 && ./install

and with this patch i add another patch for wimax "wimax-awg26_ns235.patch"

but when i install ns2.34 this erreur was showen
common/packet.h: In static member function ‘static void p_info::initName()’:
common/packet.h:402: error: ‘PT_WIMAXBS’ was not declared in this scope
make: *** [common/scheduler.o] Error 1
Ns make failed!

can you tell me where is the problem ???

Preempt_rt Install Over Ubuntu 14.04

Hi everyone (i hope this is the right section)

Im trying to install the RT patch preempt_rt 3.18.9 im running Ubuntu 14.04 with kernel v 3.16

i installed the rt patch "patch-3.18.9-rt5.patch" and also a new kernel "3.18.9" i patched the patch file with

patch -p1 < patch-3.18.9.patch

but there is somthing i don't know about linking folders of old kernel and new kernel, i searched about it and found

rm -rf linux && ln -s /usr/src/linux-3.18.9 linux && cd /usr/src/linux

then

make oldconfig

then

make menuconfig

i selected Full preemptive kernel then

make

then this error

cc1: some warnings being treated as errors make[2]: * [kernel/locking/locktorture.o] Error 1 make[1]: * [kernel/locking] Error 2 make: *** [kernel] Error 2


So..... Any help?? can someone walk me through this

or any other real time patch, Thanx.. plzzzzzz

How To Patch Ns2.31_fhmip.patch.gz

Hi all,

i have installed ns-2.33 and also i have ns2.31_fhmip.patch.gz. How to patch ns2.31_fhmip.patch in ns-allinone-2.33/ns-2.33

when i tried to untar
it gave me error
PHP Code:
chase@chase-desktop:~/ns-allinone-2.33/ns-2.33$ tar -zxvf ns2.31_fhmip.patch.gz 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors 



Thanks & Regards

Pon

How To Patch OSPF In Ns2.34

Hi mates,

I am trying to patch ospf in ns-2.34 i have downloaded the patch file from link:

http://sourceforge.net/projects/ospf...s/ospf4ns2.34/

$ cd ns-allinone-2.34/
$ patch -p0 < 20-ospf4ns2.34-examples.patch

Using : $ cd ns-2.34/
# make install

$ cd tcl/ex/ospf/
$ mkdir out_ospf0 out_ospf1 out_ospf2 out_ospf3 out_ospf4 out_ospf5 out_ospf6 out_ospf7 out_ospf8 out_ospf9
$ ns ospf0.tcl

i followed the procedure from below LQ link post no #3

http://www.linuxquestions.org/questi...-a-4175492253/

it is successfully patchinf file but it is showing error when i execute ospf0.tcl file



Quote:
(TCL) Creating simulator & trace files...
(TCL) Setting up nodes and links...
(TCL) Configuring traffic objects...
(TCL) Configuring routing protocol...
invalid command name "Agent/rtProto/OSPF"
while executing
"Agent/rtProto/OSPF set helloInterval 1"
(file "ospf0.tcl" line 132)



pls anyone suggest me ideas to get rid of this err.

Thanks in Advance,

Pon

Mobiwan Patch File In NS-2.31 For Ubuntu 12.04

I found that the mobiwan patch file only for ns-2.33.

If I want to run the mobiwan in NS-2.31 , anyone can provide the mobiwan patch file that can run in NS-2.31 ? In the same time , can provide me the method to install it in NS-2.31 ?

I will be really please if you can help me in this problem. Your reply will be really appreciated.

Thank you very much in advance.

Gpsr Error

One patch will add changes to some files, say
common/packet.h queue/priqueue.h queue/priqueue.cc
tcl/lib/ns-lib.tcl tcl/lib/ns-default.tcl tcl/lib/ns-packet.tcl .

And the next patch may undo those first changes,
and even add something that conflicts with
the functions intended in the first patch.

A few patches are meant to live together.
Or at least have no conflicts.
Most others not.
-
I don't konw above. Help me

Installation Of PMIPv6 Patch In NS-2.33

Hi all,

I am going to install PMIPv6 patch in NS-2.33. I have Fedora - 16 in my Laptop. Before installation of Patch it is asked to "install on the system binutils, gcc, g++, make, autoconf, libX11-dev, tk8.4-dev, libxmu-dev (or libxmu-headers)". Can I get help on how to install all the above in fedora 16. Please help.

Simulation Of CR-MAC Protocols Using NS 2.31-CRCN Patch

Hi everyone,

I want to do some simulation of CR-MAC protocols under NS2.31-CRCN patch...

I installed crcn patch in NS2.31...

There are some MAC protocols given but they seem to be incomplete...

Can anyone guide me how to do the simulations of the given MAC protocols in NS2.31 using CRCN patch?
IS there any available online simulation document of these protocols using crcn patch...


Please guide me as I need it urgently...

thanks to all and one in advance.............

Stuck On Patching With Unified Diff File: Kismet On Raspberry Pi

Hi, I've been trying to get Kismet working nicely on my raspberry pi, and have come across the need to apply a patch that someone posted in the Kismet forums (link and patch are pasted below).

First off, I assume that the patch is created as a text file (GPSPatch.diff) in my case, then applied to the source code using a command like: patch -uNp1 -i GPSPatch.diff

then I recompile using (sudo)
./configure
make
make install
If that's not how to patch a program that's already compiled, if someone can put me on the right path, I'd appreciate it greatly.

Assuming I'm right so far:
When I invoke: patch -uNp1 --dry-run --verbose -i GPSPatch.diff

I get errors. The first seems to just be related to indentation (****malformed patch at [lines not indented])
So, after I fix the indentation, that error goes away, and if I run the command again, I get this:

patch: **** malformed patch at line 11: long aggregate_points;

which I think I can fix with changing (line numbers added by me):

Code:
4 @@ -183,7 +183,7 @@

TO:
Code:
4 @@ -183,9 +183,9 @@

Original code here (line numbers added by me):
Code:
4  @@ -183,7 +183,7 @@
5  double min_lat, min_lon, min_alt, min_spd;
6  double max_lat, max_lon, max_alt, max_spd;
7  // Aggregate/avg center position
8  - long unsigned int add_lat, add_lon, add_alt;
9  + uint64_t add_lat, add_lon, add_alt;
10 double aggregate_lat, aggregate_lon, aggregate_alt;
11 long aggregate_points;
12 };
13 diff -Naur orig/util.cc new/util.cc
14 --- orig/util.cc 2013-03-27 15:41:48.000000000 +0100
15 +++ new/util.cc 2014-05-25 12:54:54.000000000 +0200
16 @@ -1093,11 +1093,11 @@

I am surprised that the patch writer didn't see this though: Is my correction right?

SO, once I get the first two errors to go away, I get this:

**** malformed patch at line 13: diff -Naur orig/util.cc new/util.cc
which refers to this line:
diff -Naur orig/util.cc new/util.cc

Is this because I need to break this patch up into individual files before applying them?

It seems like it, but I'd like to know if there's an easier way. From what little I know about Linux, it always seems like there's an easier way... Thanks as always to anyone who offers assistance!

Kevin





The Link:
https://www.kismetwireless.net/Forum...1016156.530417
The patch contained in the link:
This patch fixes the problem by using a bigger integer type. Verified on a raspberry pi but the problem should be present on all plattforms where 32-bit integers actually are 32-bit. The comments regarding number range is not corrected.
Code:

diff -Naur orig/gpscore.h new/gpscore.h


--- orig/gpscore.h 2013-03-27 15:41:48.000000000 +0100


+++ new/gpscore.h 2014-05-25 12:55:15.000000000 +0200


@@ -183,7 +183,7 @@


double min_lat, min_lon, min_alt, min_spd;


double max_lat, max_lon, max_alt, max_spd;


// Aggregate/avg center position


- long unsigned int add_lat, add_lon, add_alt;


+ uint64_t add_lat, add_lon, add_alt;


double aggregate_lat, aggregate_lon, aggregate_alt;


long aggregate_points;


};


diff -Naur orig/util.cc new/util.cc


--- orig/util.cc 2013-03-27 15:41:48.000000000 +0100


+++ new/util.cc 2014-05-25 12:54:54.000000000 +0200


@@ -1093,11 +1093,11 @@


/* Airware PPI gps conversion code from Johnny Csh */


/*


- * input: a unsigned 32-bit (native endian) value between 0 and 3600000000 (inclusive)


+ * input: a unsigned 64-bit (native endian) value between 0 and 3600000000 (inclusive)


* output: a signed floating point value betwen -180.0000000 and + 180.0000000, inclusive)


*/


-double fixed3_7_to_double(u_int32_t in) {


- int32_t remapped_in = in - (180 * 10000000);


+double fixed3_7_to_double(u_int64_t in) {


+ int64_t remapped_in = in - (180 * 10000000);


double ret = (double) ((double) remapped_in / 10000000);


return ret;


}


@@ -1105,16 +1105,16 @@


* input: a native 32 bit unsigned value between 0 and 999999999


* output: a positive floating point value between 000.0000000 and 999.9999999


*/


-double fixed3_6_to_double(u_int32_t in) {


+double fixed3_6_to_double(u_int64_t in) {


double ret = (double) in / 1000000.0;


return ret;


}


/*


- * input: a native 32 bit unsigned value between 0 and 999.999999


+ * input: a native 64 bit unsigned value between 0 and 999.999999


* output: a signed floating point value between -180000.0000 and +180000.0000


*/


-double fixed6_4_to_double(u_int32_t in) {


- int32_t remapped_in = in - (180000 * 10000);


+double fixed6_4_to_double(u_int64_t in) {


+ int64_t remapped_in = in - (180000 * 10000);


double ret = (double) ((double) remapped_in / 10000);


return ret;


}


@@ -1130,38 +1130,38 @@


/*


* input: a signed floating point value betwen -180.0000000 and + 180.0000000, inclusive)


- * output: a unsigned 32-bit (native endian) value between 0 and 3600000000 (inclusive)


+ * output: a unsigned 64-bit (native endian) value between 0 and 3600000000 (inclusive)


*/


-u_int32_t double_to_fixed3_7(double in)


+u_int64_t double_to_fixed3_7(double in)


{


- if (in < -180 || in >= 180)


+ if (in < -180 || in >= 180)


return 0;


//This may be positive or negative.


- int32_t scaled_in = (int32_t) ((in) * (double) 10000000);


+ int64_t scaled_in = (int64_t) ((in) * (double) 10000000);


//If the input conditions are met, this will now always be positive.


- u_int32_t ret = (u_int32_t) (scaled_in + ((int32_t) 180 * 10000000));


+ u_int64_t ret = (u_int64_t) (scaled_in + ((int64_t) 180 * 10000000));


return ret;


}


/*


* input: a signed floating point value betwen -180000.0000 and + 180000.0000, inclusive)


- * output: a unsigned 32-bit (native endian) value between 0 and 3600000000 (inclusive)


+ * output: a unsigned 64-bit (native endian) value between 0 and 3600000000 (inclusive)


*/


-u_int32_t double_to_fixed6_4(double in)


+u_int64_t double_to_fixed6_4(double in)


{


- if (in < -180000.0001 || in >= 180000.0001)


+ if (in < -180000.0001 || in >= 180000.0001)


return 0;


//This may be positive or negative.


- int32_t scaled_in = (int32_t) ((in) * (double) 10000);


+ int64_t scaled_in = (int64_t) ((in) * (double) 10000);


//If the input conditions are met, this will now always be positive.


- u_int32_t ret = (u_int32_t) (scaled_in + ((int32_t) 180000 * 10000));


+ u_int64_t ret = (u_int64_t) (scaled_in + ((int64_t) 180000 * 10000));


return ret;


}


/*


* input: a positive floating point value between 000.0000000 and 999.9999999


* output: a native 32 bit unsigned value between 0 and 999999999


*/


-u_int32_t double_to_fixed3_6(double in) {


- u_int32_t ret = (u_int32_t) (in * (double) 1000000.0);


+u_int64_t double_to_fixed3_6(double in) {


+ u_int64_t ret = (u_int64_t) (in * (double) 1000000.0);


return ret;


}


diff -Naur orig/util.h new/util.h


--- orig/util.h 2013-03-27 15:41:48.000000000 +0100


+++ new/util.h 2014-05-25 12:54:54.000000000 +0200


@@ -236,13 +236,13 @@


* the fixedX_Y fixed point values into 'native' doubles for displaying.


* Documentation on these formats can be found in the PPI-GEOLOCATION specification


*/


-double fixed3_7_to_double(u_int32_t in);


-double fixed3_6_to_double(u_int32_t in);


-double fixed6_4_to_double(u_int32_t in);


+double fixed3_7_to_double(u_int64_t in);


+double fixed3_6_to_double(u_int64_t in);


+double fixed6_4_to_double(u_int64_t in);


-u_int32_t double_to_fixed3_7(double in);


-u_int32_t double_to_fixed3_6(double in);


-u_int32_t double_to_fixed6_4(double in);


+u_int64_t double_to_fixed3_7(double in);


+u_int64_t double_to_fixed3_6(double in);


+u_int64_t double_to_fixed6_4(double in);


/*


* Some values are encoded as 32-bit unsigned nano-second counters.