This is the mail archive of the
mailing list for the GDB project.
Re: GDB version information not available
- From: Tejas Chopra <tchopra at tensilica dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Tejas Chopra <Tejas dot Chopra at tensilica dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Fri, 24 May 2013 10:01:21 -0700
- Subject: Re: GDB version information not available
- References: <519E9A5B dot 6090603 at tensilica dot com> <20130524073919 dot GA29767 at host2 dot jankratochvil dot net>
On 05/24/2013 12:39 AM, Jan Kratochvil wrote:
On Fri, 24 May 2013 00:38:19 +0200, Tejas Chopra wrote:
gdb: /lib/libz.so.1: no version information available (required by gdb)
This is unrelated to GDB. It seems you have compiled the binary on
a different system than you run the binary. Compatibility is only backwards,
not forwards. You can run on newer system a binary that was built on older
system but not vice versa.
You can compare on both systems ZLIB_* versioning tags:
readelf -s /lib/libz.so.1 | grep ZLIB_
Now, my system is Fedora 12 and my suspicion is that GDB compiles
assuming a library version that is higher than what my system has.
/lib64/libz.so.1: no version information available
Fedora 14 had the version tag added.
I wanted to know where inside the GDB source code could I get information
about version information.
Not in GDB, GDB just asks for a symbol name (without the ZLIB_* version).
Linker adds the ZLIB_* requirement if system zlib has such version tag.
Thanks for the detailed explanation!