Operating System - HP-UX
1752671 Members
5349 Online
108789 Solutions
New Discussion юеВ

ld: Can't find library for -ldl in hp-ux itanium

 
HP-UX itanium
Occasional Advisor

ld: Can't find library for -ldl in hp-ux itanium

hi gurus,

recently we had setup nw itanium box for testing application.it has got informix IDS 11.50 Dev edition(64 bit) and 32 bit tools on it.
we are getting following error
c4gl db_lock.4gl -o db_lock.
ld: Can't find library for -ldl
Fatal error.

any help greatly appreciated
14 REPLIES 14
Steven Schweda
Honored Contributor

Re: ld: Can't find library for -ldl in hp-ux itanium

It might help if you showed the actual
command which produced this complaint.

Do you have a libdl.* anywhere?
HP-UX itanium
Occasional Advisor

Re: ld: Can't find library for -ldl in hp-ux itanium

Hi steven,

Thanks for the reply

c4gl db_lock.4gl -o db_lock this is the command am trying to execute.
we have libdl* files in /usr/lib dir

lr-xr-xr-x 1 bin bin 10 Aug 31 10:40 libdld.0 -> ./libdld.1
-r-xr-xr-x 1 bin bin 12288 Feb 15 2007 libdld.1
-r-xr-xr-x 1 bin bin 24576 Jul 11 2008 libdld.2
lr-xr-xr-x 1 bin bin 10 Aug 31 10:40 libdld.sl -> ./libdld.2
-r-xr-xr-x 1 bin bin 12288 Jan 12 2007 libdlv_vxfs.1
lr-xr-xr-x 1 bin bin 15 Aug 31 10:44 libdlv_vxfs.sl -> ./libdlv_vxfs.1

Steven Schweda
Honored Contributor

Re: ld: Can't find library for -ldl in hp-ux itanium

> [...] this is the command [...]

Well, now you have some idea how little I
know about the Informix environment.

The real mystery is what the (hidden) "ld"
command looks like (and why?). If "c4gl"
offers any verbose/debug options, then they
might get you some info.

"man ld" should reveal any environment
variables which might be affecting ld's
operation (LDOPTS, LPATH, ...).

> recently we had setup nw itanium box [...]

Is everything working right on some other
system? Comparison can be useful.

> we have libdl* files in /usr/lib dir

Fine, but none of them is a "libdl.*", and
that's what "-ldl" would be requesting.
Dennis Handly
Acclaimed Contributor

Re: ld: Can't find library for -ldl in hp-ux itanium

libdl.so is in /usr/lib/hpux32/ and /usr/lib/hpux64/.

What does your link line look like?
This IS linking Integrity executables and not PA-RISC?

>Steven: If "c4gl" offers any verbose/debug options, then they might get you some info.

Right. Especially if LPATH is changed.
If c4gl doesn't have -v, you can use:
LDOPTS=-v c4gl db_lock.4gl -o db_lock
HP-UX itanium
Occasional Advisor

Re: ld: Can't find library for -ldl in hp-ux itanium

HI

Thanks for the reply.

/usr/lib/hpux32
lr-xr-xr-x 1 bin bin 12 Aug 31 10:40 libdl.so -> ./libdl.so.1
-r-xr-xr-x 1 bin bin 76236 Aug 13 2008 libdl.so.1
lr-xr-xr-x 1 bin bin 12 Aug 31 10:40 libdld.so -> ./libdl.so.1
lr-xr-xr-x 1 bin bin 18 Aug 31 10:44 libdlv_vxfs.so -> ./libdlv_vxfs.so.1
-r-xr-xr-x 1 bin bin 70488 Jan 12 2007 libdlv_vxfs.so.1

/usr/liib/hpux64
Informix pdcx [51] ls -l libdl*
lr-xr-xr-x 1 bin bin 12 Aug 31 10:41 libdl.so -> ./libdl.so.1
-r-xr-xr-x 1 bin bin 78488 Aug 13 2008 libdl.so.1
lr-xr-xr-x 1 bin bin 12 Aug 31 10:41 libdld.so -> ./libdl.so.1
lr-xr-xr-x 1 bin bin 18 Aug 31 10:44 libdlv_vxfs.so -> ./libdlv_vxfs.so.1
-r-xr-xr-x 1 bin bin 71664 Jan 12 2007 libdlv_vxfs.so.1

and LDOPS is set as follows

LDOPTS=+vnocompatwarnings


and am trying to run what u gave me,getting same error msg.

mlurf:/app/wms/urf/opt/viaware/dbs/lock_level> LDOPTS=-v c4gl db_lock.4gl -o db_lock
ld: Can't find library for -ldl
Fatal error.
Dennis Handly
Acclaimed Contributor

Re: ld: Can't find library for -ldl in hp-ux itanium

>getting same error msg.

Of course. But you should get a massive output file which can be used for triage.

>LDOPTS=-v c4gl db_lock.4gl -o db_lock
ld: Can't find library for -ldl

If you don't get a file, you'll need to use tusc to see what ld is getting.
tusc -fp -ea -o tusc.out c4gl db_lock.4gl -o db_lock
HP-UX itanium
Occasional Advisor

Re: ld: Can't find library for -ldl in hp-ux itanium

HI,

whenever am trying to run LDOPTS am getting a file in unreadable manner.

there is no tusc.I did which tusc but cant find anything

Mallik
James R. Ferguson
Acclaimed Contributor

Re: ld: Can't find library for -ldl in hp-ux itanium

Hi:

> there is no tusc.I did which tusc but cant find anything

This doesn't come with HP-UX but can be quickly installed with 'swinstall' by fetching it from here:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.10/

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: ld: Can't find library for -ldl in hp-ux itanium

> whenever am trying to run LDOPTS am getting
> a file in unreadable manner.

What does that mean?