Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35301

qt's zlib clash with system's zlib

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.2.0 RC1
    • Build System
    • 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
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            timblechmann tim blechmann
            timblechmann tim blechmann
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes