<?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: gcc with libgdbm - can't compile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785299#M722575</link>
    <description>You have the wrong version of the library. You need to install the correct version of the library.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
    <pubDate>Tue, 13 Aug 2002 15:55:28 GMT</pubDate>
    <dc:creator>Martin Johnson</dc:creator>
    <dc:date>2002-08-13T15:55:28Z</dc:date>
    <item>
      <title>gcc with libgdbm - can't compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785297#M722573</link>
      <description>I want to compile a cpp program with g++ which needs the gdbm library. When I compile, error comes out:&lt;BR /&gt;&lt;BR /&gt;g++ -g -c prog_a.cpp (this line is fine)&lt;BR /&gt;g++ -g -c prog_b.cpp (this line is fine too)&lt;BR /&gt;g++ -g -o prog prog_a.o prog_b.o /usr/local/lib/libgdbm.so (error with this line)&lt;BR /&gt;&lt;BR /&gt;ld: Mismatched machine types. Expected EM_PARISC but found EM_IA_64 in file /usr/local/lib/libgdbm.so&lt;BR /&gt;&lt;BR /&gt;The machine is running HP-UX 11i on RP8400 hardware.&lt;BR /&gt;I'd installed "gcc 3.0.2 for 64-bit 11.0 and 11i PA (binary)" and "gdbm for 11i Version 1.5 (binary)".&lt;BR /&gt;I'd tried to download "gdbm for 11i Version 1.5 (source)" to build the binary myself. but after building success, I can't find libgdbm.so in /usr/local/lib. But I can see a libgdbm.a file inside.&lt;BR /&gt;&lt;BR /&gt;Had I done anything wrong? How to correct?&lt;BR /&gt;Any help would be appreciated. Thanks!&lt;BR /&gt;&lt;BR /&gt;Andrew Lee</description>
      <pubDate>Tue, 13 Aug 2002 15:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785297#M722573</guid>
      <dc:creator>Andrew Lee_5</dc:creator>
      <dc:date>2002-08-13T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: gcc with libgdbm - can't compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785298#M722574</link>
      <description>You are trying to mix binary code for a PA-RISC procession and an Itanium processor. It's as if you were trying to link an executable using a Windows object file and an Apple library. That dog won't hunt. You need to find the PA-RISC version of the library.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Aug 2002 15:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785298#M722574</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-13T15:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: gcc with libgdbm - can't compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785299#M722575</link>
      <description>You have the wrong version of the library. You need to install the correct version of the library.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 13 Aug 2002 15:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785299#M722575</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-08-13T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: gcc with libgdbm - can't compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785300#M722576</link>
      <description>Thanks guys.&lt;BR /&gt;&lt;BR /&gt;One more question:&lt;BR /&gt;&lt;BR /&gt;This is where I download the library:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,549,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,549,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I found these 2 versions, which one is for RISC? (I am using the first one)&lt;BR /&gt;1. gdbm for 11i Version 1.5 (binary)&lt;BR /&gt;2. gdbm for 11.0 and 11i (binary)&lt;BR /&gt;&lt;BR /&gt;BTW, will it be my gcc problem? I'd installed 64-bit version. Will it conflicts with RISC?&lt;BR /&gt;&lt;BR /&gt;Thanks for helping me.&lt;BR /&gt;&lt;BR /&gt;Andrew Lee&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Aug 2002 00:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785300#M722576</guid>
      <dc:creator>Andrew Lee_5</dc:creator>
      <dc:date>2002-08-14T00:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: gcc with libgdbm - can't compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785301#M722577</link>
      <description>You need the 11.0 and 11i (which is really 11.11) version BUT you may still have problems. The 64-bit 11.11 OS will run either 32-bit or 64-bit PA-RISC code but you cannot mix and match binaries. If the library contains 32-bit code then you must set your compiler flags to generate 32-bit code as well; the converse is true as well. Both the library and your application must both zig or they must both zag; zig-zag's (code mismatches) are a no-no.</description>
      <pubDate>Wed, 14 Aug 2002 01:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785301#M722577</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-14T01:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: gcc with libgdbm - can't compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785302#M722578</link>
      <description>Thanks for the prompt reply.&lt;BR /&gt;As I am a newbie to C++ and HP-UX, I want to make sure one point:&lt;BR /&gt;Is the "gdbm for 11.0 and 11i (binary)" in 32-bit code? If yes, how to set the compiler flags to generate 32-bit code?&lt;BR /&gt;Any reference document? Thanks.&lt;BR /&gt;&lt;BR /&gt;Andrew Lee</description>
      <pubDate>Wed, 14 Aug 2002 01:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-with-libgdbm-can-t-compile/m-p/2785302#M722578</guid>
      <dc:creator>Andrew Lee_5</dc:creator>
      <dc:date>2002-08-14T01:57:18Z</dc:date>
    </item>
  </channel>
</rss>

