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

qt 6.5.2 fails to build from source with system libpng (regression from 6.5.1)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.2, 6.7.0 FF
    • 6.5.2
    • Build System, PDF
    • None
    • macOS
    • 6e1ebeeba (112-based), 7cb5bf9a3 (dev), 172939db7 (6.6), 47a28d369 (118-based), 68e618b8d (108-based)

    Description

      Build on macOS with system libpng (1.6.40) on macOS (all versions, both Intel and ARM) gives:

      2023-07-20T01:08:38.8110600Z Undefined symbols for architecture x86_64:
      2023-07-20T01:08:38.8110800Z   "_png_create_info_struct", referenced from:
      2023-07-20T01:08:38.8110940Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8111110Z   "_png_create_read_struct", referenced from:
      2023-07-20T01:08:38.8111240Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8111430Z   "_png_destroy_read_struct", referenced from:
      2023-07-20T01:08:38.8111560Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8111700Z   "_png_error", referenced from:
      2023-07-20T01:08:38.8111850Z       _read_data_from_FT_Stream in sfnt.o
      2023-07-20T01:08:38.8111990Z   "_png_get_IHDR", referenced from:
      2023-07-20T01:08:38.8112110Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8112260Z   "_png_get_error_ptr", referenced from:
      2023-07-20T01:08:38.8112390Z       _error_callback in sfnt.o
      2023-07-20T01:08:38.8112540Z       _read_data_from_FT_Stream in sfnt.o
      2023-07-20T01:08:38.8112700Z   "_png_get_io_ptr", referenced from:
      2023-07-20T01:08:38.8112870Z       _read_data_from_FT_Stream in sfnt.o
      2023-07-20T01:08:38.8113020Z   "_png_get_valid", referenced from:
      2023-07-20T01:08:38.8113160Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8113320Z   "_png_read_end", referenced from:
      2023-07-20T01:08:38.8113830Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8114010Z   "_png_read_image", referenced from:
      2023-07-20T01:08:38.8114150Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8114310Z   "_png_read_info", referenced from:
      2023-07-20T01:08:38.8114440Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8114620Z   "_png_read_update_info", referenced from:
      2023-07-20T01:08:38.8114770Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8114970Z   "_png_set_expand_gray_1_2_4_to_8", referenced from:
      2023-07-20T01:08:38.8115110Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8115270Z   "_png_set_filler", referenced from:
      2023-07-20T01:08:38.8115410Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8115560Z   "_png_set_gray_to_rgb", referenced from:
      2023-07-20T01:08:38.8115700Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8116250Z   "_png_set_interlace_handling", referenced from:
      2023-07-20T01:08:38.8116380Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8116550Z   "_png_set_longjmp_fn", referenced from:
      2023-07-20T01:08:38.8116700Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8116840Z       _error_callback in sfnt.o
      2023-07-20T01:08:38.8117000Z   "_png_set_packing", referenced from:
      2023-07-20T01:08:38.8117120Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8117300Z   "_png_set_palette_to_rgb", referenced from:
      2023-07-20T01:08:38.8117680Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8117830Z   "_png_set_read_fn", referenced from:
      2023-07-20T01:08:38.8117970Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8118170Z   "_png_set_read_user_transform_fn", referenced from:
      2023-07-20T01:08:38.8118300Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8118440Z   "_png_set_strip_16", referenced from:
      2023-07-20T01:08:38.8118570Z       _Load_SBit_Png in sfnt.o
      2023-07-20T01:08:38.8118750Z   "_png_set_tRNS_to_alpha", referenced from:
      2023-07-20T01:08:38.8118880Z       _Load_SBit_Png in sfnt.o
      

      This happens while building QtPdf:

      2023-07-20T01:08:38.8109860Z : && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk -mmacosx-version-min=13.0 -dynamiclib -Wl,-headerpad_max_install_names -Wl,-undefined,error @/tmp/qt-20230719-9749-8gskor/qt-everywhere-src-6.5.2/qtwebengine/src/pdf/Release/x86_64/QtPdf_objects.rsp @/tmp/qt-20230719-9749-8gskor/qt-everywhere-src-6.5.2/qtwebengine/src/pdf/Release/x86_64/QtPdf_libs.rsp -fapplication-extension -compatibility_version 6.0.0 -current_version 6.5.2 -o qtbase/lib/QtPdf.framework/Versions/A/QtPdf -install_name @rpath/QtPdf.framework/Versions/A/QtPdf qtwebengine/src/pdf/CMakeFiles/Pdf.dir/Pdf_autogen/mocs_compilation.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdfbookmarkmodel.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdfdocument.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdffile.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdflink.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdflinkmodel.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdfpagenavigator.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdfpagerenderer.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdfsearchmodel.cpp.o qtwebengine/src/pdf/CMakeFiles/Pdf.dir/qpdfselection.cpp.o -F/tmp/qt-20230719-9749-8gskor/qt-everywhere-src-6.5.2/qtbase/lib -Wl,-rpath,/tmp/qt-20230719-9749-8gskor/qt-everywhere-src-6.5.2/qtbase/lib  qtbase/lib/QtGui.framework/Versions/A/QtGui  qtbase/lib/QtNetwork.framework/Versions/A/QtNetwork  -Xlinker -framework -Xlinker OpenGL  -Xlinker -framework -Xlinker AGL  -framework AppKit  -framework ImageIO  -framework Metal  qtbase/lib/QtCore.framework/Versions/A/QtCore  -framework IOKit  -framework DiskArbitration && :
       

      The exact same setup worked on Qt 6.5.1 so it is a regression. It may be due to https://bugreports.qt.io/browse/QTBUG-112466 ?

       

      Attachments

        Issue Links

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

          Activity

            People

              michal Michal Klocek
              fxcoudert FX
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes