<?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: Can't dlopen() a library containing Thread Local Storage - Incorrect path beinh taken in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/can-t-dlopen-a-library-containing-thread-local-storage-incorrect/m-p/3994632#M95975</link>
    <description>You seemed to have used the right options and ENV vars.&lt;BR /&gt;&lt;BR /&gt;I suppose for your "other" machine, you could try to use the java1.4 libs to see if that works.&lt;BR /&gt;&lt;BR /&gt;Otherwise try using ldd(1) to see why the variables aren't working:&lt;BR /&gt;&lt;BR /&gt;export SHLIB_PATH=...&lt;BR /&gt;LD_PRELOAD=.../java1.5/.../libjvm.sl ldd your-shlib&lt;BR /&gt;&lt;BR /&gt;See if there is more than one libjvm.sl?&lt;BR /&gt;&lt;BR /&gt;Can you show us the chatr(1) output on your shlib?&lt;BR /&gt;&lt;BR /&gt;I suppose you could also use tusc to see what libs are being opened during loading.</description>
    <pubDate>Mon, 07 May 2007 22:48:00 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-05-07T22:48:00Z</dc:date>
    <item>
      <title>Can't dlopen() a library containing Thread Local Storage - Incorrect path beinh taken</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-dlopen-a-library-containing-thread-local-storage-incorrect/m-p/3994631#M95974</link>
      <description>I have built an executable that dlopens a shared lib. Both the exe and the lib are PARISC1.1.&lt;BR /&gt;&lt;BR /&gt;The shared lib thats dlopen'ed by the exe is dependent on libjvm.sl. While building the shared lib, I have used -Wl,+s linker option and used java1.4 for linking i.e. something like -L/opt/java1.4/jre/lib/PA_RISC/server/ -ljvm.&lt;BR /&gt;&lt;BR /&gt;However, when I am testing ans trying to run the exe on another machine that has java 1.5, I get an error saying that &lt;BR /&gt;&lt;BR /&gt;Can't dlopen() a library containing Thread Local Storage: /opt/java1.4/jre/lib/PA_RISC/server//libjvm.sl&lt;BR /&gt;&lt;BR /&gt;I am getting this even though I have set SHLIB_PATH to java1.5 paths and also set LD_PRELOAD to java1.5 libjvm.sl. Why is the SHLIB_PATH not being taken even when +s linker flag has been specified while building the shared lib?&lt;BR /&gt;&lt;BR /&gt;Can someone help me out?</description>
      <pubDate>Sun, 06 May 2007 07:28:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-dlopen-a-library-containing-thread-local-storage-incorrect/m-p/3994631#M95974</guid>
      <dc:creator>Pankaj Agrawal</dc:creator>
      <dc:date>2007-05-06T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't dlopen() a library containing Thread Local Storage - Incorrect path beinh taken</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-dlopen-a-library-containing-thread-local-storage-incorrect/m-p/3994632#M95975</link>
      <description>You seemed to have used the right options and ENV vars.&lt;BR /&gt;&lt;BR /&gt;I suppose for your "other" machine, you could try to use the java1.4 libs to see if that works.&lt;BR /&gt;&lt;BR /&gt;Otherwise try using ldd(1) to see why the variables aren't working:&lt;BR /&gt;&lt;BR /&gt;export SHLIB_PATH=...&lt;BR /&gt;LD_PRELOAD=.../java1.5/.../libjvm.sl ldd your-shlib&lt;BR /&gt;&lt;BR /&gt;See if there is more than one libjvm.sl?&lt;BR /&gt;&lt;BR /&gt;Can you show us the chatr(1) output on your shlib?&lt;BR /&gt;&lt;BR /&gt;I suppose you could also use tusc to see what libs are being opened during loading.</description>
      <pubDate>Mon, 07 May 2007 22:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-dlopen-a-library-containing-thread-local-storage-incorrect/m-p/3994632#M95975</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-07T22:48:00Z</dc:date>
    </item>
  </channel>
</rss>

