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

Andreas Tobler toa at pop.agri.ch
Wed Jul 5 13:22:13 PDT 2006


Ryan Schmidt 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

Andreas


More information about the cairo mailing list