<?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: Unresolved Symbol:cout__3std (data) while loading shared library in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628885#M103149</link>
    <description>Pleast post this output:&lt;BR /&gt;&lt;BR /&gt;echo $SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;echo $PATH&lt;BR /&gt;&lt;BR /&gt;Make sure $PATH and $SHLIB path include the path of the binaries and the path mentioned in the aforeposted error message.&lt;BR /&gt;&lt;BR /&gt;Also insure that the binaries were compiled on HP-UX and if not, what compiler was used to compile them. You may need to install another compile.&lt;BR /&gt;&lt;BR /&gt;If the software was ported from Linux gcc or gcc+ may be needed, but they are GPL/open source and available in depot format.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 19 Sep 2005 08:49:57 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2005-09-19T08:49:57Z</dc:date>
    <item>
      <title>Unresolved Symbol:cout__3std (data) while loading shared library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628884#M103148</link>
      <description>All,&lt;BR /&gt;    We have a Third Party directory server which allows to load customized plugins .sl files at runtime. When I try to load locally compiled(HP aC++ B3910B A.03.39) shared library(libReader.sl) it throws following error:&lt;BR /&gt;aCC runtime: Error 215 from shl_findsym(/usr/local/lib/libLog.sl,_shlInit)&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: cout__3std (data)  from /usr/local/lib/libLog.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: _C_ivals__Q2_4__rw18__rw_numpunct_implXTc_ (data)  from /usr/local/lib/libLog.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __rw_std_streams__3std (data)  from /usr/local/lib/libLog.sl&lt;BR /&gt;&lt;BR /&gt;    Output of file command on Thirparty server gives following:&lt;BR /&gt;    PA-RISC1.1 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;O/P of file command on shared library libReader.sl and libLog.sl:&lt;BR /&gt;     PA-RISC1.1 shared library -not stripped&lt;BR /&gt;&lt;BR /&gt;ldd on all the executables &amp;amp; shared libraries doesn't throws any errors. &lt;BR /&gt;&lt;BR /&gt;Is this something to do with mismatched version of compiler used by Third party server and locally compiled shared libary?&lt;BR /&gt;If so, how do i get around this problem?&lt;BR /&gt;&lt;BR /&gt;Do let me known if you guys have faced such issues before.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dattesh Lotlikar</description>
      <pubDate>Mon, 19 Sep 2005 06:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628884#M103148</guid>
      <dc:creator>Dattesh Lotlikar</dc:creator>
      <dc:date>2005-09-19T06:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol:cout__3std (data) while loading shared library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628885#M103149</link>
      <description>Pleast post this output:&lt;BR /&gt;&lt;BR /&gt;echo $SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;echo $PATH&lt;BR /&gt;&lt;BR /&gt;Make sure $PATH and $SHLIB path include the path of the binaries and the path mentioned in the aforeposted error message.&lt;BR /&gt;&lt;BR /&gt;Also insure that the binaries were compiled on HP-UX and if not, what compiler was used to compile them. You may need to install another compile.&lt;BR /&gt;&lt;BR /&gt;If the software was ported from Linux gcc or gcc+ may be needed, but they are GPL/open source and available in depot format.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 Sep 2005 08:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628885#M103149</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-19T08:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol:cout__3std (data) while loading shared library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628886#M103150</link>
      <description>Steven,&lt;BR /&gt;      Thanks for your quick response.&lt;BR /&gt;&lt;BR /&gt;      The first point you have made of setting SHLIB_PATH and PATH has already been done, however it did not solve the issue. &lt;BR /&gt;&lt;BR /&gt;Here is the output of SHLIB_PATH and PATH variables:&lt;BR /&gt;&lt;BR /&gt;PATH:&lt;BR /&gt;/usr/local/directory/server:/oracle/OraHome1/bin:/opt/aCC/bin:/usr/bin:/usr/lib:/usr/local/bin:/usr/ccs/bin:/usr/local/tmake/bin:/opt/java1.3/bin:/usr/ccs/bin:/usr/bin:/opt/ansic/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/mx/bin:/opt/resmon/bin:/opt/scr/bin:/opt/ignite/bin:/opt/perl/bin:/opt/graphics/common/bin:/usr/sbin/diag/contrib:/opt/perf/bin:/usr/sbin:/opt/langtools/bin:/opt/aCC/bin:/opt/imake/bin:/opt/gnome/bin:/opt/prospect/bin:/usr/local/directory/server:/usr/local/directory/LDAPPlugin:/usr/local/icu/lib&lt;BR /&gt;&lt;BR /&gt;SHLIB_PATH:&lt;BR /&gt;/usr/local/directory/server:/usr/local/directory/LDAPPlugin:/usr/local/lib:/usr/lib:/usr/local/icu/lib&lt;BR /&gt;&lt;BR /&gt;The Library libReader.sl is located in /usr/local/directory/LDAPPlugin directory. While the directory server binary(dirserver) alongwith all its dependent user-defined libraries are located in /usr/local/directory/server&lt;BR /&gt;&lt;BR /&gt;Inorder to make sure that dirserver uses the libraries from SHLIB_PATH, I have enabled the shared dynamic path search using following command:&lt;BR /&gt;chatr +s enable /usr/local/directory/server/dirserver&lt;BR /&gt;&lt;BR /&gt;Part O/P of the above command confirms this:&lt;BR /&gt;.....&lt;BR /&gt;   new values:&lt;BR /&gt;         shared executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     enabled   second&lt;BR /&gt;             embedded path  disabled  first  Not Defined&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;Do let me known if you require the complete O/P of above command.&lt;BR /&gt;&lt;BR /&gt;I have also ran the same command on other supporting shared libraries in /usr/local/directory/server and /usr/local/directory/LDAPPlugin directories, just to make sure they are not dependent on other libraries. &lt;BR /&gt;&lt;BR /&gt;Coming to your second point, I ran file and odump commands on both dirserver and shared libraries found in LDAPPlugin. From the output it looks like dirserver source files were compiled using aC++ B3910B A.03.45 while libReader.sl was compiled using the current system compiler aC++ B3910B A.03.39.&lt;BR /&gt;&lt;BR /&gt;$odump -c dirserver&lt;BR /&gt;Compilation Unit Dictionary from pmserver:&lt;BR /&gt;&lt;BR /&gt;Index Chunk     Language                                    Name&lt;BR /&gt;        Product_id ; Version_id&lt;BR /&gt;        Compile time ; Source time&lt;BR /&gt;&lt;BR /&gt;   0   0  PA-RISC 2.0 Assembler                              crt0.o&lt;BR /&gt;&lt;BR /&gt;          HP92453-03; UX.11.01.16&lt;BR /&gt;          Compile Time: Fri Apr 05 2002 11:24:54.000000000 IST&lt;BR /&gt;          Source  Time: Fri Apr 05 2002 11:24:55.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   1   0  HPC                                                ../mapdld.c&lt;BR /&gt;/CLO/Components/LINKER/Src/csu/CRT_RELEASE&lt;BR /&gt;ccom options =  -ESlit -DA1.1 -DS1.1 -Oq02,al,ag,cn,Lm,sz,Ic,vo,lc,Mf,Po,es,rs,sp,in,vc,Pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,P&lt;BR /&gt;g,ug,Lu,lb,uj,dp,Fs,bp,wp,Ex,mp,rp,ap,dn,Sg,pt,kt,Em,pc,np! +k -Ae&lt;BR /&gt;&lt;BR /&gt;          HP92453-01  ; B111104&lt;BR /&gt;          Compile Time: Fri Apr 04 2003 10:41:41.000000000 IST&lt;BR /&gt;          Source  Time: Thu Jan 23 2003 15:47:33.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   2   0  PA-RISC 2.0 Assembler                              &lt;STDIN&gt;&lt;BR /&gt;&lt;BR /&gt;          HP92453-03; UX.11.01.16&lt;BR /&gt;          Compile Time: Wed Feb 05 2003 14:03:12.000000000 IST&lt;BR /&gt;          Source  Time: None&lt;BR /&gt;&lt;BR /&gt;   3   0  HPC                                                ../maptsd.c&lt;BR /&gt;/CLO/Components/LINKER/Src/csu/CRT_RELEASE&lt;BR /&gt;ccom options =  -ESlit -DA1.1 -DS1.1 -Oq02,al,ag,cn,Lm,sz,Ic,vo,lc,Mf,Po,es,rs,sp,in,vc,Pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,P&lt;BR /&gt;g,ug,Lu,lb,uj,dp,Fs,bp,wp,Ex,mp,rp,ap,dn,Sg,pt,kt,Em,pc,np! +k -Ae&lt;BR /&gt;&lt;BR /&gt;          HP92453-01  ; B111104&lt;BR /&gt;          Compile Time: Fri Apr 04 2003 10:41:43.000000000 IST&lt;BR /&gt;          Source  Time: Thu Jan 23 2003 15:47:35.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   4   0  PA-RISC 2.0 Assembler                              set_tp&lt;BR /&gt;&lt;BR /&gt;          HP92453-03; UX.11.01.16&lt;BR /&gt;          Compile Time: Sat Mar 23 2002 12:12:32.000000000 IST&lt;BR /&gt;          Source  Time: Sat Oct 04 1997 08:32:46.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   5   0  PA-RISC 2.0 Assembler                              cpprt0&lt;BR /&gt;&lt;BR /&gt;          HP92453-03; UX.11.01.14&lt;BR /&gt;          Compile Time: Thu Jun 06 2002 02:47:49.000000000 IST&lt;BR /&gt;          Source  Time: Thu Jun 06 2002 02:47:49.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   6   0  ANSI C++                                           assignmenttask.cpp&lt;BR /&gt;/export/home/build65/pm711n/server/lm&lt;BR /&gt;ctcom options = -diaga 400 -diags 392 -diags 302 -architecture portable -diag anachronisms,suggestions,warnings,futureerrors&lt;BR /&gt;-inst compiletime -diags 523 -inline_power 2 -longbranch 0 -unique_strings on -o assignmenttask.o -cachesize 256 -ansi_for_sc&lt;BR /&gt;ope on -plusooption -Oq02,al,ag,cn,Lm,sz,Ic,vo,lc,Mf,Po,es,rs,sp,in,vc,Pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,Lu,lb,uj,dp,&lt;BR /&gt;Fs,bp,wp,cl,Ex,mp,rp,ap,dn,Sg,pt,kt,Em,pc,np!&lt;BR /&gt;&lt;BR /&gt;          B3910B      ; A.03.45&lt;BR /&gt;          Compile Time: Thu Aug 12 2004 07:42:34.000000000 IST&lt;BR /&gt;          Source  Time: Thu Feb 05 2004 09:33:39.000000000 IST&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;$odump -c libReader.sl&lt;BR /&gt;Compilation Unit Dictionary from libReader.sl:&lt;BR /&gt;&lt;BR /&gt;Index Chunk     Language                                    Name&lt;BR /&gt;        Product_id ; Version_id&lt;BR /&gt;        Compile time ; Source time&lt;BR /&gt;&lt;BR /&gt;   0   0  PA-RISC 2.0 Assembler                              cppshl0&lt;BR /&gt;&lt;BR /&gt;          HP92453-03; UX.11.01.14&lt;BR /&gt;          Compile Time: Thu Jun 06 2002 02:47:46.000000000 IST&lt;BR /&gt;          Source  Time: Thu Jun 06 2002 02:47:47.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   1   0  ANSI C++                                           shlInit.C&lt;BR /&gt;/CLO/Components/HPCXX/Src/SupportLib&lt;BR /&gt;ctcom options = -architecture 1.1 -scheduler 2.0 -piccode long -inst compiletime -diags 523 -inline_power 2 -longbranch 0 -un&lt;BR /&gt;ique_strings on -o obj/shlInit.o -cachesize 256 -plusooption -Oq02,al,ag,cn,lM,sz,IC,vo,lc,Mf,Po,es,rs,sp,in,vc,Pi,fa,pe,Rr,F&lt;BR /&gt;l,pv,pa,nf,cp,lx,st,ap,Pg,ug,Lu,lb,uj,dp,Fs,bp,wp,Ex,mp,rp,ap,dn,Sg,pt,kt,Em,pc,np!&lt;BR /&gt;&lt;BR /&gt;          B3910B      ; X.03.30.&lt;BR /&gt;          Compile Time: Thu Jun 06 2002 02:47:47.000000000 IST&lt;BR /&gt;          Source  Time: Fri Jul 12 1996 05:19:09.000000000 IST&lt;BR /&gt;&lt;BR /&gt;   2   0  ANSI C++                                           DSQ.cpp&lt;BR /&gt;/home/Informatica/LDAPPlugin/LDAPReader&lt;BR /&gt;ctcom options = -architecture portable -diag off -piccode long -inst compiletime -diags 523 -test namespaces -koenig_lookup o&lt;BR /&gt;n -ansi_for_scope on -inline_power 2 -longbranch 0 -unique_strings on -o DSQ.o -cachesize 256 -debug debugG1 -plusooption -Oq&lt;BR /&gt;02,al,ag,cn,Lm,sz,Ic,vo,lc,Mf,Po,es,rs,sp,in,vc,Pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,Lu,lb,uj,dp,Fs,bp,wp,Ex,mp,rp,ap,dn&lt;BR /&gt;,Sg,pt,kt,Em,pc,np! -driver_command="/opt/aCC/bin/aCC -v -mt -w +DA portable -A A +Z -D volatile= -l pthread -z -g +O 2 -D UN&lt;BR /&gt;IX -D HP_UX -D VDADER_RULES -D SNACCDLL_NONE -D SNACC_DEEP_COPY -mt -D _strcmpi=strcasecmp -D DO_TRACING -D PC71 -D NDEBUG -I&lt;BR /&gt; include -I /usr/local/include -I /usr/local/directory/include -I /usr/local/directory/LDAPPlugin/include -c "&lt;BR /&gt;&lt;BR /&gt;          B3910B      ; A.03.39&lt;BR /&gt;          Compile Time: Mon Sep 19 2005 10:33:42.000000000 IST&lt;BR /&gt;          Source  Time: Fri Jun 03 2005 04:28:06.000000000 IST&lt;BR /&gt;...........&lt;BR /&gt;...........&lt;BR /&gt;&lt;BR /&gt;From the above output it looks like there is difference in compiler versions, can this be the reason for all unresolved symbols. Anyway i'm applying A.03.45 aC++ patch. &lt;BR /&gt;&lt;BR /&gt;Can you make any other obeservations based on the above outputs.&lt;BR /&gt;&lt;BR /&gt;About your third point, both the pieces of software were build on HP-UX.&lt;BR /&gt;Infact the second piece, the libReader.sl is getting ported to HP-UX from Solaris, i'm refering to the standard document found at HP site: &lt;A href="http://h30097.www3.hp.com/docs/STKS/SOLARIS.HTM" target="_blank"&gt;http://h30097.www3.hp.com/docs/STKS/SOLARIS.HTM&lt;/A&gt; for achiving this.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dattesh Lotlikar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIN&gt;</description>
      <pubDate>Tue, 20 Sep 2005 02:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628886#M103150</guid>
      <dc:creator>Dattesh Lotlikar</dc:creator>
      <dc:date>2005-09-20T02:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol:cout__3std (data) while loading shared library</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628887#M103151</link>
      <description>the _shlinit has been removed from the newer libraries and when we try to compile 32 bit programs, we need to link to libstd.sl for the _shlinit call. the rest shall fall in place after this linking is done (HOPE they do so)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Banu</description>
      <pubDate>Mon, 19 Dec 2005 16:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unresolved-symbol-cout-3std-data-while-loading-shared-library/m-p/3628887#M103151</guid>
      <dc:creator>cing2006</dc:creator>
      <dc:date>2005-12-19T16:27:32Z</dc:date>
    </item>
  </channel>
</rss>

