Comment 6 for bug 536161

Revision history for this message
Jens Beyer (qcumber-some) wrote :

Their point is that the OF macro is internal to zlib and should not have been exported to the public.
I see the point that widelands bundles minizip derivates which are part of zlib somehow..

I made a quick hack to enable users of zlib-1.2.6 on Gentoo to compile widelands again, see attached patch.

Such users have to apply the patch and add -DWL_ZIP_OF=_Z_OF to the cmake command line.

However this is ugly and should not hit trunk.

I'm not sure what the outcome of this should be, but I guess the best would be to really get rid of the bundled zlib functionality (and the 'internal' OF macro) and link completely against system zlib.
In the mean time, let's hope not too many Gentoo users switch to ~ and it takes a while until the new zlib gets stabilized in Portage.