1829571 Members
2628 Online
109992 Solutions
New Discussion

GDB on HP-UX

 
SOLVED
Go to solution
Rodney Myers
Occasional Advisor

GDB on HP-UX

When I start GDB on my company's HP-UX 11 Itanium system, I see the following error message about a missing library:

/usr/lib/dld.sl: Can't open shared library: /usr/lib/libcur_colr.1
/usr/lib/dld.sl: No such file or directory

How can I obtain this missing library, or otherwise solve this problem?

Thanks,
Rodney
4 REPLIES 4
Dave Olker
Neighborhood Moderator

Re: GDB on HP-UX

Hi Rodney,

What version of HP-UX are you running? I checked my 11i v2 Itanium system and gdb runs fine but I don't have /usr/lib/libcur_colr.1 on my system.

Also, was GDB installed when you received the system or did you install GDB from some depot or application CD? Can you see what product was installed to provide GDB? For example, on my system:

# swlist -l file | grep /opt/langtools/bin/gdb
WDB.WDB: /opt/langtools/bin/gdb

I'd also be curious about a chatr of the GDB binary:

# chatr /opt/langtools/bin/gdb
/opt/langtools/bin/gdb:
32-bit ELF executable
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third ../../../Src/gnu/gdb:../../../Src/gnu/gdb/../../TAHOE_BE/usr/lib/hpux32:../../../Src/gnu/gdb/../../TAHOE_BE/usr/lib/hpux32:/usr/lib/hpux32
shared library list:
libxcurses.so.1
libunwind.so.1
libdl.so.1
libCsup.so.1
libuca.so.1
libc.so.1
shared library binding:
deferred
global hash table disabled
global hash table size 1103
shared library mapped private disabled
shared library segment merging disabled
shared vtable support disabled
explicit unloading disabled
linkage table protection disabled
segments:
index type address flags size
7 text 00001000 z---c- 1M
8 data 00557000 ---m-- 4M
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr references disabled
address space model: EXEC_MAGIC
caliper dynamic instrumentation disabled


Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Jon Ward_3
Advisor
Solution

Re: GDB on HP-UX

Looks like you have a PA-RISC version of GDB. Check which version you are running, as Dave said it should be /opt/langtools/bin/gdb, is there another version in your path? 'which gdb' will tell you where you are running from.

You can get the latest version at: http://www.hp.com/go/wdb
Rodney Myers
Occasional Advisor

Re: GDB on HP-UX

I installed the latest WDB as suggested, and that has solved the problem. Thanks.
Rodney Myers
Occasional Advisor

Re: GDB on HP-UX

Problem solved. Thread closed.