<?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: Mozilla Build LDAP SDK: Getting hard links with shared libraries in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111039#M92693</link>
    <description>&lt;P&gt;&amp;gt;Moreover "+s" option is not always working. In some cases it doesn't give the desired result.&lt;BR /&gt;&lt;BR /&gt;How do you know? You are trusting in the ldd output rather than something tried and true like tusc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It should have referred to the libobnspr4 present in /scratch/Ranjan/Mozialla_HP directory rather than the other one which is now moved.&lt;BR /&gt;&lt;BR /&gt;It probably did but printed the wrong lib. It can't point to the moved one because nobody but you knows where that went. What dld/linker patch do you have?&lt;BR /&gt;&lt;BR /&gt;Running tusc would prove which shlib is being used.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If I don't set the SHLIB_PATH then ldd command says&lt;BR /&gt;dld.sl: Can't open shared library: /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/../../dist/HP-UX B.11.11_OPT.O&lt;BR /&gt;BJ/lib/libobnspr4.sl&lt;BR /&gt;&lt;BR /&gt;This seems to imply SHLIB_PATH is working but ldd is printing the wrong thing.&lt;BR /&gt;I thought I've seen a bug like that.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Sep 2011 20:05:22 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-09-18T20:05:22Z</dc:date>
    <item>
      <title>Mozialla Build LDAP SDK: Getting hard links with shared libraries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111036#M92690</link>
      <description>Mozialla Build LDAP SDK: Getting hard links with shared libraries&lt;BR /&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;I am building Mozialla LDAP SDK on HP-UX platform. The problem is that when i do ldd to the build shared libraries(on  libobfreebl_pure32_3.sl and others also),&lt;BR /&gt;it shows the complete path to its dependencies on other mozialla build shared objects. &lt;BR /&gt;&lt;BR /&gt;ldd ./HP-UXB.11.11_OPT.OBJ/libobfreebl_pure32_3.sl&lt;BR /&gt;            /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/lib/freebl/../../../../dist/HP-UXB.11.11_OPT.OBJ/lib//libobnspr4.sl =&amp;gt;    /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/lib/freebl/../../../../dist/HP-UXB.11.11_OPT.OBJ/lib//libobnspr4.sl&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libm.2 =&amp;gt;      /usr/lib/libm.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/librt.2 =&amp;gt;     /usr/lib/librt.2&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried moving ibobnspr4.sl to some other location and setting my SHLIB_PATH to the moved directory, but still libobfreebl_pure32_3.sl is refering to the earlier link /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/lib/freebl/../../../../dist/HP-UXB.11.11_OPT.OBJ/lib//libobnspr4.sl &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using ANSI "cc" compiler for building the mozialla LDAP sdk. &lt;BR /&gt;The linker command for "libobfreebl_pure32_3.sl" is&lt;BR /&gt;&lt;BR /&gt;d -b +h libobfreebl_pure32_3.sl +k +vshlibunsats -u FREEBL_GetVector +e FREEBL_GetVector -o HP-UXB.11.11_OPT.OBJ/libobfreebl_pure32_3.sl HP-UXB.11.11_OPT.OBJ/ldvector.o HP-UXB.11.11_OPT.OBJ/prng_fips1861.o HP-UXB.11.11_OPT.OBJ/sysrand.o HP-UXB.11.11_OPT.OBJ/sha_fast.o HP-UXB.11.11_OPT.OBJ/md2.o HP-UXB.11.11_OPT.OBJ/md5.o HP-UXB.11.11_OPT.OBJ/alg2268.o HP-UXB.11.11_OPT.OBJ/arcfour.o HP-UXB.11.11_OPT.OBJ/arcfive.o HP-UXB.11.11_OPT.OBJ/desblapi.o HP-UXB.11.11_OPT.OBJ/des.o HP-UXB.11.11_OPT.OBJ/rijndael.o HP-UXB.11.11_OPT.OBJ/dh.o HP-UXB.11.11_OPT.OBJ/pqg.o HP-UXB.11.11_OPT.OBJ/dsa.o HP-UXB.11.11_OPT.OBJ/rsa.o HP-UXB.11.11_OPT.OBJ/mpprime.o HP-UXB.11.11_OPT.OBJ/mpmontg.o HP-UXB.11.11_OPT.OBJ/mplogic.o HP-UXB.11.11_OPT.OBJ/mpi.o   /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/lib/freebl/../../../../dist/HP-UXB.11.11_OPT.OBJ/lib/libsecutil.a  -L/scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/lib/freebl/../../../../dist/HP-UXB.11.11_OPT.OBJ/lib/ -lobplc4 -lobplds4 -lobnspr4 -lc&lt;BR /&gt;&lt;BR /&gt;I also tried ld with "+s" and "+b" option but it didn't help much.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2007 08:32:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111036#M92690</guid>
      <dc:creator>Steve_The_King</dc:creator>
      <dc:date>2007-12-04T08:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mozilla Build LDAP SDK: Getting hard links with shared libraries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111037#M92691</link>
      <description>&lt;P&gt;(Darn, I answered this already and the original thread seems to have disappeared??)&lt;BR /&gt;&lt;BR /&gt;Basically don't use ldd on shlibs, use it on your executable that is linked with this shlib.&lt;BR /&gt;Or you can use chatr(1).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I also tried ld with "+s" and "+b" option but it didn't help much.&lt;BR /&gt;&lt;BR /&gt;You'll need to use one or more of those to make ldd work when when you use ldd on the executable.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2011 20:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111037#M92691</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-18T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mozialla Build LDAP SDK: Getting hard links with shared libraries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111038#M92692</link>
      <description>Hi  Dennis,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;Actually we are writing a plugin for a webserver which is a shared library(its not an executable). Our plugin(.sl library) gets linked to these built mozilla ldap sdk  shared libraries. &lt;BR /&gt;&lt;BR /&gt;Moreover "+s" option is not always working. In some cases it doesn't give the desired result. &lt;BR /&gt;&lt;BR /&gt;Step 1&lt;BR /&gt;ld  +s -b  +h libobplds4.sl -o libobplds4.sl ./plarena.o ./plhash.o ./plvrsion.o  -L/scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/../../dist/HP-UXB.11.11_OPT.OBJ/lib  -lobnspr4&lt;BR /&gt;&lt;BR /&gt;Step 2&lt;BR /&gt;copy the newly build libobplds4.sl to /scratch/Ranjan/Mozialla_HP&lt;BR /&gt;set SHLIB_PATH to /scratch/Ranjan/Mozialla_HP&lt;BR /&gt;This directory has libobnspr4.sl&lt;BR /&gt;&lt;BR /&gt;Rename /scratch/Ranjan/LDAP_SDK5_Source to some other directory. &lt;BR /&gt;&lt;BR /&gt;Step 3&lt;BR /&gt;[/scratch/Ranjan/Mozialla_HP]$ ldd libobplds4.sl&lt;BR /&gt;        /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/../../dist/HP-UXB.11.11_OPT.OBJ/lib/libobnspr4.sl =&amp;gt;      /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/../../dist/HP-UXB.11.11_OPT.OBJ/lib/libobnspr4.sl&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libm.2 =&amp;gt;      /usr/lib/libm.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/librt.2 =&amp;gt;     /usr/lib/librt.2&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Its should have referred to the libobnspr4 present in /scratch/Ranjan/Mozialla_HP directory rather than the other one which is now moved. &lt;BR /&gt;If I don't set the SHLIB_PATH then ldd command says&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/../../dist/HP-UXB.11.11_OPT.OBJ/lib/libobnspr4.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;&lt;BR /&gt;Dont know why its behaving like this.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Dec 2007 09:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111038#M92692</guid>
      <dc:creator>Steve_The_King</dc:creator>
      <dc:date>2007-12-04T09:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mozilla Build LDAP SDK: Getting hard links with shared libraries</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111039#M92693</link>
      <description>&lt;P&gt;&amp;gt;Moreover "+s" option is not always working. In some cases it doesn't give the desired result.&lt;BR /&gt;&lt;BR /&gt;How do you know? You are trusting in the ldd output rather than something tried and true like tusc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It should have referred to the libobnspr4 present in /scratch/Ranjan/Mozialla_HP directory rather than the other one which is now moved.&lt;BR /&gt;&lt;BR /&gt;It probably did but printed the wrong lib. It can't point to the moved one because nobody but you knows where that went. What dld/linker patch do you have?&lt;BR /&gt;&lt;BR /&gt;Running tusc would prove which shlib is being used.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If I don't set the SHLIB_PATH then ldd command says&lt;BR /&gt;dld.sl: Can't open shared library: /scratch/Ranjan/LDAP_SDK5_Source/mozilla/security/nss/../../dist/HP-UX B.11.11_OPT.O&lt;BR /&gt;BJ/lib/libobnspr4.sl&lt;BR /&gt;&lt;BR /&gt;This seems to imply SHLIB_PATH is working but ldd is printing the wrong thing.&lt;BR /&gt;I thought I've seen a bug like that.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2011 20:05:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mozialla-build-ldap-sdk-getting-hard-links-with-shared-libraries/m-p/4111039#M92693</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-18T20:05:22Z</dc:date>
    </item>
  </channel>
</rss>

