NS2 Pops up errors during Install on Fedora 14 due to change in GCC version 3.5, has major changes like it accept X() rather than X::X(), which affected ns2.
Only 2 files needs to be changed
~ns-allinone-2.34/ns-2.34/mobile/nakagami.cc &
~ns-allinone-2.34/ns-2.34/tools/ranvar.cc
patch
~ns-allinone-2.34/ns-2.34/mobile/nakagami.cc ( Line 183 & 185 )
--resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();
++resultPower = ErlangRandomVariable(Pr/m, int_m).value();
--resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();