Global State Routing (GSR) : Never seen for ns2.
Fisheye State Routing (FSR) is an improvement of GSR
→ FSR_ns235-g++5.patch
"-g++5" means you can use a
non PIE g++-5 for the FSR code
..... but gcc-5.4 .. 5.5 tends to be updated to PIE,
.... so most often in e.g. Ubuntu the g++-4.8 is used.
Build example :
tar xvf ns-allinone-2.35_gcc5.tar.gz ### 2014 update
cd ns-allinone-2.35/
patch -p0 < FSR_ns235-g++5.patch
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns235-fsr
sudo cp ns235-fsr /usr/local/bin/
--------- Simulation ---------------
ns235-fsr fsr-zigbee.tcl
Etc. etc from the examples, FSR-examples-10.18.tar.gz