Operating System - HP-UX
1825811 Members
2524 Online
109688 Solutions
New Discussion

Re: CATIA and /usr/lib/dld.sl error

 
Lutz_4
Advisor

CATIA and /usr/lib/dld.sl error

Hello,

I got this error when some specific function is used under CATIA V4 :
/usr/lib/dld.sl : BAD Magic Number for shared library /cfg_catia/psa/gii/steplib/AUTO2D
/usr/lib/dld.sl Exec format error

Can somebody help ?

thx

Mathieu
21 REPLIES 21
Steven E. Protter
Exalted Contributor

Re: CATIA and /usr/lib/dld.sl error

Please post this output:

echo $SHLIB_PATH

Make sure /usr/lib is part of said path.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

It is common error that you have to SHARED LIBRARY PATH with SHLIB_PATH variable. Set as,

# export SHLIB_PATH=/usr/lib
# Run it now

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

# export SHLIB_PATH=$SHLIB_PATH:/usr/lib

then, try running your application. It will preserve existing SHLIB_PATH and add /usr/lib into it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Lutz_4
Advisor

Re: CATIA and /usr/lib/dld.sl error

here is my $SHLIB_PATH :
/usr/lib:/lib:/usr/cat424r1/adm/code/steplib/HP-UX:/usr/cat424r1/adm/code/steplib:/usr/cat424r1/cfg/code/steplib:/usr/cat424r1/cfg/code/steplib/ckeprog:
As you can see /usr/lib is inside
VEL_1
Valued Contributor

Re: CATIA and /usr/lib/dld.sl error

Hi,

It may be ht eproblem with 32 & 64 bit library.

Check your application & dependent library with only 32 bit or 64 bit using file command.
Arunvijai_4
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Can you post these information,
# ldd
# chatr
# file

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

I think the problem is with build header of caria application. It is miss-matching with file type of dld.sl library.

check the file type and related information as,

# file
# ldd /cfg_catia/psa/gii/steplib/AUTO2D
# what /cfg_catia/psa/gii/steplib/AUTO2D

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Check also with odump (if your machine is PA-RISC see with model command)

# odump /cfg_catia/psa/gii/steplib/AUTO2D | grep magic

# odump /usr/lib/dld.sl | grep magic

compare both.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Muthukumar, If it is a problem with build header as you specified, application wouldn't get compiled. It seems to be 32-64 bit issue. Lets wait for the result of my previous post.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Lutz_4
Advisor

Re: CATIA and /usr/lib/dld.sl error

ldd /cfg_catia/psa/gii/steplib/AUTO2D gives me the following error :
ldd: Invalid file type: "/cfg_catia/psa/gii/steplib/AUTO2D". Shared executable or shared library expected

file : /cfg_catia/psa/gii/steplib/AUTO2D: data

what :
/cfg_catia/psa/gii/steplib/AUTO2D:
00 1.3 src/bos/usr/ccs/lib/libm/__set_errno128.c, libm, bos430, 9737A_430 7/17/96 17:46:14
51 1.3 src/bos/usr/ccs/lib/libm/POWER/sqrt_raise_xcp.c, libm, bos430, 9737A_430 3/10/97 22:40:58
69 1.3 src/bos/usr/ccs/lib/libm/POWER/cosF.c, libm, bos430, 9737A_430 6/15/90 17:57:16
73 1.3 src/bos/usr/ccs/lib/libm/POWER/sinF.c, libm, bos430, 9737A_430 6/15/90 17:58:35
68 1.3 src/bos/usr/ccs/lib/libm/POWER/atanF.c, libm, bos430, 9737A_430 6/15/90 17:57:05
67 1.3 src/bos/usr/ccs/lib/libm/POWER/asinF.c, libm, bos430, 9737A_430 6/15/90 17:56:52
66 1.2 src/bos/usr/ccs/lib/libm/POWER/acosF.c, libm, bos430, 9737A_430 6/15/90 17:56:44
V. Nyga
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Hi,

which is you current 'ld and linker tools cumulative patch'?
Do a:
swlist -l patch|grep ld

Volkmar
*** Say 'Thanks' with Kudos ***
Arunvijai_4
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Can you post your # chatr /cfg_catia/psa/gii/steplib/AUTO2D ??

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Arun,

look at error information's. It may be related with headers which linked with catia library. I hope enquiring input from thread starter will not be a problem. It will give more diamensions to resolve it. Feel it out.

Lutz,

I think the problem is with catia build type. Revert with odump library

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Check this catia keyword:

http://www.hp.com/workstations/segments/mcad/dassault/plmcc/unix_tuning.html

You have to change file attribute with chatr command.

hth.

Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Muthukumar,

ldd /cfg_catia/psa/gii/steplib/AUTO2D gives me the following error :
ldd: Invalid file type: "/cfg_catia/psa/gii/steplib/AUTO2D". Shared executable or shared library expected

file : /cfg_catia/psa/gii/steplib/AUTO2D: data

it doesn't show any information regarding header files as you said. Anyways, I suspect there could be some problem with Linking at the time of compilation, see this,
file : /cfg_catia/psa/gii/steplib/AUTO2D: data

it should be either executable or shared library. But, all we got is data.

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
V. Nyga
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Hi again,

also from Muthukumar's link, first of all check the section about dld.sl:

Execute what /usr/lib/dld.sl to get the version of the dld.
(from above -> make sure that the level of the dld installed on your HP-UX 11.xx system is lower than or equal to 11.13, or higher than or equal to 11.28)

The PHSS_30968 patch (ld(1) and linker tools cumulative patch) or superceding patch updates the level of the dynamic loader.

Note: Make sure that only one dld is used on the system. Change directory to /usr/lib/aCC and verify that the dld.sl symbolic link points to /usr/lib/dld.sl. Otherwise, you may have very bad performance when loading libraries.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

arun,

ldd or file execution will not say about header linking information's. :). Be cool. I am guessing that it is related with that from other application getting same type of error's like BAD Magic Number for shared library.

How you asked him to use chatr ;). Check like,

# chatr /etc/lvtab (which is data file)
chatr(error): chatr cannot recognize file type of file /etc/lvmtab

:)

==

Mathieu,

Try to change catia file headers with chatr as suggested in that link.

hth.


Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Thanks muthukumar, Can you give more information about what do you mean by Header linking ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
VEL_1
Valued Contributor

Re: CATIA and /usr/lib/dld.sl error

Hi,

See the following link. They have the same problem what you have & resolved:

http://search.cpan.org/dist/DBD-Oracle/README.hpux

Muthukumar_5
Honored Contributor

Re: CATIA and /usr/lib/dld.sl error

Arun,

Header linking is nothing but changing the attribute's of a file. You can check this same example. We have to change attributes with chatr to resolve this kind of error(s). Check the link given in prev. replies.

Some thing Like this:

chatr -s +pd 1M +pi 1M

Changing virtual memory page size for segments. If you don't have any information on files then we can not use with odump (PA-RISC) or elfdump (IPF) to get symbols.

Loader will try to get the symbols which are being seen in odump / elfdump in libraries.

hth.
Easy to suggest when don't know about the problem!
Lutz_4
Advisor

Re: CATIA and /usr/lib/dld.sl error

Hello,

I installed the patches and now the what dld.sl gives me :
SMART_BIND
92453-07 dld dld dld.sl B.11.46 050915

/usr/lib/aCC/dld.sl is linked to ../dld.sl

but I still have my issue :(