[cairo] ld: Undefined symbol: _compress with cairo 1.2.0 on Mac OS X; cairo 1.1.10 was fine

David Turner dturner at nds.com
Tue Jul 11 03:11:27 PDT 2006


Behdad Esfahbod a écrit :
> On Mon, 2006-07-10 at 18:11 -0400, Carl Worth wrote: 
>   
>> On Wed, 5 Jul 2006 20:39:31 +0200, Ryan Schmidt wrote:
>>     
>>> I was successfully building everything with cairo 1.1.10, but just  
>>> saw that 1.2.0 was released and so I dropped that in, but  
>>> unfortunately it won't compile; I get an error (copied below in full)  
>>> about the symbol _compress being undefined.
>>>
>>>       
>> Behdad, do you know of any change that might have broken this between
>> 1.1.10 and 1.2.0?
>>     
>
> Don't think it's my fault.  Cairo doesn't directly use zlib, FreeType
> does.  In the link command, it just says "-lfontconfig -lfreetype",
> which makes me believe that "pkg-config --libs freetype2" is to be
> blamed.
>
>   
it depends on how FreeType was compiled. By default, it no zlib is found 
by the "configure" script,
the font engine will include its own copy of the zlib decompression 
routines, and no "-lz" will be
required at link-time. Another option is to build the library without 
its "gzip" module at all, but
I doubt that was the case here.

so a missing "-lz" in 'pkg-config --libs freetype2' doesn't necessarily 
means a problem here.

Hope this helps,

- David Turner
- The FreeType Project  (www.freetype.org)


***********************************************************************************
Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message.
*********************************************************************************** 



More information about the cairo mailing list