<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;Linker Error - relocation does not fit&amp;quot; on HPUX 11.23 ia64 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813688#M100280</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We do not use the +Oshortdata option. Interestingly(or unfortunaltely), compiler upgrade seems to have made things bad. Now, none of executables are linking properly and I get duplicate symbol error for "main()". &lt;BR /&gt;&lt;BR /&gt;"ld: Duplicate symbol "main"  "&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Jun 2006 01:11:03 GMT</pubDate>
    <dc:creator>Marina Orlova-Downes</dc:creator>
    <dc:date>2006-06-30T01:11:03Z</dc:date>
    <item>
      <title>"Linker Error - relocation does not fit" on HPUX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813683#M100275</link>
      <description>I'm compiling and linking our code on HP 11.23(IA64) and encountered the below error.&lt;BR /&gt;&lt;BR /&gt;aCC: HP aC++/ANSI C B3910B A.05.50 [May 15 2003]&lt;BR /&gt;&lt;BR /&gt;ld: The value 0xe000000000209680 does not fit when applying the relocation GPREL22 for symbol "std::string::npos" at offset 0xb1 in section index 1254 of file /build/vendor/SourcePro7/lib/HPUX11.23IA64/aCC5.50/libtls78HPUX1123IA64OPT_NtvSTL_NoThr_64bit_s.a[cregex.o]&lt;BR /&gt;&lt;BR /&gt;There are several binaries that are built from this code base. And one of them is getting this linker error. Rest of the binaries that are compiled and linked with same compile and link flags have no issues. They even link to the same set of libraries as this one where linking is failing. &lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;-thanks</description>
      <pubDate>Tue, 27 Jun 2006 16:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813683#M100275</guid>
      <dc:creator>Marina Orlova-Downes</dc:creator>
      <dc:date>2006-06-27T16:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: "Linker Error - relocation does not fit" on HPUX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813684#M100276</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I think it falls into the following little matrix.&lt;BR /&gt;&lt;BR /&gt;1) The code may be bad, which is most likely but you don't believe it.&lt;BR /&gt;2) There may be a linker bug. Check the patch/firmware database at &lt;A href="http://itrc.hp.com" target="_blank"&gt;http://itrc.hp.com&lt;/A&gt; and see if there are patches. There probably are based on the age of this compiler.&lt;BR /&gt;3) If you are in a hurry, you may wish to try linkinng on another system.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 27 Jun 2006 17:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813684#M100276</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-27T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: "Linker Error - relocation does not fit" on HP-UX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813685#M100277</link>
      <description>&lt;P&gt;As Steven mentioned A.05.50 is pretty old. The current compiler is A.06.10.&lt;BR /&gt;&lt;BR /&gt;As documented, the problem could be due to the misuse of the +Oshortdata= option, if you specify a value too large.&lt;BR /&gt;&lt;BR /&gt;But I seriously doubt the code is bad. Fixups are usually linker or compiler or option problems. But in this case, nobody should have any business taking the address or load value of npos. It is a constant -1. Unless the address is taken, or code like the following is used, the current compiler shouldn't access that location.&lt;BR /&gt;std::max(len, std::string::npos);&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2014 04:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813685#M100277</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-02-09T04:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: "Linker Error - relocation does not fit" on HPUX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813686#M100278</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. I'm trying to upgrade the compiler the latest version now and see if that helps. &lt;BR /&gt;&lt;BR /&gt;-thanks</description>
      <pubDate>Thu, 29 Jun 2006 12:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813686#M100278</guid>
      <dc:creator>Marina Orlova-Downes</dc:creator>
      <dc:date>2006-06-29T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: "Linker Error - relocation does not fit" on HP-UX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813687#M100279</link>
      <description>&lt;P&gt;&amp;gt;I'm trying to upgrade the compiler the latest version now and see if that helps.&lt;BR /&gt;&lt;BR /&gt;I would first check for the +Oshortdata option.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2014 04:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813687#M100279</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-02-09T04:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: "Linker Error - relocation does not fit" on HPUX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813688#M100280</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We do not use the +Oshortdata option. Interestingly(or unfortunaltely), compiler upgrade seems to have made things bad. Now, none of executables are linking properly and I get duplicate symbol error for "main()". &lt;BR /&gt;&lt;BR /&gt;"ld: Duplicate symbol "main"  "&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2006 01:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813688#M100280</guid>
      <dc:creator>Marina Orlova-Downes</dc:creator>
      <dc:date>2006-06-30T01:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: "Linker Error - relocation does not fit" on HP-UX 11.23 ia64</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813689#M100281</link>
      <description>&lt;P&gt;&amp;gt;I get duplicate symbol error for "main()".&lt;BR /&gt;&lt;BR /&gt;What are the two object files? You can also link with -Wl,-ymain to show you them.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2014 04:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quot-linker-error-relocation-does-not-fit-quot-on-hpux-11-23/m-p/3813689#M100281</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-02-09T04:03:50Z</dc:date>
    </item>
  </channel>
</rss>

