[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:53:32 PDT 2006


Ryan Schmidt a écrit :
>
> On Jul 11, 2006, at 12:11, David Turner wrote:
>
>>> 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.
>
> Currently I am using freetype as provided by Mac OS X's X11 
> environment. Apple provides no pkg-config file for this; 
> /usr/X11R6/lib/pkgconfig contains only fontconfig.pc, xcursor.pc and 
> xft.pc.
>
it must be some pretty old version then :-) Right now, FreeType installs 
both a freetype.pc file and its own "freetype-config" configuration script.
> Note again that cairo 1.1.10 compiles without errors, with no other 
> changes to my environment (IOW, with the same freetype).
>
Cairo's configure probably runs "freetype-config --libs" to determine 
the link flags.

Regards,

- 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