Handling of ld: finallinkfailed: Nonrepresentablesectiononoutput errors in Ubuntu9.10 installation NS2-2.33

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.