[omniORB] HPUX issue: makefile that produce libCOSDynamic4.sl

FredP frederic.prin at silvaco.com
Tue Nov 25 15:52:32 GMT 2003


Hi all and Duncan,

I'm facing a pb while distributing omniORB 4.0.1 for HPUX.

When linking my programs (that use libCOSDynamic4.sl lib) I have the
following error:
Linking C++ program TestClient ...
/usr/ccs/bin/ld: Can't open
/tmp_mnt/home/manishp/pkgs/omniORB/omniORB-4.0.1-hp700-hpux901/src/services/
mklib/shared/libCOS4.sl.0
/usr/ccs/bin/ld: No such file or directory

in fact the program TestClient do not link with libCOS4.sl but with
libCOSDynamic4.sl that needs libCOS4.sl.0 as shown by the chatr command:
 chatr libCOSDynamic4.sl
libCOSDynamic4.sl:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     enabled   first
             embedded path  disabled  second Not Defined
         internal name:
             libCOSDynamic4.sl.0
         shared library list:
             static
/tmp_mnt/home/manishp/pkgs/omniORB/omniORB-4.0.1-hp700-hpux901/src/services/
mklib/shared/libCOS4.sl.0
             dynamic   ../../../lib/libomniORB4.sl.0
             dynamic   ../../../lib/libomniDynamic4.sl.0
             dynamic   ../../../lib/libomnithread.sl.3

of course libCOS4.sl.0 exist in a directory pointed by SHLIB_PATH!
but it seems that the way libCOSDynamic4.sl links libCOS4.sl.0 is a bit
hard!

All the libs (exepted libCOS4.sl.0) are well resolved by ldd:
ldd libCOSDynamic4.sl
        ../../../lib/libomnithread.sl.3 =>
/main/frlocal/programs/omniORB-4.0.1/hp700-hpux901/lib/libomnithread.sl.3
        ../../../lib/libomniDynamic4.sl.0 =>
/main/frlocal/programs/omniORB-4.0.1/hp700-hpux901/lib/libomniDynamic4.sl.0
        ../../../../lib/libomnithread.sl.3 =>
/main/frlocal/programs/omniORB-4.0.1/hp700-hpux901/lib/libomnithread.sl.3
        ../../../../lib/libomniORB4.sl.0 =>
/main/frlocal/programs/omniORB-4.0.1/hp700-hpux901/lib/libomniORB4.sl.0
        ../../../../lib/libomnithread.sl.3 =>
/main/frlocal/programs/omniORB-4.0.1/hp700-hpux901/lib/libomnithread.sl.3
        ../../../lib/libomniORB4.sl.0 =>
/main/frlocal/programs/omniORB-4.0.1/hp700-hpux901/lib/libomniORB4.sl.0
/usr/lib/dld.sl: Can't open shared library:
/tmp_mnt/home/manishp/pkgs/omniORB/omniORB-4.0.1-hp700-hpux901/src/services/
mklib/shared/libCOS4.sl.0
/usr/lib/dld.sl: No such file or directory

The absolute path /tmp_mnt/home/manishp/pkgs/omniORB.. is an old path that
was used to compile omniORB 4.0.1 but of course do not exist on all our
customer HP machine !!!
Note that this pb is only for HPUX.

First of all, thanks for reading right here ;-)
My question are
1) Why the link type (static) to libCOS4.sl.0 is not the same as other libs
(dynamic)
2) Where can I find the makefile that generates libCOSDynamic4.sl and
libAttNotificationDynamic4.sl (that has the same pb)
3) Is libCOSDynamic4.sl.0 part of omniORB or omniNotify ??

Thanks for your response.

This is the link command line:
/opt/aCC/bin/aCC
inst_implicit_include -g -DDEBUG  -L/home/fredp/cvs/build_net/lib/pa2.0-HP-U
X-B.11.00/debug -L/home/fredp/cvs/build_net/lib/pa2.0-HP-UX-B.11.00/optimize
 -L/usr/lib/Motif2.1 -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -LB.11.00/lib
/hp700-hpux901 -L/opt/experimental/lib/pa2.0-HP-UX-B.11.00/debug -L/opt/expe
rimental/lib/pa2.0-HP-UX-B.11.00/optimize -Wl,+FPD -I/home/fredp/cvs/libs/Si
pc/.ui -I/site/local/programs/omniORB-4.0.1/hp700-hpux901/include -I/home/fr
edp/cvs/build_net/objects/pa2.0-HP-UX-B.11.00/debug/libs/Sipc/include -I/hom
e/fredp/cvs/libs/Sipc -I/home/fredp/cvs/build_net/include/Sipc_0_1_1_A -I/op
t/experimental/include/omniORB_4_0_1_R -I/opt/experimental/include/omniORB4_
4_0_1_R -I/opt/experimental/include/omnithread_4_0_1_R -I/opt/experimental/i
nclude/omniDynamic4_4_0_1_R -I/opt/experimental/include/DW_Version_2_0_0_R -
I/usr/include/Motif2.1 -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -IB
.11.00/include/hp700-hpux901 -DBOOL_IS_A_RESERVED_WORD -DANSI_CXX -DHP700 -D
HPUX=11 -DHPUX11 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__hppa__ -D__h
pux__ -D__OSVERSION__=11  -DDWM_THREADS -DQT_THREAD_SUPPORT -DQT_NODLL -DBIT
S_IN_POINTER=32  -mt -AA +DA1.1 -D_RWSTD_MULTI_THREAD -Wl,-E -Wl,+s  -o
/home/fredp/cvs/build_net/objects/pa2.0-HP-UX-B.11.00/debug/libs/Sipc/TestCl
ient.exe \
        test_client.o include/TestInterface.o

libSipc.a -L/site/local/programs/omniNotify-2.0.0/hp700-hpux901/lib -lCOSNot
ify4 -L/site/local/programs/omniORB-4.0.1/hp700-hpux901/lib -lCOSDynamic4 -l
COS4 -L/site/local/programs/omniORB-4.0.1/hp700-hpux901/lib -lomniORB4_4_0_1
_R -lomnithread_4_0_1_R -lomniDynamic4_4_0_1_R -lrt -lpthread -lnsl -lnsl_s 
-lisamstub


Frederic Prin
Silvaco G.RE.CE




More information about the omniORB-list mailing list