On Tue, 2012-03-06 at 18:21 +0100, Fabian Deutsch wrote:
Am Dienstag, den 06.03.2012, 17:10 +0000 schrieb Sérgio Basto:
> Hi , I found this error
>
> /usr/bin/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../lib64/libgpac_static.a(base_encoding.o):
undefined reference to symbol 'deflate'
> /usr/bin/ld: note: 'deflate' is defined in DSO /lib64/libz.so.1 so try
> adding it to the linker command
> line
> /lib64/libz.so.1: could not read symbols: Invalid
> operation
> collect2: error: ld returned 1 exit status
DSO is something like an auto-symbol-resolver (so linking in libraries
that are used by other directly-linked libraries, google for with with
fedora).
DSO is deactivated on fedora, therefor you need to pass each library
required to the linker.
"DSO" means "dynamic shared object" and is more or less just another
word for "shared library".
In the above case you need to additionally pass -lz to the linked
(e.g.
using LDLAGS=-lz), as suggested by gcc (which says: is defined in)
Nils
--
Nils Philippsen "Those who would give up Essential Liberty to purchase
Red Hat a little Temporary Safety, deserve neither Liberty
nils(a)redhat.com nor Safety." -- Benjamin Franklin, 1759
PGP fingerprint: C4A8 9474 5C4C ADE3 2B8F 656D 47D8 9B65 6951 3011