<?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: 64/32 bits problem compiling with Oracle libraries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300548#M715822</link>
    <description>Here is something that I got from oracle. May help you.&lt;BR /&gt;PROBLEM &lt;BR /&gt;======= &lt;BR /&gt; &lt;BR /&gt;When you try to relink cppdemo1 sample proc program &lt;BR /&gt;under $ORACLE_HOME/precomp/demo/proc &lt;BR /&gt;make -f demo_proc.mk cppdemo1 &lt;BR /&gt; &lt;BR /&gt;you get the following error &lt;BR /&gt; &lt;BR /&gt;exit error code 1 &lt;BR /&gt;libclntsh.sl mismatched ABI 64 bit pa risc &lt;BR /&gt;shared library found in 32 bit link &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;SOLUTION &lt;BR /&gt;========= &lt;BR /&gt; &lt;BR /&gt;step 1 &lt;BR /&gt;------- &lt;BR /&gt;under $ORACLE_HOME/precomp/demo/proc &lt;BR /&gt;edit  demo_proc.mk &lt;BR /&gt; &lt;BR /&gt;step 2 &lt;BR /&gt;------- &lt;BR /&gt;Under " include env_precomp.mk " statement &lt;BR /&gt;insert the following line: &lt;BR /&gt;CC=aCC +DA2.0w &lt;BR /&gt; &lt;BR /&gt;step 3 &lt;BR /&gt;------- &lt;BR /&gt;change the cppbuild and cppbuild_static targets &lt;BR /&gt;from: &lt;BR /&gt;... &lt;BR /&gt;cppbuild: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        CC -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        CC -o $(EXE) $(OBJS) -L$(LIBHOME) $(CPPLDLIBS) &lt;BR /&gt;cppbuild_static: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        CC -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        CC -o $(EXE) $(OBJS) -L$(LIBHOME) $(STATICCPPLDLIBS) &lt;BR /&gt; &lt;BR /&gt;to &lt;BR /&gt; &lt;BR /&gt;cppbuild: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        $(CC) -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        $(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(CPPLDLIBS) &lt;BR /&gt;cppbuild_static: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        $(CC) -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        $(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(STATICCPPLDLIBS) &lt;BR /&gt; &lt;BR /&gt;That is &lt;BR /&gt;from  &lt;BR /&gt;.... CC .... &lt;BR /&gt;to &lt;BR /&gt;....$(CC) .... &lt;BR /&gt;</description>
    <pubDate>Wed, 09 Jun 2004 12:12:40 GMT</pubDate>
    <dc:creator>Navin Bhat_2</dc:creator>
    <dc:date>2004-06-09T12:12:40Z</dc:date>
    <item>
      <title>64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300542#M715816</link>
      <description>Hello all:&lt;BR /&gt;&lt;BR /&gt;I have the following setup:&lt;BR /&gt;$ uname -a&lt;BR /&gt;HP-UX HPSPPS3W B.11.00 U 9000/861 2004611039 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Oracle 9.2.0&lt;BR /&gt;&lt;BR /&gt;When I try to compile a very simple program using the proC compiler I got the error:&lt;BR /&gt;$ aCC -L$ORACLE_HOME/lib -lclntsh cprograma2.c&lt;BR /&gt;/usr/ccs/bin/ld: /icb/oracle9/app/oracle/product/9.2.0/lib/libclntsh.sl: Mismatched ABI. 64-bit PA shared library found in 32-bit l.&lt;BR /&gt;&lt;BR /&gt;If I do the same but 32 bits libraries from Oracle it works fine:&lt;BR /&gt;$ aCC -L$ORACLE_HOME/lib32 -lclntsh cprograma2.c&lt;BR /&gt;$ a.out&lt;BR /&gt;&lt;BR /&gt;Connected to ORACLE as user: IC&lt;BR /&gt;&lt;BR /&gt;Cosa leida : 0x400012e8&lt;BR /&gt;Have a nice day!&lt;BR /&gt;&lt;BR /&gt;But if I try to force 64 bit compilation its compile/link OK but I get the following error:&lt;BR /&gt;$ aCC +DD64 -L$ORACLE_HOME/lib -lclntsh cprograma2.c&lt;BR /&gt;$ a.out&lt;BR /&gt;Bus error(coredump)&lt;BR /&gt;&lt;BR /&gt;I would like the program working in 64 bits, or at least understand why is compiling but not working properly.&lt;BR /&gt;&lt;BR /&gt;Could anyone help, please?&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 11:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300542#M715816</guid>
      <dc:creator>Lorenzo del Río</dc:creator>
      <dc:date>2004-06-09T11:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300543#M715817</link>
      <description>first of all, are you sure that your OS is installed as 64 bits. To check, issue command: &lt;BR /&gt;&lt;BR /&gt;getconf KERNEL_BITS &lt;BR /&gt;&lt;BR /&gt;then, if this verifies to be 64 bits, are you sure you have the oracle 64 bit binaries installed on your server. &lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 11:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300543#M715817</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-06-09T11:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300544#M715818</link>
      <description>getconf KERNEL_BITS &lt;BR /&gt;64&lt;BR /&gt;&lt;BR /&gt;Regarding the Oracle executables as far as I knos Oracle 9.2.0 is only distributed in 64 bit version.&lt;BR /&gt;64 bits Libraries are in lib and 32 bit libraries are in lib32&lt;BR /&gt;&lt;BR /&gt;Thank you for your prompt response. &lt;BR /&gt;&lt;BR /&gt;        Lorenzo.</description>
      <pubDate>Wed, 09 Jun 2004 11:42:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300544#M715818</guid>
      <dc:creator>Lorenzo del Río</dc:creator>
      <dc:date>2004-06-09T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300545#M715819</link>
      <description>I am not an expert on compiling C programs and less experienced in oracle but it seems like your library (I am not sure which version) is corrupted or someone inadvertantly copied a 32 bit library over 64 bit library or the other way around.&lt;BR /&gt;&lt;BR /&gt;I am not sure what the solution would be in short of reinstalling oracle.</description>
      <pubDate>Wed, 09 Jun 2004 11:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300545#M715819</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-06-09T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300546#M715820</link>
      <description>I have checked the Oracle libraries in 32 and 64 bits and at least they differ.&lt;BR /&gt;&lt;BR /&gt;Do you know how or where may I check the aCC libraries that may be in use? How do I know if a library is 36/64 bits?&lt;BR /&gt;&lt;BR /&gt;Also I have read something about 32/64 bits versions of the aCC compiler. Could this have something to do with the problem? I guess that may be 32 bits version of the compiler are distributed with older operating systems and that on 11.0/64 bits the compiler version should be 64 bits but I am not sure.&lt;BR /&gt;Do you know any way to know the bits of the compiler version?&lt;BR /&gt;The compiler is:&lt;BR /&gt; what /opt/aCC/bin/aCC&lt;BR /&gt;/opt/aCC/bin/aCC:&lt;BR /&gt;        $Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $&lt;BR /&gt;        HP aC++ B3910B A.03.55&lt;BR /&gt;        HP aC++ B3910B X.03.37.01 Language Support Library&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 09 Jun 2004 11:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300546#M715820</guid>
      <dc:creator>Lorenzo del Río</dc:creator>
      <dc:date>2004-06-09T11:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300547#M715821</link>
      <description>What are your &lt;BR /&gt;LD_LIBRARY_PATH and SHLIB_PATH set to?</description>
      <pubDate>Wed, 09 Jun 2004 12:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300547#M715821</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-06-09T12:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300548#M715822</link>
      <description>Here is something that I got from oracle. May help you.&lt;BR /&gt;PROBLEM &lt;BR /&gt;======= &lt;BR /&gt; &lt;BR /&gt;When you try to relink cppdemo1 sample proc program &lt;BR /&gt;under $ORACLE_HOME/precomp/demo/proc &lt;BR /&gt;make -f demo_proc.mk cppdemo1 &lt;BR /&gt; &lt;BR /&gt;you get the following error &lt;BR /&gt; &lt;BR /&gt;exit error code 1 &lt;BR /&gt;libclntsh.sl mismatched ABI 64 bit pa risc &lt;BR /&gt;shared library found in 32 bit link &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;SOLUTION &lt;BR /&gt;========= &lt;BR /&gt; &lt;BR /&gt;step 1 &lt;BR /&gt;------- &lt;BR /&gt;under $ORACLE_HOME/precomp/demo/proc &lt;BR /&gt;edit  demo_proc.mk &lt;BR /&gt; &lt;BR /&gt;step 2 &lt;BR /&gt;------- &lt;BR /&gt;Under " include env_precomp.mk " statement &lt;BR /&gt;insert the following line: &lt;BR /&gt;CC=aCC +DA2.0w &lt;BR /&gt; &lt;BR /&gt;step 3 &lt;BR /&gt;------- &lt;BR /&gt;change the cppbuild and cppbuild_static targets &lt;BR /&gt;from: &lt;BR /&gt;... &lt;BR /&gt;cppbuild: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        CC -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        CC -o $(EXE) $(OBJS) -L$(LIBHOME) $(CPPLDLIBS) &lt;BR /&gt;cppbuild_static: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        CC -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        CC -o $(EXE) $(OBJS) -L$(LIBHOME) $(STATICCPPLDLIBS) &lt;BR /&gt; &lt;BR /&gt;to &lt;BR /&gt; &lt;BR /&gt;cppbuild: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        $(CC) -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        $(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(CPPLDLIBS) &lt;BR /&gt;cppbuild_static: &lt;BR /&gt;        $(PROC) $(PROCPPFLAGS) iname=$(EXE) &lt;BR /&gt;        $(CC) -c $(INCLUDE) $(EXE).c &lt;BR /&gt;        $(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(STATICCPPLDLIBS) &lt;BR /&gt; &lt;BR /&gt;That is &lt;BR /&gt;from  &lt;BR /&gt;.... CC .... &lt;BR /&gt;to &lt;BR /&gt;....$(CC) .... &lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 12:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300548#M715822</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-06-09T12:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: 64/32 bits problem compiling with Oracle libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300549#M715823</link>
      <description>They are:&lt;BR /&gt;$ echo $LD_LIBRARY_PATH&lt;BR /&gt;/icb/oracle9/app/oracle/product/9.2.0/lib:/lib:/usr/lib:/icb/oracle9/app/oracle/product/9.2.0&lt;BR /&gt;$ echo $SHLIB_PATH&lt;BR /&gt;ORACLE_HOME/lib32:/icb/oracle9/app/oracle/product/9.2.0/rdbms/lib32&lt;BR /&gt;&lt;BR /&gt;However I have managed to use the demo makefile that cames with Oracle instad of trying to do the compilation directly through command line and it works, so I consider closed the case.&lt;BR /&gt;&lt;BR /&gt;I appreciate sincerely your help and interest.</description>
      <pubDate>Wed, 09 Jun 2004 12:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/64-32-bits-problem-compiling-with-oracle-libraries/m-p/3300549#M715823</guid>
      <dc:creator>Lorenzo del Río</dc:creator>
      <dc:date>2004-06-09T12:13:56Z</dc:date>
    </item>
  </channel>
</rss>

