<?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 Can't open shared library: /usr/lib/libpthread.1 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869056#M98704</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have a piece of code that fails while loading one of our libraries.&lt;BR /&gt;We reproduce the problem with this simple program:&lt;BR /&gt;******************************&lt;BR /&gt;#include &lt;DLFCN.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main(void){&lt;BR /&gt;&lt;BR /&gt;        char* env_path = 0;&lt;BR /&gt;&lt;BR /&gt;        void* rc;&lt;BR /&gt;        char* rs = 0;&lt;BR /&gt;&lt;BR /&gt;        env_path = getenv("SHLIB_PATH");&lt;BR /&gt;&lt;BR /&gt;        printf("value for SHLIB_PATH is: %s\n", env_path);&lt;BR /&gt;&lt;BR /&gt;        putenv("SHLIB_PATH=/opt/ibm/gsk7/lib:/usr/lib");&lt;BR /&gt;&lt;BR /&gt;        putenv("ICC_IGNORE_FIPS=yes");&lt;BR /&gt;&lt;BR /&gt;        env_path = getenv("SHLIB_PATH");&lt;BR /&gt;&lt;BR /&gt;        printf("New value for SHLIB_PATH is: %s\n", env_path);&lt;BR /&gt;&lt;BR /&gt;        rc = dlopen("libgsk7ssl.sl",RTLD_NOW | RTLD_GLOBAL);        &lt;BR /&gt;&lt;BR /&gt;        rs = dlerror();&lt;BR /&gt;        printf("Reason is %s\n",rs);&lt;BR /&gt;        if (!rc) {&lt;BR /&gt;                printf("ERROR. library not loaded\n");&lt;BR /&gt;        } else {&lt;BR /&gt;                printf("OK, library loaded\n");&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;}&lt;BR /&gt;**********************&lt;BR /&gt;&lt;BR /&gt;libgsk7ssl.sl is our dll.&lt;BR /&gt;this is the output of 'ldd libgsk7ssl.sl'&lt;BR /&gt;/usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;        ./../gsk_cms/gskcms/hpuxrelease//libgsk7cms.sl =&amp;gt;       /usr/lib/libgsk7cms.sl&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;        /usr/lib/libCsup_v2.2 =&amp;gt;        /usr/lib/libCsup_v2.2&lt;BR /&gt;        /usr/lib/libstd_v2.2 =&amp;gt; /usr/lib/libstd_v2.2&lt;BR /&gt;        ./gsksys/hpuxrelease//libgsk7sys.sl =&amp;gt;  /usr/lib/libgsk7sys.sl&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;&lt;BR /&gt;I have some machines where this sample program works, some machines where it doesn't. I compile it with aCC:&lt;BR /&gt;aCC -lpthread -lm sample_code.c&lt;BR /&gt;&lt;BR /&gt;I recognized that the difference between the failing machines and the good one for my sample   is the presence of patch phss_33037. The presence of this patch triggers the problem. &lt;BR /&gt;Is it something related to the patch?&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/DLFCN.H&gt;</description>
    <pubDate>Mon, 25 Sep 2006 10:21:37 GMT</pubDate>
    <dc:creator>pguzman</dc:creator>
    <dc:date>2006-09-25T10:21:37Z</dc:date>
    <item>
      <title>Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869056#M98704</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have a piece of code that fails while loading one of our libraries.&lt;BR /&gt;We reproduce the problem with this simple program:&lt;BR /&gt;******************************&lt;BR /&gt;#include &lt;DLFCN.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main(void){&lt;BR /&gt;&lt;BR /&gt;        char* env_path = 0;&lt;BR /&gt;&lt;BR /&gt;        void* rc;&lt;BR /&gt;        char* rs = 0;&lt;BR /&gt;&lt;BR /&gt;        env_path = getenv("SHLIB_PATH");&lt;BR /&gt;&lt;BR /&gt;        printf("value for SHLIB_PATH is: %s\n", env_path);&lt;BR /&gt;&lt;BR /&gt;        putenv("SHLIB_PATH=/opt/ibm/gsk7/lib:/usr/lib");&lt;BR /&gt;&lt;BR /&gt;        putenv("ICC_IGNORE_FIPS=yes");&lt;BR /&gt;&lt;BR /&gt;        env_path = getenv("SHLIB_PATH");&lt;BR /&gt;&lt;BR /&gt;        printf("New value for SHLIB_PATH is: %s\n", env_path);&lt;BR /&gt;&lt;BR /&gt;        rc = dlopen("libgsk7ssl.sl",RTLD_NOW | RTLD_GLOBAL);        &lt;BR /&gt;&lt;BR /&gt;        rs = dlerror();&lt;BR /&gt;        printf("Reason is %s\n",rs);&lt;BR /&gt;        if (!rc) {&lt;BR /&gt;                printf("ERROR. library not loaded\n");&lt;BR /&gt;        } else {&lt;BR /&gt;                printf("OK, library loaded\n");&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;}&lt;BR /&gt;**********************&lt;BR /&gt;&lt;BR /&gt;libgsk7ssl.sl is our dll.&lt;BR /&gt;this is the output of 'ldd libgsk7ssl.sl'&lt;BR /&gt;/usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;        ./../gsk_cms/gskcms/hpuxrelease//libgsk7cms.sl =&amp;gt;       /usr/lib/libgsk7cms.sl&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;        /usr/lib/libCsup_v2.2 =&amp;gt;        /usr/lib/libCsup_v2.2&lt;BR /&gt;        /usr/lib/libstd_v2.2 =&amp;gt; /usr/lib/libstd_v2.2&lt;BR /&gt;        ./gsksys/hpuxrelease//libgsk7sys.sl =&amp;gt;  /usr/lib/libgsk7sys.sl&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;&lt;BR /&gt;I have some machines where this sample program works, some machines where it doesn't. I compile it with aCC:&lt;BR /&gt;aCC -lpthread -lm sample_code.c&lt;BR /&gt;&lt;BR /&gt;I recognized that the difference between the failing machines and the good one for my sample   is the presence of patch phss_33037. The presence of this patch triggers the problem. &lt;BR /&gt;Is it something related to the patch?&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/DLFCN.H&gt;</description>
      <pubDate>Mon, 25 Sep 2006 10:21:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869056#M98704</guid>
      <dc:creator>pguzman</dc:creator>
      <dc:date>2006-09-25T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869057#M98705</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Patch causes the problem. You said it. Check the patch database for a successor patch. Or swremove it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 25 Sep 2006 10:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869057#M98705</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-09-25T10:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869058#M98706</link>
      <description>Thanks for the reply.&lt;BR /&gt;Do you already know if there's some problem with this patch? Or if this patch added some side-effect in the way to load libraries?&lt;BR /&gt;&lt;BR /&gt;I ask this because I cannot find superseded patches to this one and I need to be 100% sure before asking to remove an OS patch.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 25 Sep 2006 12:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869058#M98706</guid>
      <dc:creator>pguzman</dc:creator>
      <dc:date>2006-09-25T12:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869059#M98707</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;phss_33037 is s700_800 11.11 ld(1) and linker tools cumulative patch. Do you have latest aCC patches installed ? or, what is your acc version ? Take a look at PHSS_33944. &lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Sep 2006 12:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869059#M98707</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-09-25T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869060#M98708</link>
      <description>What is the output from dlerror?  (It would help if you would put that printf inside your error block.)&lt;BR /&gt;&lt;BR /&gt;Note if you need to load libpthread.1, it is probably the Thread Local Storage error.  I.e. you must link your executable with -lpthread and it seems you have it.&lt;BR /&gt;&lt;BR /&gt;The only other weird case of this error occurs if you patch libpthread while the application was running.  But that would only show up once, then go away.</description>
      <pubDate>Mon, 25 Sep 2006 19:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869060#M98708</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-09-25T19:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869061#M98709</link>
      <description>My compiler version is A.03.33. I can try to install the latest patch of aCC (PHSS_33944).&lt;BR /&gt;&lt;BR /&gt;The dlerror I get is "Can't open shared library: /usr/lib/libpthread.1" &lt;BR /&gt;&lt;BR /&gt;I've run the sample code after having completed the patch installation.&lt;BR /&gt;&lt;BR /&gt;Do I have to follow some specific rules while linking to libc? (At the moment aCC does it for me)</description>
      <pubDate>Tue, 26 Sep 2006 05:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869061#M98709</guid>
      <dc:creator>pguzman</dc:creator>
      <dc:date>2006-09-26T05:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869062#M98710</link>
      <description>&lt;!--!*#--&gt;&amp;gt;I can try to install the latest patch of aCC (PHSS_33944).&lt;BR /&gt;&lt;BR /&gt;You can but I doubt it will make a difference since it is dld that's the problem.  As mentioned by Steven, you should probably remove PHSS_33037.  (See comment below for one last change before removing the patch.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The dlerror I get is "Can't open shared library: /usr/lib/libpthread.1"&lt;BR /&gt;&lt;BR /&gt;This isn't a good message since it doesn't say why it can't open it.  Does it still say this if you move these into the error block?&lt;BR /&gt;   rs = dlerror();&lt;BR /&gt;   printf("Reason is %s\n",rs);&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I've run the sample code after having completed the patch installation.&lt;BR /&gt;aCC -lpthread -lm sample_code.c&lt;BR /&gt;&lt;BR /&gt;This isn't correct.  Your libgsk7ssl.sl is compiled with -AA.  So you need to compile sample_code.c with -AA too.  (You probably could compile with cc.)&lt;BR /&gt;&lt;BR /&gt;So fix your source and add -AA before you remove the patch.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Do I have to follow some specific rules while linking to libc? (At the moment aCC does it for me)&lt;BR /&gt;&lt;BR /&gt;No, not for libc, just let the driver handle it.</description>
      <pubDate>Tue, 26 Sep 2006 05:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869062#M98710</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-09-26T05:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869063#M98711</link>
      <description>this is reported against PHSS_33037 as JAGag16003 . the fix will be released in a superseding patch in a couple of weeks, till then you should uninstall this patch.</description>
      <pubDate>Tue, 26 Sep 2006 11:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869063#M98711</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2006-09-26T11:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869064#M98712</link>
      <description>Thanks for the update!&lt;BR /&gt;&lt;BR /&gt;Do you know if there's a place where to get this info officially from HP? (i.e. a public website or other). I have to be 100% sure before asking to remove a OS patch from a system or to wait for a new patch.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 28 Sep 2006 03:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869064#M98712</guid>
      <dc:creator>pguzman</dc:creator>
      <dc:date>2006-09-28T03:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open shared library: /usr/lib/libpthread.1</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869065#M98713</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check the patch details:&lt;BR /&gt;&lt;A href="http://www4.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHSS_33037" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHSS_33037&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As mentioned you can remove this patch and install the previous PHSS_33033.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Sep 2006 03:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-shared-library-usr-lib-libpthread-1/m-p/3869065#M98713</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2006-09-28T03:58:03Z</dc:date>
    </item>
  </channel>
</rss>

