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

Ryan Schmidt cairo-2006c at ryandesign.com
Wed Jul 5 14:25:46 PDT 2006


On Jul 5, 2006, at 22:22, Andreas Tobler wrote:

>>> If during the build process you get the Undefined Symbols  
>>> _compress and _uncompress, add -lz to the end of your build command
>>
>> But I'm not sure where to apply that change in the cairo 1.2.0  
>> source, nor whether it's the right solution. Does anybody here know?
>
> On the quick you can add the -lz in the Makefile in src to  
> CAIRO_LIBS at the end.
>
> CAIRO_LIBS =   -lSM -lICE  -L/usr/X11R6/lib -lX11    -lSM -lICE -L/ 
> usr/X11R6/lib -lX11  -L/usr/X11R6/lib -lXrender -lX11 -lXext -L/ 
> Volumes/src/ports/lib -lpng12    -L/usr/X11R6/lib -lfreetype -L/usr/ 
> X11R6/lib -lfontconfig -lz

Thanks, Andreas -- adding "-lz" to the end of CAIRO_LIBS in src/ 
Makefile does allow it to compile.




More information about the cairo mailing list