<?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: LD_PRELOAD and  libcl.sl in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965668#M101665</link>
    <description>Is my dld.sl too old? I am thinking it is.&lt;BR /&gt;&lt;BR /&gt;myneni@hp76 dudee/myneni &amp;gt; what /usr/lib/dld.sl&lt;BR /&gt;/usr/lib/dld.sl:&lt;BR /&gt;         SMART_BIND&lt;BR /&gt;        92453-07 dld dld dld.sl B.11.18 000922&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone point me to the patches that I need to install to updated dld.sl?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;-Sachin</description>
    <pubDate>Sun, 12 Mar 2006 19:37:16 GMT</pubDate>
    <dc:creator>sachin myneni</dc:creator>
    <dc:date>2006-03-12T19:37:16Z</dc:date>
    <item>
      <title>LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965648#M101645</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am having trouble with running my application HP-UX B.11.11.&lt;BR /&gt;&lt;BR /&gt;I have an executable (a.exe) that dynamically loads a shared library (b.so). I get an undefined symbol:&lt;BR /&gt;/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'FTN_DTOI' in load module '/homes/dudee/myneni/workarea/exec/b.so'&lt;BR /&gt;&lt;BR /&gt;I tried setting the following environment variable at runtime: &lt;BR /&gt;"LD_PRELOAD=/usr/lib/pa20_64/libcl.sl"&lt;BR /&gt;but that doesn't help. Same message as above.&lt;BR /&gt;&lt;BR /&gt;If I list "-L/usr/lib/pa20_64/ -lcl" in the link line, I get:&lt;BR /&gt;"Error: Cannot dlopen load module '/homes/dudee/myneni/workarea/exec//b.so' because it contains thread specific data." &lt;BR /&gt;&lt;BR /&gt;At this point, I had -Wl,-aarchive, which I changed to -Wl,-ashared_archive and I get the following:&lt;BR /&gt;Cannot dlopen load module '/usr/lib/pa20_64/libcl.2' because it contains thread specific data.&lt;BR /&gt; With or without LD_PRELOAD pointing to /usr/lib/pa20_64/libcl.sl.&lt;BR /&gt;&lt;BR /&gt;Can someone help me understand how to fix this issue?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;-Sachin&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Mar 2006 15:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965648#M101645</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-08T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965649#M101646</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try put path from your shared library in SHLIB_PATH enviroment variable.&lt;BR /&gt;&lt;BR /&gt;Schimidt</description>
      <pubDate>Wed, 08 Mar 2006 15:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965649#M101646</guid>
      <dc:creator>Carlos Roberto Schimidt</dc:creator>
      <dc:date>2006-03-08T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965650#M101647</link>
      <description>Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;Could you provide more information about your server's architecture etc...&lt;BR /&gt;# uname -a&lt;BR /&gt;# file a.exe&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Wed, 08 Mar 2006 15:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965650#M101647</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-08T15:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965651#M101648</link>
      <description>Here is the runtime environment and the output of file on both the executable and the shared object:&lt;BR /&gt;&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; uname -a&lt;BR /&gt;HP-UX hp76 B.11.11 U 9000/785 3968680693 unlimited-user license&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; file ~/os_binaries/os80d_HP-UX_42_64mp&lt;BR /&gt;/homes/dudee/t/tad/os_binaries/os80d_HP-UX_42_64mp:     ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; file ~/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so&lt;BR /&gt;/homes/dudee/myneni/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so:    ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; chatr ~/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so&lt;BR /&gt;/homes/dudee/myneni/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first&lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/nu_libs:/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX:/opt/fortran90/lib/pa20_64:/usr/lib/pa20_64:/opt/aCC/lib/pa20_64:/usr/lib/pa20_64:/usr/lib/pa20_64:/opt/langtools/lib/pa20_64&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 5 text 4000000000000000 z---c    D (default)&lt;BR /&gt;                 6 data 8000000100000000 ---m-    D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Here is the information on the build machine:&lt;BR /&gt;&lt;BR /&gt;myneni@hp77 p4_mbd/mbd &amp;gt; uname -a&lt;BR /&gt;HP-UX hp77 B.11.11 U 9000/785 2005242756 unlimited-user license&lt;BR /&gt;myneni@hp77 p4_mbd/mbd &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;-Sachin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Mar 2006 16:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965651#M101648</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-08T16:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965652#M101649</link>
      <description>Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;How about the output of the following commands...&lt;BR /&gt;&lt;BR /&gt;# file a.exe&lt;BR /&gt;# ldd -v a.exe&lt;BR /&gt;# file /homes/dudee/myneni/workarea/exec/b.so&lt;BR /&gt;# ldd -v /homes/dudee/myneni/workarea/exec/b.so</description>
      <pubDate>Wed, 08 Mar 2006 16:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965652#M101649</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-08T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965653#M101650</link>
      <description>Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;How about the output of the following commands...&lt;BR /&gt;&lt;BR /&gt;# file a.exe&lt;BR /&gt;# ldd -v a.exe&lt;BR /&gt;# file /homes/dudee/myneni/workarea/exec/b.so&lt;BR /&gt;# ldd -v /homes/dudee/myneni/workarea/exec/b.so&lt;BR /&gt;&lt;BR /&gt;...also post the command used for compilation.</description>
      <pubDate>Wed, 08 Mar 2006 16:59:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965653#M101650</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-08T16:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965654#M101651</link>
      <description>Hi Sandman,&lt;BR /&gt;&lt;BR /&gt;I don't have ldd on any of my HP-UX systems, so I cannot give the output of 2 of the commands. But here is the output of 'file' from both the executable and shared object:&lt;BR /&gt;Executable:&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; file ~tad/os_binaries/os80d_HP-UX_42_64mp&lt;BR /&gt;/homes/dudee/t/tad/os_binaries/os80d_HP-UX_42_64mp:     ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;Shared Object:&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; file /homes/dudee/myneni/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so&lt;BR /&gt;/homes/dudee/myneni/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so:    ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;COMPILATION FLAGS:&lt;BR /&gt;FORTRAN compilation flags:  /opt/fortran90/bin/f90 +U77 +DA2.0W +DS2.0 -Df90 +O2 +Z +Onoopenmp +source=default +noextend_source&lt;BR /&gt;C++ Compilation flags:      /opt/aCC/bin/aCC +DA2.0W +DS2.0 -Dhpf90 -Dhpux +O2 +Z&lt;BR /&gt;Verbose Link output:&lt;BR /&gt;&lt;BR /&gt;/opt/aCC/bin/aCC +DA2.0W +DS2.0 -Wl,-aarchive,+vnocompatwarnings -v //OBJ_LIST// +O2 -b -L/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/nu_libs -L/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_64mp -lnumerclib_HP-UX_64mp -lblas_HP-UX_64mp -lblas_HP-UX_64mp -L/opt/fortran90/lib/pa20_64 -lU77 -lF90_parallel -L/usr/lib/pa20_64 -lstd -lstream -lCsup -lm -L/opt/aCC/lib/pa20_64 -ldemangle -lcl /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/cflex_64.o /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/lm_new_cflex_64.o -llmgr_cflex_64 -lcrvs_cflex_64 -lsb_cflex_64 -L/usr/lib/pa20_64 -o nusolver.so&lt;BR /&gt;LPATH=/usr/lib/pa20_64:/opt/langtools/lib/pa20_64&lt;BR /&gt; /usr/ccs/bin/ld -b -o /tmp/nusolver.so_myneni +I__shlTerm -aarchive +vnocompatwarnings acceleration.o ...&lt;OBJECT files="" that="" have="" been="" compiled=""&gt;... zipother.o -L /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/nu_libs -L /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_64mp -lnumerclib_HP-UX_64mp -lblas_HP-UX_64mp -lblas_HP-UX_64mp -L /opt/fortran90/lib/pa20_64 -lU77 -lF90_parallel -L /usr/lib/pa20_64 -lstd -lstream -lCsup -lm -L /opt/aCC/lib/pa20_64 -ldemangle -lcl /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/cflex_64.o /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/lm_new_cflex_64.o -llmgr_cflex_64 -lcrvs_cflex_64 -lsb_cflex_64 -L /usr/lib/pa20_64 &amp;gt;/var/tmp/AAAa17623 2&amp;gt;&amp;amp;1  removing /var/tmp/AAAa17623 nusolver.so done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The following are the compilation flags for the executable (optistruct.exe) that loads the shared object built above:&lt;BR /&gt;FORTRAN:   /opt/fortran90/bin/f90 +U77 +DA2.0W +DS2.0 -Df90 +O3 +Onoopenmp +source=default +noextend_source&lt;BR /&gt;C      :   cc +DA2.0W +DS2.0 -Dhpf90 -Dhpux +O3&lt;BR /&gt;C++    :   /opt/aCC/bin/aCC +DA2.0W +DS2.0 -Dhpf90 -Dhpux +O3&lt;BR /&gt;LD:    :   /opt/aCC/bin/aCC +DA2.0W +DS2.0 -Wl,-aarchive,+vnocompatwarnings +O3 -s +Oparallel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;-Sachin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/OBJECT&gt;</description>
      <pubDate>Wed, 08 Mar 2006 18:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965654#M101651</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-08T18:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965655#M101652</link>
      <description>That was quite unreadable. Sorry. Here goes again:&lt;BR /&gt;&lt;BR /&gt;Hi Sandman,&lt;BR /&gt;&lt;BR /&gt;I don't have ldd on any of my HP-UX systems, so I cannot give the output of 2 of the commands. But here is the output of 'file' from both the executable and shared object:&lt;BR /&gt;&lt;BR /&gt;Executable:&lt;BR /&gt;-----------&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; file ~tad/os_binaries/os80d_HP-UX_42_64mp&lt;BR /&gt;/homes/dudee/t/tad/os_binaries/os80d_HP-UX_42_64mp: ELF-64 executable object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;Shared Object:&lt;BR /&gt;--------------&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; file /homes/dudee/myneni/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so&lt;BR /&gt;/homes/dudee/myneni/workarea/p4_mbd/mbd/exec/HP-UX_64mp/nusolver.so: ELF-64 shared object file - PA-RISC 2.0 (LP64)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;COMPILATION FLAGS:&lt;BR /&gt;==================&lt;BR /&gt;FORTRAN compilation flags: &lt;BR /&gt;--------------------------&lt;BR /&gt;/opt/fortran90/bin/f90 +U77 +DA2.0W +DS2.0 -Df90 +O2 +Z +Onoopenmp +source=default +noextend_source&lt;BR /&gt;&lt;BR /&gt;C++ Compilation flags: &lt;BR /&gt;----------------------&lt;BR /&gt;/opt/aCC/bin/aCC +DA2.0W +DS2.0 -Dhpf90 -Dhpux +O2 +Z&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Verbose Link output:&lt;BR /&gt;--------------------&lt;BR /&gt;/opt/aCC/bin/aCC +DA2.0W +DS2.0 -Wl,-aarchive,+vnocompatwarnings -v //OBJ_LIST// +O2 -b -L/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/nu_libs -L/a/homes/dudee/m&lt;BR /&gt;/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_64mp -lnumerclib_HP-UX_64mp -lblas_HP-UX_64mp -lblas_HP-UX_64mp -L/opt/fortran90/lib/pa20_64 -lU77 -lF90_parallel -L/usr/lib/pa20_64 -lstd -lstream -lCsup -lm -L/opt/aCC/lib/pa20_64 -ldemangle -lcl /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/cflex_64.o&lt;BR /&gt;/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/lm_new_cflex&lt;BR /&gt;_64.o -llmgr_cflex_64 -lcrvs_cflex_64 -lsb_cflex_64 -L/usr/lib/pa20_64 -o nusolver.so&lt;BR /&gt;LPATH=/usr/lib/pa20_64:/opt/langtools/lib/pa20_64&lt;BR /&gt;/usr/ccs/bin/ld -b -o /tmp/nusolver.so_myneni +I__shlTerm -aarchive +vnocompatwarnings acceleration.o ...&lt;OBJECT files="" that="" have="" been="" compiled=""&gt;... zipother.o -L /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/nu_libs -L /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX -lnumerflib_&lt;BR /&gt;HP-UX_64mp -lnumerclib_HP-UX_64mp -lblas_HP-UX_64mp -lblas_HP-UX_64mp -L /opt/fortran90/lib/pa20_64 -lU77 -lF90_parallel -L /usr/lib/pa20_64 -lstd -lstream -lCsup -lm -L /opt/aCC/lib/pa20_64 -ldemangle -lcl /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/cflex_64.o&lt;BR /&gt;/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX/lm_new_cflex&lt;BR /&gt;_64.o -llmgr_cflex_64 -lcrvs_cflex_64 -lsb_cflex_64 -L /usr/lib/pa20_64 &amp;gt;/var/tmp/AAAa17623 2&amp;gt;&amp;amp;1 removing /var/tmp/AAAa17623 nusolver.so done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The following are the compilation flags for the executable (optistruct.exe) that loads the shared object built above:&lt;BR /&gt;&lt;BR /&gt;FORTRAN: /opt/fortran90/bin/f90 +U77 +DA2.0W +DS2.0 -Df90 +O3 +Onoopenmp +source=default +noextend_source&lt;BR /&gt;&lt;BR /&gt;C : cc +DA2.0W +DS2.0 -Dhpf90 -Dhpux +O3&lt;BR /&gt;&lt;BR /&gt;C++ : /opt/aCC/bin/aCC +DA2.0W +DS2.0 -Dhpf90 -Dhpux +O3&lt;BR /&gt;&lt;BR /&gt;LD: : /opt/aCC/bin/aCC +DA2.0W +DS2.0 -Wl,-aarchive,+vnocompatwarnings +O3 -s +Oparallel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;-Sachin&lt;/OBJECT&gt;</description>
      <pubDate>Wed, 08 Mar 2006 18:32:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965655#M101652</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-08T18:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965656#M101653</link>
      <description>Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;Thanks for the legible output. From your last post it looks like you have the wrong library path for linking the "libcl.2" library (that's if I'm reading the aCC compilation correctly).&lt;BR /&gt;&lt;BR /&gt;Under your "Verbose Link output" section the lib path is specified...&lt;BR /&gt;&lt;BR /&gt;"-L/opt/aCC/lib/pa20_64 -ldemangle -lcl"&lt;BR /&gt;&lt;BR /&gt;...which is incorrect since the libcl.sl is found under "/usr/lib/pa20_64". In fact you can search for it as:&lt;BR /&gt;&lt;BR /&gt;# find / -name "libcl.sl" -type f&lt;BR /&gt;&amp;lt;...should show up only in /usr/lib/pa20_64&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Another suggestion would be not to use "-Wl,-aarchive" and let the defaults apply. The default action is to link the shared lib (and if it's not found bind the executable with the archive version). See ld(1) for details.&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Wed, 08 Mar 2006 19:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965656#M101653</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-08T19:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965657#M101654</link>
      <description>You first need to explain what language(s) are in a.exe and what language(s) are in b.so.&lt;BR /&gt;&lt;BR /&gt;It seems that a.exe is C++ and b.so is Fortran?&lt;BR /&gt;If you are doing that, you should link a.exe with libcl.sl.&lt;BR /&gt;&lt;BR /&gt;A similar issue occurs with C and aC++ and we have a nice web explaining what to do:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/7133/distributing.htm" target="_blank"&gt;http://docs.hp.com/en/7133/distributing.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would have expected your first LD_PRELOAD to work, though I would have used .../libcl.2.&lt;BR /&gt;&lt;BR /&gt;Your second attempt, -lcl will not work unless you have the LD_PRELOAD too.&lt;BR /&gt;&lt;BR /&gt;You said you had -Wl,-aarchive, where?&lt;BR /&gt;As Sandman suggests, you should using the default, especially when creating shlibs.&lt;BR /&gt;From your link line of a.exe, that's your problem!  If you insist upon using archives, you must have the system libs as shared.&lt;BR /&gt;You can use -l:libm.a for performance.&lt;BR /&gt;&lt;BR /&gt;Note you seem to be including all of the aC++ libs?  Why don't they appear twice in the aCC -v output?  (Ah, aCC -b.)&lt;BR /&gt;In particular, you should have -ldemangle&lt;BR /&gt;before the default libs.  And there should be no user libs/objects after them.&lt;BR /&gt;cflex_64.o...-lsb_cflex_64&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I don't have ldd on any of my HP-UX systems&lt;BR /&gt;&lt;BR /&gt;You should have /usr/ccs/bin/ldd on your system.  If not, you need a newer linker patch.  (And we really need that ldd or chatr output.)&lt;BR /&gt;&lt;BR /&gt;Also for aCC, you should change +DA2.0W to +DD64.&lt;BR /&gt;&lt;BR /&gt;A comment about Sandman's comment:&lt;BR /&gt;-L/opt/aCC/lib/pa20_64 -ldemangle -lcl"&lt;BR /&gt;...which is incorrect &lt;BR /&gt;&lt;BR /&gt;This isn't incorrect since -L paths are additive and -lcl will be found under the default or previous -L paths.</description>
      <pubDate>Thu, 09 Mar 2006 04:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965657#M101654</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-09T04:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965658#M101655</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;Here are the respnses to your various questions/suggestions:&lt;BR /&gt;&lt;BR /&gt;Language:&lt;BR /&gt;=========&lt;BR /&gt;a.exe: Mixed FORTRAN, C and C++. Linked using aCC.&lt;BR /&gt;b.so: Mixed FORTRAN, C and C++. Linked using aCC.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; aCC -Version&lt;BR /&gt;aCC: HP ANSI C++ B3910B A.03.55&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; f90 +version&lt;BR /&gt;HP F90 v2.5.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LD_PRELOAD:&lt;BR /&gt;==========&lt;BR /&gt;I tried linking a.exe with -Wl,-ashared,-lcl&lt;BR /&gt;Also tried LD_PRELOAD=libcl.2 and LD_PRELOAD=/usr/lib/pa20_64/libcl.sl and LD_PRELOAD=/usr/lib/pa20_64/libcl.2&lt;BR /&gt;&lt;BR /&gt;LDD:&lt;BR /&gt;====&lt;BR /&gt;Thanks for pointing out the location of LDD. Here is the output. &lt;BR /&gt;&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; /usr/ccs/bin/ldd exec/os80d_HP-UX_42_64mp&lt;BR /&gt;        libm.2 =&amp;gt;       /usr/lib/pa20_64/libm.2&lt;BR /&gt;        libpthread.1 =&amp;gt; /usr/lib/pa20_64/libpthread.1&lt;BR /&gt;        libcl.2 =&amp;gt;      /usr/lib/pa20_64/libcl.2&lt;BR /&gt;        libdl.1 =&amp;gt;      /usr/lib/pa20_64/libdl.1&lt;BR /&gt;        libdl.1 =&amp;gt;      /usr/lib/pa20_64/libdl.1&lt;BR /&gt;        /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl =&amp;gt;        /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl&lt;BR /&gt;        libc.2 =&amp;gt;       /usr/lib/pa20_64/libc.2&lt;BR /&gt;        libdl.1 =&amp;gt;      /usr/lib/pa20_64/libdl.1&lt;BR /&gt;&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; /usr/ccs/bin/ldd ~/nusolver/80/HPUX_64/nusolver.so&lt;BR /&gt;        libstd.2 =&amp;gt;     /usr/lib/pa20_64/libstd.2&lt;BR /&gt;        libstream.2 =&amp;gt;  /usr/lib/pa20_64/libstream.2&lt;BR /&gt;        libCsup.2 =&amp;gt;    /usr/lib/pa20_64/libCsup.2&lt;BR /&gt;        libm.2 =&amp;gt;       /usr/lib/pa20_64/libm.2&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt;&lt;BR /&gt;&lt;BR /&gt;I am not sure what we need the OpenGL library for since the application is a command line app. I will need to look into that.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's the CHATR output:&lt;BR /&gt;========================&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; chatr exec/os80d_HP-UX_42_64mp&lt;BR /&gt;exec/os80d_HP-UX_42_64mp:&lt;BR /&gt;         64-bit ELF executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first&lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /opt/aCC/lib/pa20_64:/a/homes/dudee/m/myneni/workarea/p4_mdl/os/os_libs:/a/homes/dudee/m/myneni/workarea/p4_mdl/os/OSLIBS/LIB-HP-UX:/opt/mlib/lib/pa20_64/:/opt/fortran90/lib/pa20_64:/usr/lib/pa20_64:/usr/lib/pa20_64:/opt/langtools/lib/pa20_64&lt;BR /&gt;         shared library list:&lt;BR /&gt;             libm.2&lt;BR /&gt;             libpthread.1&lt;BR /&gt;             libcl.2&lt;BR /&gt;             libdl.1&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred&lt;BR /&gt;         global hash table disabled&lt;BR /&gt;         global hash table size 1103&lt;BR /&gt;         shared library mapped private disabled&lt;BR /&gt;         shared library segment merging disabled&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading disabled&lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 6 text 4000000000000000 z---c-    D (default)&lt;BR /&gt;                 7 data 8000000100000000 ---m--    D (default)&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt;&lt;BR /&gt;&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; chatr ~/nusolver/80/HPUX_64/nusolver.so&lt;BR /&gt;/homes/dudee/myneni/nusolver/80/HPUX_64/nusolver.so:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first&lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/nu_libs:/a/homes/dudee/m/myneni/workarea/p4_mbd/mbd/OSLIBS/LIB-HP-UX:/opt/fortran90/lib/pa20_64:/usr/lib/pa20_64:/opt/aCC/lib/pa20_64:/usr/lib/pa20_64:/opt/langtools/lib/pa20_64&lt;BR /&gt;         shared library list:&lt;BR /&gt;             libstd.2&lt;BR /&gt;             libstream.2&lt;BR /&gt;             libCsup.2&lt;BR /&gt;             libm.2&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 5 text 4000000000000000 z---c-    D (default)&lt;BR /&gt;                 6 data 8000000100000000 ---m--    D (default)&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archive versus Shared:&lt;BR /&gt;======================&lt;BR /&gt;Understood. I tried:&lt;BR /&gt;-Wl,-a,archive,-L/opt/fortran90/lib/pa20_64 -lU77 -lF90_parallel -Wl,-a,shared,-L/usr/lib/pa20_64 -lcl -lpthread -Wl,-a,archive&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;-Sachin</description>
      <pubDate>Thu, 09 Mar 2006 19:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965658#M101655</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-09T19:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965659#M101656</link>
      <description>Sachin,&lt;BR /&gt;&lt;BR /&gt;Reading your posts again, I'm wondering why you are not linking your Fortran executable with the shared library routines provided under "/opt/fortran90/lib/pa20_64". Since your error is coming from the compiled Fortran code and not the C/C++ executable. Suggestion is...&lt;BR /&gt;&lt;BR /&gt;/opt/fortran90/bin/f90 +U77 +DA2.0W +DS2.0 -Df90 +O2 +Z +Onoopenmp +source=default +noextend_source -L/opt/fortran90/lib/pa20_64&lt;BR /&gt;&lt;BR /&gt;hope it helps!</description>
      <pubDate>Thu, 09 Mar 2006 22:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965659#M101656</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-09T22:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965660#M101657</link>
      <description>If you have aC++ code, you should really be compiling and linking with -mt, since you use libpthread.  (Unless you don't use iostreams nor strings.)&lt;BR /&gt;&lt;BR /&gt;You neglected to mention that it now works?&lt;BR /&gt;Or what the new error is.&lt;BR /&gt;&lt;BR /&gt;With libcl.2 there, you shouldn't need LD_PRELOAD.&lt;BR /&gt;&lt;BR /&gt;The OpenGL lib is added by default by dld.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Understood. I tried:&lt;BR /&gt;-Wl,-a,archive,-L/opt/fortran90/lib/pa20_64 -lU77 -lF90_parallel -Wl,-a,shared,-L/usr/lib/pa20_64 -lcl -lpthread -Wl,-a,archive &lt;BR /&gt;&lt;BR /&gt;You can not do this.  You have both shared and archive versions of libs.  Remove the -Wl,-a,archive at the end.  You want system libs as shared.  You can also remove "-L/usr/lib/pa20_64 -lcl"&lt;BR /&gt;&lt;BR /&gt;In fact you should remove all -Wl,-a and use -l:libU77.a -l:libF90_parallel.a.  And possibly add -l:libm.a.</description>
      <pubDate>Thu, 09 Mar 2006 22:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965660#M101657</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-09T22:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965661#M101658</link>
      <description>Sandman,&lt;BR /&gt;&lt;BR /&gt;I do use "/opt/fortran90/lib/pa20_64"&lt;BR /&gt;&lt;BR /&gt;-Sachin</description>
      <pubDate>Fri, 10 Mar 2006 21:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965661#M101658</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-10T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965662#M101659</link>
      <description>Hi Sandman,&lt;BR /&gt;&lt;BR /&gt;I wanted to add to my previous post:&lt;BR /&gt;&lt;BR /&gt;We have been unable to link with f90 because of C and C++ in our source. Since C++ was introduced into our mostly FORTRAN code, we have been linking with aCC.&lt;BR /&gt;&lt;BR /&gt;-Sachin&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2006 21:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965662#M101659</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-10T21:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965663#M101660</link>
      <description>Hello Dennis,&lt;BR /&gt;&lt;BR /&gt;My problem isn't solved yet:( I tried everything suggested (and combinations of everything suggested)&lt;BR /&gt;&lt;BR /&gt;We use +Oparallel with our linker. We found that some parts of the code, when compiled with +Oparallel, were very ineffecient. And since most of the time is spent in a different, solver module, we no longer compile with +Oparallel, but we do use this directive in linking. I do believe we need the +Oparallel to allow multithreading in veclib.&lt;BR /&gt;&lt;BR /&gt;I tried -l:libU77.a format:&lt;BR /&gt;&lt;BR /&gt;/opt/aCC/bin/aCC +DA2.0W +DS2.0 -mt -Wl,-B,immediate,+vnocompatwarnings,+s,+fb //OBJ_LIST// +O3 -s +Oparallel -L/a/homes/dudee/m/myneni/workarea/p4_mdl/os/os_libs -L/a/homes/dudee/m/myneni/workarea/p4_mdl/os/OSLIBS/LIB-HP-UX -losbase_HP-UX_64mp -losinput_HP-UX_64mp -losfea_HP-UX_64mp -lossolver_HP-UX_64mp -losmbd_HP-UX_64mp -loshfs_HP-UX_64mp -losopti_HP-UX_64mp -losresults_HP-UX_64mp -losmbd_HP-UX_64mp -lossensi_HP-UX_64mp -los3rdparty_HP-UX_64mp -losfea_HP-UX_64mp -lossolver_HP-UX_64mp -loshfs_HP-UX_64mp -losopti_HP-UX_64mp -lossensi_HP-UX_64mp -losinput_HP-UX_64mp -lbcslib42_HP-UX_64mp -lmetis400_11 -L/opt/mlib/lib/pa20_64/ -l:libveclib.a -lh3dwriter8_HP-UX_64 -ljpeg_11 -lzlib_11 -lblas_HP-UX_64mp -L/usr/lib/pa20_64 -L/opt/fortran90/lib/pa20_64 /usr/lib/pa20_64/libcps.a -l:libm.a -l:libU77.a -l:libF90_parallel.a -L/usr/lib/pa20_64 -lpthread -o os80d_HP-UX_42_64mp&lt;BR /&gt;os80d_HP-UX_42_64mp done&lt;BR /&gt;&lt;BR /&gt;Here's the LDD output:&lt;BR /&gt;=======================&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; ldd exec/os80d_HP-UX_42_64mp&lt;BR /&gt;        libpthread.1 =&amp;gt; /usr/lib/pa20_64/libpthread.1&lt;BR /&gt;        libstd.2 =&amp;gt;     /usr/lib/pa20_64/libstd.2&lt;BR /&gt;        libstream.2 =&amp;gt;  /usr/lib/pa20_64/libstream.2&lt;BR /&gt;        libCsup.2 =&amp;gt;    /usr/lib/pa20_64/libCsup.2&lt;BR /&gt;        libcps.2 =&amp;gt;     /usr/lib/pa20_64/libcps.2&lt;BR /&gt;        libm.2 =&amp;gt;       /usr/lib/pa20_64/libm.2&lt;BR /&gt;        libcl.2 =&amp;gt;      /usr/lib/pa20_64/libcl.2&lt;BR /&gt;        libc.2 =&amp;gt;       /usr/lib/pa20_64/libc.2&lt;BR /&gt;        libdl.1 =&amp;gt;      /usr/lib/pa20_64/libdl.1&lt;BR /&gt;        libdl.1 =&amp;gt;      /usr/lib/pa20_64/libdl.1&lt;BR /&gt;        libdl.1 =&amp;gt;      /usr/lib/pa20_64/libdl.1&lt;BR /&gt;        /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl =&amp;gt;        /opt/graphics/OpenGL/lib/pa20_64/libogltls.sl&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Strangely libm.a is not statically bound.&lt;BR /&gt;Also note that I have also tried +fb.&lt;BR /&gt;&lt;BR /&gt;Here is the output from my run (same with or without LD_PRELOAD=libcl.sl or any variant thereof):&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt; Number of dependent coordinates  : 6&lt;BR /&gt; Number of independent coordinates: 6&lt;BR /&gt;&lt;BR /&gt; Starting dynamic analysis ...&lt;BR /&gt;&lt;BR /&gt; Time=1.000E-06; H=1.000E-06 [Max Phi=0.000E+00]/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'FTN_DTOI' in load module '/homes/dudee/myneni/nusolver/80/HPUX_64/nusolver.so'.&lt;BR /&gt;sh: 12552 Abort&lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It might seem obvious that I gravitate towards this possibility now;) but is it possible that either dld.sl or ld or both could be the culprits?&lt;BR /&gt;&lt;BR /&gt;What should I look for?&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestions so far. I still hope to get this solved. I need to :0&lt;BR /&gt;&lt;BR /&gt;-Sachin</description>
      <pubDate>Fri, 10 Mar 2006 22:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965663#M101660</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-10T22:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965664#M101661</link>
      <description>&amp;gt;I do believe we need the +Oparallel to allow multithreading in veclib. &lt;BR /&gt;&lt;BR /&gt;You could link with -lpthread -lcps.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I tried -l:libU77.a format:&lt;BR /&gt;&amp;gt; -l:libm.a -l:libU77.a -l:libF90_parallel.a&lt;BR /&gt;&lt;BR /&gt;You should place libm last in this set.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; Here's the LDD output:&lt;BR /&gt;&amp;gt; Strangely libm.a is not statically bound.&lt;BR /&gt;&lt;BR /&gt;There are really two libms.  One for -l:libm.a and one -lm tacked on by aCC.  This probably not a problem.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also note that I have also tried +fb.&lt;BR /&gt;&lt;BR /&gt;Does it work without it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Unsatisfied code symbol 'FTN_DTOI' in load module '/homes/dudee/myneni/nusolver/80/HPUX_64/nusolver.so'. &lt;BR /&gt;&amp;gt; but is it possible that either dld.sl or ld or both could be the culprits?&lt;BR /&gt;&lt;BR /&gt;Perhaps.  This seems strange.  You have libcl in your ldd output.  (At least this explains why LD_PRELOAD doesn't work. ;-)&lt;BR /&gt;What version of dld.sl and libcl.2 do you have?&lt;BR /&gt;&lt;BR /&gt;On my system I have FTN_DTOI there.  Can you do:&lt;BR /&gt;$ elfdump -s -n .dynsym /usr/lib/pa20_64/libcl.sl | fgrep FTN_DTOI&lt;BR /&gt;&lt;BR /&gt;If you see a result, then libcl.2 is fine and the problem might be in dld.sl.&lt;BR /&gt;&lt;BR /&gt;You might also try chatr -Bimmediate on your executable and then rerun.  Perhaps dld isn't printing all of the unsats and we are only looking at the first???&lt;BR /&gt;&lt;BR /&gt;Of course you can just give up and extract FTN_DTOI (fd_dtoi.o) from libcl.a and link nusolver.so with it.  ;-)</description>
      <pubDate>Fri, 10 Mar 2006 23:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965664#M101661</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-10T23:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965665#M101662</link>
      <description>Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;Let's try to simplify things a bit since there is a lot of information and a step-by-step analysis would make things clearer (I hope).&lt;BR /&gt;&lt;BR /&gt;It would help if you supplied the "+vshlibunsats" switch to the aCC compiler in order to figure out unresolved symbols in the libraries themselves. Also make sure that libcl.sl is the last one specified in order to get the link order correct. Currently I'm not seeing that in your compilation command (unless I am not reading the posted output correctly).&lt;BR /&gt;&lt;BR /&gt;Please post the output of the compilation with the above modifications and report errors if any.&lt;BR /&gt;&lt;BR /&gt;thanks!</description>
      <pubDate>Sat, 11 Mar 2006 15:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965665#M101662</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-11T15:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965666#M101663</link>
      <description>Hi Sandman,&lt;BR /&gt;&lt;BR /&gt;My aCC does not seem to recognize this option (+vshlibunsats)&lt;BR /&gt;&lt;BR /&gt;myneni@hp77 p4_mdl/os &amp;gt; aCC -V&lt;BR /&gt;aCC: HP ANSI C++ B3910B A.03.55&lt;BR /&gt;&lt;BR /&gt;I agree that we should take thi step-by-step. I would like to follow one path (your's, Dennis's ...doesn't matter) till I reach a conclusion. And if that doesn't work start over again on another path.&lt;BR /&gt;&lt;BR /&gt;There are some constraints though. Example: I cannot easily upgrade the compilers on my build system. That's out of my control. I could try getting our systems guys to upgrade other run-time libraries on the target machines though. But that itself might take some coaxing:(&lt;BR /&gt;&lt;BR /&gt;So where do you suggest we begin?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;-Sachin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Mar 2006 16:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965666#M101663</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-12T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: LD_PRELOAD and  libcl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965667#M101664</link>
      <description>&amp;gt;&amp;gt; I tried -l:libU77.a format:&lt;BR /&gt;&amp;gt;&amp;gt; -l:libm.a -l:libU77.a -l:libF90_parallel.a&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You should place libm last in this set.&lt;BR /&gt;&lt;BR /&gt;Done.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Also note that I have also tried +fb.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Does it work without it?&lt;BR /&gt;&lt;BR /&gt;No.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Unsatisfied code symbol 'FTN_DTOI' in load module '/homes/dudee/myneni/nusolver/80/HPUX_64/nusolver.so'.&lt;BR /&gt;&amp;gt;&amp;gt; but is it possible that either dld.sl or ld or both could be the culprits?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Perhaps. This seems strange. You have libcl in your ldd output. (At least this explains why LD_PRELOAD doesn't work. ;-)&lt;BR /&gt;&amp;gt;What version of dld.sl and libcl.2 do you have?&lt;BR /&gt;&lt;BR /&gt;How do I find that?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;On my system I have FTN_DTOI there. Can you do:&lt;BR /&gt;&amp;gt;$ elfdump -s -n .dynsym /usr/lib/pa20_64/libcl.sl | fgrep FTN_DTOI&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If you see a result, then libcl.2 is fine and the problem might be in dld.sl.&lt;BR /&gt;&lt;BR /&gt;On the target machine:&lt;BR /&gt;&lt;BR /&gt;myneni@hp76 BOM_opti/os-mbd-fem &amp;gt; elfdump -s -n .dynsym /usr/lib/pa20_64/libcl.sl | fgrep FTN_DTOI&lt;BR /&gt;170    FUNC GLOB 0     0xf        0x800000000003ea90 0      FTN_DTOI&lt;BR /&gt;&lt;BR /&gt;On the build machine:&lt;BR /&gt;myneni@hp77 dudee/myneni &amp;gt; elfdump -s -n .dynsym /usr/lib/pa20_64/libcl.sl | fgrep FTN_DTOI&lt;BR /&gt;170    FUNC GLOB 0     0xf        0x800000000003ea90 0      FTN_DTOI&lt;BR /&gt;&lt;BR /&gt;So libcl.sl seems to be fine. How do I check dld.sl?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You might also try chatr -Bimmediate on your executable and then rerun. Perhaps dld isn't printing all of the unsats and we are only looking at the first???&lt;BR /&gt;&lt;BR /&gt;Doen't work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Of course you can just give up and extract FTN_DTOI (fd_dtoi.o) from libcl.a and link nusolver.so with it. ;-)&lt;BR /&gt;&lt;BR /&gt;:) I really hope not to have to do that&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;-Sachin</description>
      <pubDate>Sun, 12 Mar 2006 18:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ld-preload-and-libcl-sl/m-p/4965667#M101664</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2006-03-12T18:50:04Z</dc:date>
    </item>
  </channel>
</rss>

