Re: what means is defined in DSO /lib64/libz.so.1

2012-03-06 Thread Nils Philippsen
On Tue, 2012-03-06 at 18:21 +0100, Fabian Deutsch wrote:
> Am Dienstag, den 06.03.2012, 17:10 + 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
n...@redhat.com   nor Safety."  --  Benjamin Franklin, 1759
PGP fingerprint:  C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: what means is defined in DSO /lib64/libz.so.1

2012-03-06 Thread Ankur Sinha
On Tue, 2012-03-06 at 17:10 +, Sérgio Basto wrote:
> Could someone help me , to understand what happens ? 
> 
> Thanks in advance, 

Wiki page alert ;)

http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

-- 
Thanks, 
Regards,
Ankur: "FranciscoD"

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/



signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: what means is defined in DSO /lib64/libz.so.1

2012-03-06 Thread Sérgio Basto
yeah ,I think,  I install zlib-devel and fix the problem , because
detect zlib. 
Thanks


On Tue, 2012-03-06 at 18:21 +0100, Fabian Deutsch wrote: 
> Am Dienstag, den 06.03.2012, 17:10 + 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.
> 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)
> 
> Greetings
> fabian
> 
> 
> > 
> > Could someone help me , to understand what happens ? 
> > 
> > Thanks in advance, 
> > -- 
> > Sérgio M. B.
> > 
> > 
> 
> 

-- 
Sérgio M. B.

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: what means is defined in DSO /lib64/libz.so.1

2012-03-06 Thread Fabian Deutsch
Am Dienstag, den 06.03.2012, 17:10 + 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.
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)

Greetings
fabian


> 
> Could someone help me , to understand what happens ? 
> 
> Thanks in advance, 
> -- 
> Sérgio M. B.
> 
> 


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: what means is defined in DSO /lib64/libz.so.1

2012-03-06 Thread Nils Philippsen
On Tue, 2012-03-06 at 17:10 +, Sérgio Basto wrote:
> 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
> 
> 
> Could someone help me , to understand what happens ? 

AIUI, it looks like the code you try to compile uses the deflate()
function from libz, and doesn't link it directly (i.e. the "-lz"
compiler option) but indirectly (i.e. links a library which uses libz).
You need to explicitly link all libraries that you use, you may not
depend on other libraries pulling these in.

Nils
-- 
Nils Philippsen  "Those who would give up Essential Liberty to purchase 
Red Hat   a little Temporary Safety, deserve neither Liberty
n...@redhat.com   nor Safety."  --  Benjamin Franklin, 1759
PGP fingerprint:  C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

what means is defined in DSO /lib64/libz.so.1

2012-03-06 Thread 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


Could someone help me , to understand what happens ? 

Thanks in advance, 
-- 
Sérgio M. B.


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel