<?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: problem with ld +b when linking on 32-bit HP/UX in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977859#M99477</link>
    <description>I have fixed the problem using chatr, as suggested. I would have liked to fix the compiler, so it is consistent, but at least chatr provides a workaround.&lt;BR /&gt;&lt;BR /&gt;Closing...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tim</description>
    <pubDate>Tue, 09 May 2006 05:52:01 GMT</pubDate>
    <dc:creator>Tim Alsop</dc:creator>
    <dc:date>2006-05-09T05:52:01Z</dc:date>
    <item>
      <title>problem with ld +b when linking on 32-bit HP/UX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977856#M99474</link>
      <description>I have discovered a strange problem on HP/UX 11.11 when compiling 32-bit code. The same code, when compiled using +DD64 (64-bit) works correctly.&lt;BR /&gt;&lt;BR /&gt;The ld statement used is shown below :&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ld -ldld +b/krb5/ext/lib:/krb5/appsec-rt/lib:/krb5/lib -b +h libldap-2.3.sl.1 +b /krb5/ext/lib -o .libs/libldap-2.3.sl.1.6 &lt;BR /&gt; .libs/bind.o .libs/open.o .libs/result.o .libs/error.o .libs/compare.o .libs/search.o .libs/controls.o .libs/messages.o .libs/refer&lt;BR /&gt;ences.o .libs/extended.o .libs/cyrus.o .libs/modify.o .libs/add.o .libs/modrdn.o .libs/delete.o .libs/abandon.o .libs/sasl.o .libs/sbind.o .libs/kbind.o .libs/unbind.o .libs/cancel.o .libs/filter.o .libs/free.o .libs/sort.o .libs/passwd.o .libs/whoami.o .libs/getdn.o .libs/getentry.o .libs/getattr.o .libs/getvalues.o .libs/addentry.o .libs/request.o .libs/os-ip.o .libs/url.o .libs/sortctrl.o .libs/vlvctrl.o .libs/init.o .libs/options.o .libs/print.o .libs/string.o .libs/util-int.o .libs/schema.o .libs/charray.o .libs/tls.o .libs/os-local.o .libs/dnssrv.o .libs/utf-8.o .libs/utf-8-conv.o .libs/turn.o .libs/groupings.o .libs/txn.o .libs/ppolicy.o .libs/version.o  -L/home/talsop/source/external/cyrussasl/lib/.libs -L/home/talsop/source/external/cyrussasl/plugins/.libs -L/home/talsop/source/external/openldap/libraries/libldap/.libs -L/home/talsop/source/external/openldap/libraries/liblber/.libs -L/home/talsop/source/toolkits/devpack/security-tk/lib -L/home/talsop/source/common/k542/lib ../../libraries/liblber/.libs/liblber.sl /home/talsop/source/external/cyrussasl/lib/.libs/libsasl2.sl -L/krb5/lib -lc  -ldld +b/krb5/ext/lib:/krb5/appsec-rt/lib:/krb5/lib&lt;BR /&gt;&lt;BR /&gt;This link works, but when I use this library, at runtime, it expects to find the libsasl2.sl library in /home/talsop/source/external/cyrussasl/lib/.lib directory instead of searching the paths given using +b option.&lt;BR /&gt;&lt;BR /&gt;When I use ldd -s to display the library, I see :&lt;BR /&gt;&lt;BR /&gt;..snip...&lt;BR /&gt;  find library=/usr/lib/libc.2; required by implicit load                                                                           &lt;BR /&gt;    search path=/krb5/ext/lib:/krb5/appsec-rt/lib:/krb5/lib  (RPATH)                                                                &lt;BR /&gt;    trying path=/krb5/ext/lib/libc.2                                                                                                &lt;BR /&gt;    trying path=/krb5/appsec-rt/lib/libc.2                                                                                          &lt;BR /&gt;    trying path=/krb5/lib/libc.2                                                                                                    &lt;BR /&gt;    trying path=/usr/lib/libc.2  (absolute)                                                                                         &lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2                                                                                     &lt;BR /&gt;                                                                                                                                    &lt;BR /&gt;  find library=/home/talsop/source/external/cyrussasl/lib/.libs/libsasl2.sl.2; required by libldap.sl                               &lt;BR /&gt;        /home/talsop/source/external/cyrussasl/lib/.libs/libsasl2.sl.2 =&amp;gt;       /home/talsop/source/external/cyrussasl/lib/.libs/lib&lt;BR /&gt;sasl2.sl.2                                                                                                                          &lt;BR /&gt;                                                                                                                                    &lt;BR /&gt;  find library=/usr/lib/libc.2; required by /home/talsop/source/external/cyrussasl/lib/.libs/libsasl2.sl.2                          &lt;BR /&gt;    search path=/krb5/ext/lib:/krb5/appsec-rt/lib:/krb5/lib  (RPATH)                                                                &lt;BR /&gt;    trying path=/krb5/ext/lib/libc.2                                                                                                &lt;BR /&gt;    trying path=/krb5/appsec-rt/lib/libc.2                                                                                          &lt;BR /&gt;    trying path=/krb5/lib/libc.2                                                                                                    &lt;BR /&gt;    search path=/krb5/ext/lib  (RPATH)                                                                                              &lt;BR /&gt;    trying path=/krb5/ext/lib/libc.2                                                                                                &lt;BR /&gt;    trying path=/usr/lib/libc.2  (absolute)                                                                                         &lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;..snip..&lt;BR /&gt;&lt;BR /&gt;As you can see in the above output the libsasl2.sl library is found in /home/talsop/... If I remove this file, it does not find the same file in /krb5/ext/lib, but this file is installed into /krb5/ext/lib directory as well as in the original directory where the code was compiled from.&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;The same problem does not occur on HP/UX 11.23 on IA-64, so I tried to apply patches to compiler and also to linker, but the patches made no difference.</description>
      <pubDate>Tue, 09 May 2006 02:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977856#M99474</guid>
      <dc:creator>Tim Alsop</dc:creator>
      <dc:date>2006-05-09T02:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ld +b when linking on 32-bit HP/UX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977857#M99475</link>
      <description>Hi Tim, &lt;BR /&gt;&lt;BR /&gt;Have you tried exporting SHLIB_PATH and LD_LIB_PATH ? Also, use chatr tool to modify these valuse. Do a # man chatr for more information. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 09 May 2006 02:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977857#M99475</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-05-09T02:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ld +b when linking on 32-bit HP/UX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977858#M99476</link>
      <description>Arun,&lt;BR /&gt;&lt;BR /&gt;Thankyou. I will try chatr and let you know, but I would be happier if I knew why this is not required on same system with the 64-bit code, and also not required on an IA-64 system running HP/UX 11.23.&lt;BR /&gt;&lt;BR /&gt;The output of ldd on the IA-64 system is :&lt;BR /&gt;&lt;BR /&gt;  find library=libsasl2.sl.2; required by ./libldap.sl                                                                              &lt;BR /&gt;    search path=/krb5/ext/lib:/krb5/appsec-rt/lib:/krb5/lib  (RUNPATH)                                                              &lt;BR /&gt;    trying path=/krb5/ext/lib/libsasl2.sl.2                                                                                         &lt;BR /&gt;        libsasl2.sl.2 =&amp;gt;        /krb5/ext/lib/libsasl2.sl.2                                                                         &lt;BR /&gt;&lt;BR /&gt;This is what I expect to see on my PARISC 11.11 system for both 32-bit and 64-bit compiles.&lt;BR /&gt;&lt;BR /&gt;I will let you know if chatr helps.</description>
      <pubDate>Tue, 09 May 2006 03:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977858#M99476</guid>
      <dc:creator>Tim Alsop</dc:creator>
      <dc:date>2006-05-09T03:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ld +b when linking on 32-bit HP/UX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977859#M99477</link>
      <description>I have fixed the problem using chatr, as suggested. I would have liked to fix the compiler, so it is consistent, but at least chatr provides a workaround.&lt;BR /&gt;&lt;BR /&gt;Closing...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 09 May 2006 05:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-ld-b-when-linking-on-32-bit-hp-ux/m-p/4977859#M99477</guid>
      <dc:creator>Tim Alsop</dc:creator>
      <dc:date>2006-05-09T05:52:01Z</dc:date>
    </item>
  </channel>
</rss>

