In the last NS2-2.33 installation process, there was a problem, that is to say that at the beginning of the installation under Ubuntu9.04, the smooth end, then upgrade part of the software (I used a free cd installed Ubuntu) then, re-install NS2. Always have a similar problem:/home/gang/ns-allinone-2.33/otcl-1.13/otcl. c: 2284: undefinedreferenceto '_ stack_chk_fai
In the last NS2-2.33 installation process, there was a problem, that is to say that the first installation under Ubuntu 9.04, a smooth end, and later upgrade part of the software (I am using a free cd installed Ubuntu) then, re-install NS2. There are always similar problems:
/Home/gang/ns-allinone-2.33/otcl-1.13/otcl. c: 2284: undefined reference to '_ stack_chk_fail_local' ld: libotcl. so: hidden symbol' _ stack_chk_fail_local 'isn' t definedld: final link failed: Nonrepresentable section on outputmake: *** [libotcl. so] Error 1otl-1.13 make failed! Exiting... this problem has been very depressing and I have no clue for a long time. Finally, I found the problem in an NsNam bug report. It turned out to be a ld problem. Before gcc 4.0, we used ld-share to generate a shared library. However, in gcc 4.0 and later versions, this command was changed to gcc-share. Now that the problem is found, you will know how to handle it.
Go to the otcl-1.13 directory and find configure. in. Because I am using ubuntu, I only need to change the Linux platform part,
Set 77 rows,
SHLIB_LD = "ld-shared"
Change
SHLIB_LD = "gcc-shared"
Modify configure 5,518th rows at the same time
SHLIB_LD = "ld-shared"
Change
SHLIB_LD = "gcc-shared"
Retry./install
Okay, no problem.