<?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 CC linking problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471997#M93852</link>
    <description>One of our programmers is compiling a bunch of C++ routines, and getting a strange linker message:&lt;BR /&gt;&lt;BR /&gt;CC +a1 -g -o gs4 gs4.o  Tframe.o Initializer.o  QIV_quad.o  Maimd.o  MAB.o gtfptof.o -lm -luser&lt;BR /&gt;&lt;BR /&gt;nm:  /lib/libm.sl:  bad magic&lt;BR /&gt;nm:  /lib/libC.ansi.sl:  bad magic&lt;BR /&gt;nm:  /lib/libcl.sl:  bad magic&lt;BR /&gt;nm:  /lib/libc.sl:  bad magic&lt;BR /&gt;nm:  /usr/lib/libdld.sl:  bad magic&lt;BR /&gt;&lt;BR /&gt;All the routines are *.C except for one which is a .c&lt;BR /&gt;&lt;BR /&gt;What's the usual cause of the "bad magic" messages?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Jan 2005 19:18:55 GMT</pubDate>
    <dc:creator>Michael D. Zorn</dc:creator>
    <dc:date>2005-01-26T19:18:55Z</dc:date>
    <item>
      <title>CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471997#M93852</link>
      <description>One of our programmers is compiling a bunch of C++ routines, and getting a strange linker message:&lt;BR /&gt;&lt;BR /&gt;CC +a1 -g -o gs4 gs4.o  Tframe.o Initializer.o  QIV_quad.o  Maimd.o  MAB.o gtfptof.o -lm -luser&lt;BR /&gt;&lt;BR /&gt;nm:  /lib/libm.sl:  bad magic&lt;BR /&gt;nm:  /lib/libC.ansi.sl:  bad magic&lt;BR /&gt;nm:  /lib/libcl.sl:  bad magic&lt;BR /&gt;nm:  /lib/libc.sl:  bad magic&lt;BR /&gt;nm:  /usr/lib/libdld.sl:  bad magic&lt;BR /&gt;&lt;BR /&gt;All the routines are *.C except for one which is a .c&lt;BR /&gt;&lt;BR /&gt;What's the usual cause of the "bad magic" messages?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2005 19:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471997#M93852</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2005-01-26T19:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471998#M93853</link>
      <description>Bad magic means that the shared library code you are trying to use is not appropriate to the target platform. Each flavor of processor/"bitness" et al gets a unique 16-bit number -- the "magic" number. For example, you might be trying to link PA-RISC and Itanium objects. One thing that looks a bit strange to me is "nm". Normally, nm is not invoked by the cc command but "normally" CC is not used to invoke the C (or C++) compiler (cc,aCC,gcc,g++). I would look at you makefiles to see how nm is being invoked.&lt;BR /&gt;It would also help if you identified your OS and compiler.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2005 20:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471998#M93853</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-26T20:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471999#M93854</link>
      <description>Compiler is invoked in the makefile by "CC":&lt;BR /&gt;&lt;BR /&gt;/usr/bin/CC:&lt;BR /&gt;HP C++ HPCPLUSPLUS A.10.01&lt;BR /&gt;&lt;BR /&gt;Platform is HP 9000 K200, running HP-UX 10.01.&lt;BR /&gt;&lt;BR /&gt;make -n shows:&lt;BR /&gt;&lt;BR /&gt;CC +a1 -g -c gs4.C&lt;BR /&gt;CC +a1 -g -c Tframe.C&lt;BR /&gt;CC +a1 -g -c Initializer.C&lt;BR /&gt;CC +a1 -g -c QIV_quad.C&lt;BR /&gt;CC +a1 -g -c Maimd.C&lt;BR /&gt;CC +a1 -g -c MAB.C&lt;BR /&gt;CC +a1 -g -o gs4 gs4.o Tframe.o Initializer.o QIV_quad.o Maimd.o MAB.o -lm -luser&lt;BR /&gt;&lt;BR /&gt;(-luser is our user lib)&lt;BR /&gt;&lt;BR /&gt;Are shared libraries usually the ones called?&lt;BR /&gt;&lt;BR /&gt;Another odd thing is that a directory, ./ptrepository shows up all of a sudden (not noticed before).&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2005 21:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3471999#M93854</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2005-01-26T21:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472000#M93855</link>
      <description>The compiler will produce, by default, a directory called "./ptrepository"&lt;BR /&gt;to store various intermediate files.  This directory can be changed using&lt;BR /&gt;the "-ptr${New_Directory}" flag.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2005 06:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472000#M93855</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-01-31T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472001#M93856</link>
      <description>About the ptrepository: do I need to worray bout what's in it, or is it just a tmp directory?&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2005 12:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472001#M93856</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2005-01-31T12:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472002#M93857</link>
      <description>You don't need to worry about it generally. It can cause problems if the permissions on it are wrong (e.g. it was create by another user in the same directory and you don't have access to it). But if the permissions were wrong you'd get a different error message and in any case you created it (or rather your invocation of the compiler did). If it concerns you, remove it and the compiler should recreate it when necessary.</description>
      <pubDate>Tue, 01 Feb 2005 09:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472002#M93857</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-01T09:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472003#M93858</link>
      <description>Do you have PHSS_14732 installed?&lt;BR /&gt;&lt;BR /&gt;A bit difficult with a 10.01 version O/S admittedly. But interested to know if you have it installed.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www5.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHSS_14732" target="_blank"&gt;http://www5.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHSS_14732&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Feb 2005 10:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472003#M93858</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-02-02T10:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472004#M93859</link>
      <description>I just downloaded patch 14732.  It came with some others (17225,17545,18298,21110).  I'm looking over the details (I haven't had to do a patch till now).&lt;BR /&gt;&lt;BR /&gt;I'll post a reply when I get it in.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Feb 2005 13:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472004#M93859</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2005-02-02T13:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: CC linking problem (cfront)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472005#M93860</link>
      <description>&lt;P&gt;cfront was obsoleted in 2001. You should NOT be still using this. The proper C++ compiler is aC++. But catch-22 since you said your OS version is 10.01, aC++ was never supported on that OS version.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Clay: but "normally" CC is not used to invoke the C (or C++) compiler (cc, aCC, gcc, g++).&lt;BR /&gt;&lt;BR /&gt;That was the command to invoke obsolete cfront. And it invokes c++ptlink and nm to do link time template instantiation.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 22:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cc-linking-problem/m-p/3472005#M93860</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T22:52:02Z</dc:date>
    </item>
  </channel>
</rss>

