If not building the PDF surface backend, cairo-deflate-stream.c should not be compiled and linked in the cairo library, to avoid dragging in an unneeded zlib dependency.
Thanks for pointing out this bug. Fixed here: http://gitweb.freedesktop.org/?p=cairo;a=commitdiff;h=2242550b489472d4d9b6505fd3db89541e101425 (and will appear soon in 1.4.2). -Carl
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.