Thanks for the detailed info.

You can also try editing the generated Makefile and change all
PERL_DL_NONLAZY=1 to PERL_DL_NONLAZY=0

Tim.

On Fri, Jul 06, 2001 at 02:54:15PM +0200, Wesley STROOP wrote:
> Well, I m almost there.
> 
> I finished the previous manual, but now I 'm getting the following
> error when I run
> 'make test' (DBD::Oracle-1.06).
> 
> error:
> 
>     /usr/lib/dld.sl: Unresolved symbol: LhtStrCreate (code)  from 
>     /u05/app/oracle/product/8.1.6/lib/libwtc8.sl
>     /usr/lib/dld.sl: Unresolved symbol: LhtStrInsert (code)  from 
>     /u05/app/oracle/product/8.1.6/lib/libwtc8.sl
>     Can't load library 
> 
> Next Solution: 
> *************************************************************************************
>   Problem Description
>   -------------------
> 
>   You are using the demo_rdbms.mk (oracle provided) make file to
> create a
>   shared library using the macros extproc_with_context or
> extproc_callback,
>   as show below: 
> 
>        make -f extproc_callback SHARED_LIBNAME=xxx.sl OBJS=xxx.o
> 
>   After creating the shared library, you receive errors similar to the
>   following when trying to load it in the main application:
> 
>     /usr/lib/dld.sl: Unresolved symbol: LhtStrCreate (code)  from 
>     /u05/app/oracle/product/8.1.6/lib/libwtc8.sl
>     /usr/lib/dld.sl: Unresolved symbol: LhtStrInsert (code)  from 
>     /u05/app/oracle/product/8.1.6/lib/libwtc8.sl
>     Can't load library 
> 
>   Generally, you receive these errors when working on HP.
> 
> 
>   Solution Description
>   --------------------
> 
>   There are three possible solutions to correct this problem:
> 
>   1. If you are loading the shared library on HP using a statement
> similar
>      to:
> 
>        shl_load("xxx.sl",BIND_IMMEDIATE | BIND_VERBOSE | DYNAMIC_PATH,
> 0);
> 
>      use BIND_DEFFERED instead of BIND_IMMEDIATE.
> 
> 
>      Explanation:
> 
>      Using the BIND_DEFFERED flag instead of BIND_IMMEDIATE allows
> resolution 
>      of symbols when they actually get referenced, instead of when the
> library 
>      gets loaded.
> 
>      If you are using OCI calls in the library, then these calls never
> use 
>      symbols similar to LhtStrCreate or LhtStrInsert, and hence the
> problem
>      is resolved.  
> 
>   2. If you cannot use BIND_DEFFERED, then define the following macro
> in 
>      demo_rdbms.mk:
> 
>        build_sl: $(LIBCLNTSH) $(OBJS)
>                  echo $(LIBEXTP)
>                  $(LD) $(SHARED_LDFLAG) $(SHARED_LIBNAME) $(OBJS)
> $(OCISHAREDLIBS) \
>                  -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl
> $(LIBEXTP) \
>                  $(LIBCLNTSH) -l:libagtsh.sl
> $(ORACLE_HOME)/rdbms/lib/homts.o
> 
>      Then, make the shared library as follows:
> 
>          make -f demo_rdbms.mk build_sl SHARED_LIBNAME=xxx.sl
> OBJS=xxx.o
>    
>      Explanation:
> 
>      The target 'extproc_callback' used to create the shared library
> is not 
>      sufficient itself.  It is provided to build an extproc shared
> library 
>      which then gets loaded by the 'extproc' executable which has been
> linked 
>      with 'libagtsh.sl'.  So, to resolve the undefined symbol, you
> need to use 
>      the new target 'build_sl' which provides a link to libagtsh.sl
> and also 
>      with $(ORACLE_HOME)/rdbms/lib/homts.o.
> 
>   3. The additional linking of two libraries is only required for the
> HP platform
>      due to different behavior of the HP linker.  Therefore, if you do
> not want
>      to link with these two libraries to be consistent on all the
> platforms in
>      the Oracle provided makefile or in your own makefile, then follow
> the steps 
>      below to recreate libclntsh: 
> 
>      a.  Edit the file '$ORACLE_HOME/rdbms/admin/shrept.lst'.
>      b.  Locate the line containing:  rdbms : lmxsrt.
>      c. Add the following 2 lines under above line:
>            rdbms : LhtStrCreate
>            rdbms : LhtStrInsert
>      d. Rebuild libclntsh (use the original genclntsh script)
>          To be safe relink all products (rdbms, sqlplus, network etc.)
> afterwards.
> 
>      Note: Build_sl in demo_rdbms.mk needs to be changed to:
> 
>      build_sl: $(LIBCLNTSH) $(OBJS)
>              $(LD) $(SHARED_LDFLAG) $(SHARED_LIBNAME) $(OBJS) \
>              -l:libclntsh.sl \
>              -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl  \
>              $(OCISHAREDLIBS)
> 
> 
>   Reference
>   ---------
> 
>   [BUG:1189459]  NOT ABLE TO USE DEMO_RDBMS.MK TO CREATE SHARED
> LIBRARY FOR 
>                  OCI APPLICATION

Reply via email to