Welcome to LQ.
Your "gcc-4.3 information" is based on outdated {January 2011 (Ubuntu?) information}.
"gcc-4.3" was usable until ~April 2011 when Ubuntu 10*/11* was updated.
Furthermore, the old {year 2011 LEACH} is also outdated.
The latest LEACH updates are ...
1) ns-2.34
http://www.linuxquestions.org/questi...-4175524367/#2
.. Probably best with the 64bits CentOS 6.x (No real plot results, leach.alive.txt etc. with a 32bits OS.)
2) ns-2.35
http://www.linuxquestions.org/questi...4175556129/#11
Please read posts #7, #9, #11.
-