<?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: Error loading shared library from Java application in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206228#M91545</link>
    <description>&amp;gt;So you are saying I cannot link any modules that were generated with g++ because the JVM libraries were (at least partially) compiled with aCC?&lt;BR /&gt;&lt;BR /&gt;Yes though I've never seen that error symptom before.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So that actually means I need to use aCC/cc to create the .so files in order to load them from Java using System.loadLibrary().&lt;BR /&gt;&lt;BR /&gt;Yes.</description>
    <pubDate>Wed, 28 May 2008 16:37:36 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-05-28T16:37:36Z</dc:date>
    <item>
      <title>Error loading shared library from Java application</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206223#M91540</link>
      <description>Trying to load a shared library that was compiled with g++/gcc inside a Java application (using JNI) fails with the following error message:&lt;BR /&gt;&lt;BR /&gt;aCC runtime: Use of "-mt" must be consistent during both compilation and linking.&lt;BR /&gt;&lt;BR /&gt;Even though aCC is installed on the machine I do not understand why its runtime libraries are used. Do I need to deinstall the native compiler again? gcc (version 4.2.3) was installed after aCC.&lt;BR /&gt;&lt;BR /&gt;Is there any g++/gcc option I am missing here? I am only using -fPIC and -shared for the linker step.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Marc</description>
      <pubDate>Wed, 28 May 2008 12:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206223#M91540</guid>
      <dc:creator>Marc Theisen</dc:creator>
      <dc:date>2008-05-28T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading shared library from Java application</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206224#M91541</link>
      <description>Hi Marc:&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1211991662054+28353475&amp;amp;threadId=1123742" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1211991662054+28353475&amp;amp;threadId=1123742&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 28 May 2008 15:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206224#M91541</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-28T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading shared library from Java application</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206225#M91542</link>
      <description>This article describes an issue with the aCC compiler. But I am not using this compiler. In fact I have deinstalled it from the machine and still get the same error message. Removing the dependency on libpthread.so did not help either.&lt;BR /&gt;&lt;BR /&gt;Here is the output of the ldd command on the .so that is loaded from the Java side:&lt;BR /&gt;&lt;BR /&gt;        libstdc++.so =&amp;gt; /usr/local/lib/libstdc++.so&lt;BR /&gt;        libunwind.so.1 =&amp;gt;       /usr/lib/hpux32/libunwind.so.1&lt;BR /&gt;        libm.so.1 =&amp;gt;    /usr/lib/hpux32/libm.so.1&lt;BR /&gt;        libc.so.1 =&amp;gt;    /usr/lib/hpux32/libc.so.1&lt;BR /&gt;        libstdc++.so =&amp;gt; /usr/local/lib/gcc/ia64-hp-hpux11.31/4.2.3/../../../libstdc++.so&lt;BR /&gt;        libm.so.1 =&amp;gt;    /usr/lib/hpux32/libm.so.1&lt;BR /&gt;        libc.so.1 =&amp;gt;    /usr/lib/hpux32/libc.so.1&lt;BR /&gt;        libuca.so.1 =&amp;gt;  /usr/lib/hpux32/libuca.so.1&lt;BR /&gt;        libdl.so.1 =&amp;gt;   /usr/lib/hpux32/libdl.so.1&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated!&lt;BR /&gt;Marc</description>
      <pubDate>Wed, 28 May 2008 15:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206225#M91542</guid>
      <dc:creator>Marc Theisen</dc:creator>
      <dc:date>2008-05-28T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading shared library from Java application</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206226#M91543</link>
      <description>As mentioned in the other link, your JNI has not been compiled with the aCC's -mt option.&lt;BR /&gt;Since Java is compiled with aC++, you will not be able to have a JNI compiled with g++, just gcc.&lt;BR /&gt;What OS version and what type of hardware do you have?  Do you get a core file?</description>
      <pubDate>Wed, 28 May 2008 16:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206226#M91543</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-28T16:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading shared library from Java application</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206227#M91544</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;So you are saying I cannot link any modules that were generated with g++ because the JVM libraries were (at least partially) compiled with aCC ? That's bad since most of our code is written in C++, not C. So that actually means I need to use aCC/cc to create the .so files in order to load them from Java using System.loadLibrary(). I will then try to do the port using the native compiler, then.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;Marc</description>
      <pubDate>Wed, 28 May 2008 16:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206227#M91544</guid>
      <dc:creator>Marc Theisen</dc:creator>
      <dc:date>2008-05-28T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading shared library from Java application</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206228#M91545</link>
      <description>&amp;gt;So you are saying I cannot link any modules that were generated with g++ because the JVM libraries were (at least partially) compiled with aCC?&lt;BR /&gt;&lt;BR /&gt;Yes though I've never seen that error symptom before.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So that actually means I need to use aCC/cc to create the .so files in order to load them from Java using System.loadLibrary().&lt;BR /&gt;&lt;BR /&gt;Yes.</description>
      <pubDate>Wed, 28 May 2008 16:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-loading-shared-library-from-java-application/m-p/4206228#M91545</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-28T16:37:36Z</dc:date>
    </item>
  </channel>
</rss>

