<?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: Need help compiling cobol program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219162#M679082</link>
    <description>It turns out the first .o was a 32-bit library. I had just missed that somehow.&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Jan 2010 20:06:00 GMT</pubDate>
    <dc:creator>Ken Mueller</dc:creator>
    <dc:date>2010-01-14T20:06:00Z</dc:date>
    <item>
      <title>Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219158#M679078</link>
      <description>Hi All,&lt;BR /&gt;I'm trying to compile a program using a script from an old PARISC machine. The new machine is 11.31.&lt;BR /&gt;Here's the comand:&lt;BR /&gt;cob -o $DC_BIN/DCRTSORA -xe "" $DC_BIN/dcsaddr.o \          &lt;BR /&gt;$DC_BIN/dcspos.o \&lt;BR /&gt;$DC_BIN/trmout.o \&lt;BR /&gt;-l:libpthread.so \&lt;BR /&gt;$ORACLE_HOME/precomp/lib/cobsqlintf.o \&lt;BR /&gt;-lcurses \&lt;BR /&gt;-L $ORACLE_HOME/lib \&lt;BR /&gt;-lsqlplus \&lt;BR /&gt;&lt;BR /&gt;here's the output:&lt;BR /&gt;ld: Mismatched ABI for -lsqlplus, found /u01/app/oracle/product/11.2.0/dbhome_1/lib/libsqlplus.so&lt;BR /&gt;Fatal error.&lt;BR /&gt;&lt;BR /&gt;here's 'file' of that library:&lt;BR /&gt; ELF-64 shared object file - IA64&lt;BR /&gt;&lt;BR /&gt;I ran file against all of the preceding objects - they are all ELF64. In other words it does not appear I am mixing 32 and 64 bit libraries.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 03:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219158#M679078</guid>
      <dc:creator>Ken Mueller</dc:creator>
      <dc:date>2010-01-14T03:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219159#M679079</link>
      <description>&amp;gt;The new machine is 11.31.&lt;BR /&gt;&lt;BR /&gt;You neglected to mention that it is an Integrity server.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;they are all ELF64. In other words it does not appear I am mixing 32 and 64 bit libraries.&lt;BR /&gt;&lt;BR /&gt;How do you tell cob(1) that you want to create a 64 bit executable?  If there is an option you use when compiling, you need it when linking too.</description>
      <pubDate>Thu, 14 Jan 2010 04:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219159#M679079</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-14T04:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219160#M679080</link>
      <description>You tell cob which mode by using "cobmode." I've verified it is set to 64. I even changed "cob" to "cob64" at one point to be sure.&lt;BR /&gt;I've assumed it was using ld in /usr/sbin for linking and I checked that too to be sure it was 64 bits. Perhaps I will try to verify cob is using that ld. &lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 15:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219160#M679080</guid>
      <dc:creator>Ken Mueller</dc:creator>
      <dc:date>2010-01-14T15:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219161#M679081</link>
      <description>errr... /usr/sbin should have been /usr/bin. &lt;BR /&gt;Anyway, I found only one other ld and it was an old 32-bit PARISC one. Renamed it to ld.old and reran the compile script. Still no luck. I've confirmed that cob is using the 64 bit ld in /usr/bin.</description>
      <pubDate>Thu, 14 Jan 2010 15:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219161#M679081</guid>
      <dc:creator>Ken Mueller</dc:creator>
      <dc:date>2010-01-14T15:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219162#M679082</link>
      <description>It turns out the first .o was a 32-bit library. I had just missed that somehow.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2010 20:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219162#M679082</guid>
      <dc:creator>Ken Mueller</dc:creator>
      <dc:date>2010-01-14T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219163#M679083</link>
      <description>&amp;gt;I've confirmed that cob is using the 64 bit ld in /usr/bin.&lt;BR /&gt;&lt;BR /&gt;How did you confirm?  There is only one ld, it runs in 64 bit mode but produces either 32 or 64 bit.  (And ld is in /usr/ccs/bin/.)&lt;BR /&gt;&lt;BR /&gt;And as you found, it bases its bitness on the first file it sees.  If cob doesn't have -Wl,-t, you can "export LDOPTS=-t" to see each input file.</description>
      <pubDate>Fri, 15 Jan 2010 11:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219163#M679083</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-15T11:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219164#M679084</link>
      <description>There are actually two ld's on our system. One is the "normal" 64 bit version, and then there's a legacy PA ld. I needed to confirm that one wasn't being called somehow.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219164#M679084</guid>
      <dc:creator>Ken Mueller</dc:creator>
      <dc:date>2010-01-15T16:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219165#M679085</link>
      <description>&amp;gt;There are actually two lds on our system. ... and then there's a legacy PA ld.&lt;BR /&gt;&lt;BR /&gt;Ah, right but actually three.  /usr/ccs/pa/usr/ccs/bin/ld invokes either ld32 or ld64.</description>
      <pubDate>Sat, 16 Jan 2010 02:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219165#M679085</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-16T02:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help compiling cobol program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219166#M679086</link>
      <description>Yes indeed. Can you tell I'm new to the mixed architecture? It's making for some challenging work.</description>
      <pubDate>Sat, 16 Jan 2010 04:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-compiling-cobol-program/m-p/5219166#M679086</guid>
      <dc:creator>Ken Mueller</dc:creator>
      <dc:date>2010-01-16T04:26:16Z</dc:date>
    </item>
  </channel>
</rss>

