Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.2.0 RC1
-
None
-
c8a8e0fb18c7c7cb6cf445dc9595eaf69f3cd126
Description
qt builds its own zlib by prefixing z_ to its symbols via Z_PREFIX. this works for all symbols, except for z_errmsg, which can therefore cause a duplicate definition when an application is statically linked with both qt and zlib.
this can be fixed by this patch:
--- a/qtbase/src/3rdparty/zlib/zconf.h +++ b/qtbase/src/3rdparty/zlib/zconf.h @@ -107,6 +107,7 @@ # define zcfree z_zcfree # define zlibCompileFlags z_zlibCompileFlags # define zlibVersion z_zlibVersion +# define z_errmsg z_z_errmsg