[MacPorts] #66114: qt4-mac: build failure on macOS 13

MacPorts noreply at macports.org
Sun Oct 30 01:23:43 UTC 2022


#66114: qt4-mac: build failure on macOS 13
--------------------------+---------------------
 Reporter:  ShadSterling  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.0
 Keywords:  ventura       |       Port:  qt4-mac
--------------------------+---------------------
 Build failed while reinstalling all ports after upgrading to Ventura

 Following suggestions in #57083 to build on a newer macOS,

 the attempted build failed with one undeclared identifier and five
 explicitly marked unavailable

 Undeclared: ATSFontActivateFromFileReference

 Unavailable: ATSFontActivateFromMemory, ATSFontFindFromContainer,
 ATSFontFindFromContainer, ATSFontGetPostScriptName, ATSFontDeactivate

 {{{
 :info:build /usr/bin/clang++ -c -pipe -Os -stdlib=libc++
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
 -std=c++98 -Xarch_x86_64 -mmacosx-version-min=13.0 -fconstant-cfstrings
 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=13.0
 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE
 -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT
 -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_CUPS -DQT_NO_LPR
 -DQT_NO_OPENTYPE -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP
 -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE
 -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB
 -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT
 -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1
 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
 -I../../mkspecs/macx-g++ -I. -I.moc/release-shared -I../../include/QtGui
 -I.rcc/release-shared -Iimage -I../3rdparty/harfbuzz/src -Idialogs
 -I../../include/QtCore -I../../include -I.uic/release-shared
 -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work
 /qt-everywhere-opensource-src-4.8.7/Library/Frameworks
 -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work
 /qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-
 shared/qtextcursor.o text/qtextcursor.cpp
 :info:build In file included from text/qfontdatabase.cpp:1103:
 :info:build text/qfontdatabase_mac.cpp:452:17: error: use of undeclared
 identifier 'ATSFontActivateFromFileReference'
 :info:build                 ATSFontActivateFromFileReference(&ref,
 kATSFontContextLocal, kATSFontFormatUnspecified, 0,
 kATSOptionFlagsDefault, &handle);
 :info:build                 ^
 :info:build text/qfontdatabase_mac.cpp:466:13: error:
 'ATSFontActivateFromMemory' is unavailable
 :info:build         e = ATSFontActivateFromMemory((void
 *)fnt->data.constData(), fnt->data.size(), kATSFontContextLocal,
 :info:build             ^
 :info:build
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:363:1:
 note: 'ATSFontActivateFromMemory' has been explicitly marked unavailable
 here
 :info:build ATSFontActivateFromMemory(
 :info:build ^
 }}}

 {{{
 platform darwin {
     if { ( ${MAJOR} == 10 && ${MINOR} > 15 ) || ${MAJOR} > 13 } {
         # This project needs to be updated to build with clang++ against
 libc++
         depends_lib
         depends_run
         pre-fetch {
             ui_error "$name does not currently build on macOS later than
 13 'Ventura'."
             error "unsupported platform"
         }
     }
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66114>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list