1752800 Members
5767 Online
108789 Solutions
New Discussion юеВ

gdb and shared libary

 
FrankAtWork
Occasional Contributor

gdb and shared libary

Hello,

when i load my application into the gdb and type run, gdb comes with the following messages:
--snip---
warning: Version of shared library /usr/lib/pa20_64/libm.2 not understood; there may be new features in the library that gdb does not support

warning: Version of shared library /usr/lib/pa20_64/libc.2 not understood; there may be new features in the library that gdb does not support

warning: Version of shared library /usr/lib/pa20_64/libdl.1 not understood; there may be new features in the library that gdb does not support

warning: Unexpected shared library event ignored.
--snap--

after this gdb has to be killed because stops working.

The environment is as follows:
uname -a
HP-UX HHFU203A B.11.11 U 9000/800 2449262322 unlimited-user license

gdb -version
HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.

The application is compiled with the follwoing options:
CFLAGS= +w1 +DD64 +M1 +M2 +ESlit +W 517,714,733,753,2010 -c -Ae -DHPUX -DFORK -D_HPUX_SOURCE -D$(T1) -D$(T2) -D$(T3) -DHPUX11

Linker options:
LFLAGS=-z -Wl,+n +FP VOUZ +DA2.0W

Thanks in advance for your help.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: gdb and shared libary

Shalom,

gdb is a debugger.

warning: Version of shared library /usr/lib/pa20_64/libm.2 not understood; there may be new features in the library that gdb does not support

It does not understand one of the libraries your software is using.

I'm not sure if gdb is using it or the software you are trying debug, I think the latter.

Your system in general is pretty out of date(support).

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
Dennis Handly
Acclaimed Contributor

Re: gdb and shared libary

>HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.

This is just too old. Download 5.9 from:
http://www.hp.com/go/wdb