Operating System - Linux
1752848 Members
3879 Online
108790 Solutions
New Discussion юеВ

/usr/lib/dld.sl: Unresolved symbol

 
SOLVED
Go to solution
Nigel Green
Advisor

/usr/lib/dld.sl: Unresolved symbol

Hi,

When trying to run an executable, we get the following error message:

/usr/lib/dld.sl: Unresolved symbol: _mFsoloadunload (code) from /usr/local/lib/libmb.sl
Abort(coredump)

running ldd on the executable shows:

7 /usr/local/bin>ldd udelewwd
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/opt/cobol/cobdir/coblib/libhpcobol.2 => /opt/cobol/cobdir/coblib
/libhpcobol.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/opt/cobol/cobdir/coblib/libisstubs.1 => /opt/cobol/cobdir/coblib
/libisstubs.1
/usr/lib/libc.2 => /usr/lib/libc.2
/opt/cobol/cobdir/coblib/liboops.1 => /opt/cobol/cobdir/coblib/liboops
.1
/opt/cobol/cobdir/coblib/libmfo.1 => /opt/cobol/cobdir/coblib/libmfo.
1
/opt/cobol/cobdir/coblib/libosx.1 => /opt/cobol/cobdir/coblib/libosx.
1
/opt/cobol/cobdir/coblib/libscreen.1 => /opt/cobol/cobdir/coblib/libscre
en.1
/opt/cobol/cobdir/coblib/libmbcs.1 => /opt/cobol/cobdir/coblib/libmbcs
.1
/opt/cobol/cobdir/coblib/libsupp.1 => /opt/cobol/cobdir/coblib/libsupp
.1
/opt/cobol/cobdir/coblib/libcrtn.1 => /opt/cobol/cobdir/coblib/libcrtn
.1
/opt/cobol/cobdir/coblib/libcobol.1 => /opt/cobol/cobdir/coblib/libcobo
l.1
/opt/cobol/cobdir/coblib/libcobol.1 => /opt/cobol/cobdir/coblib/libcobo
l.1
/usr/local/lib/libmb.sl => /usr/local/lib/libmb.sl
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/librt.2 => /usr/lib/librt.2

and runnig chatr shows:

40 /usr/local/bin>chatr udelewwd
udelewwd:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/librt.2
dynamic /usr/lib/libpthread.1
dynamic /usr/local/lib/libmb.sl
dynamic /opt/cobol/cobdir/coblib/libcobol.1
dynamic /opt/cobol/cobdir/coblib/libhpcobol.2
dynamic /usr/lib/libm.2
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
shared library text merging disabled

SHLIB_PATH is set as:

SHLIB_PATH=/opt/cobol/cobdir/coblib:/oracle/app/product/8.0.6/lib:/opt/cobol/cob
dir/lib:/usr/lib:/usr/local/lib

so I don't think there is a problem with the paths.

does anyone have any suggestions as to what could be cauing the error?

Many thanks


11 REPLIES 11
Muthukumar_5
Honored Contributor

Re: /usr/lib/dld.sl: Unresolved symbol

what is file saying? Is it PA-RISC or IA64 based one (ELF). If elf then set LDLIB_PATH setting.

hth.
Easy to suggest when don't know about the problem!
Mugilvannan
Valued Contributor

Re: /usr/lib/dld.sl: Unresolved symbol

Looks like either some libraries are missing on the link stage or some runtime optins are not set correctly.
If U need a helping hand, U will find one at the end of your arm
Arunvijai_4
Honored Contributor

Re: /usr/lib/dld.sl: Unresolved symbol

Try using tusc and let us know the results,
tusc can be downloaded from
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.7/

Also, try to get "bt" from GDB.

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

Re: /usr/lib/dld.sl: Unresolved symbol

hi guys,

file shows:

file /usr/local/bin/udelewwd
/usr/local/bin/udelewwd: PA-RISC1.1 shared executable dynamically linked
-not stripped

also the LD_LIBRARY_PATH is already set as :

LD_LIBRARY_PATH=/opt/cobol/cobdir/coblib:/opt/cobol/cobdir/lib:/usr/lib:/usr/loc
al/lib

when you say that libraries are missing at the link stage and runtime options are incorrect, are these things that would be set when compiling the code?

many thanks
Muthukumar_5
Honored Contributor

Re: /usr/lib/dld.sl: Unresolved symbol

Problem is with application linker setting.

40 /usr/local/bin>chatr udelewwd
udelewwd:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined

Some patch has to like,

LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /usr/lib:

everthing is disabled there. Is it your own one. Try to rebuild it. Before that,

Can you try as,

# /binary

what it is saying?

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

Re: /usr/lib/dld.sl: Unresolved symbol

Are you missing any dependencies ? Just a thought ..

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

Re: /usr/lib/dld.sl: Unresolved symbol

What does

# ldd /usr/local/lib/libmb.sl


give you ?

Nigel Green
Advisor

Re: /usr/lib/dld.sl: Unresolved symbol

Yes, the code is ours, but I didn't compile it, i know nothing about this side of things as you may have guessed. I think i'll pass your findings onto the guys who are responsible for this and ask them to rebuild it. I've tried enableing the use of the embedded path and the SHLIB_PATH using chatr +s and +b, but I get the following error when trying to enable the embedded path:

chatr(error): +b enable, embedded path not defined at link time

so it seems like it does need to be recompiled.

ldd /usr/local/lib/libmb.sl returns nothing...is this something i should be looking into?
Muthukumar_5
Honored Contributor
Solution

Re: /usr/lib/dld.sl: Unresolved symbol

You have to recompile your application with library settings. You can include libraries with PATH as -L/usr/lib/ or directly with that library name.

a) ldd /usr/local/lib/libmb.sl returns nothing...is this something i should be looking into?

yes.

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