[MacPorts] #71575: harfbuzz @10.1: error: use of undeclared identifier 'CTFontManagerCreateFontDescriptorsFromURL'

MacPorts noreply at macports.org
Sat Jan 4 22:03:59 UTC 2025


#71575: harfbuzz @10.1: error: use of undeclared identifier
'CTFontManagerCreateFontDescriptorsFromURL'
-------------------------------------+-------------------------------------
  Reporter:  rmottola                |      Owner:  mascguy
      Type:  defect                  |     Status:  assigned
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:
Resolution:                          |   Keywords:  leopard legacy-os
      Port:  harfbuzz, harfbuzz-     |  haspatch
  devel                              |
-------------------------------------+-------------------------------------

Comment (by kencu):

 I rebuilt harfbuzz on 10.5 Leopard PPC using the single-digit coretext
 tweak above, and had no troubles.

 In particular, the line that gave you trouble is here, and went through
 OK.

 {{{
 [142/334] env PKG_CONFIG_PATH=/opt/local/var/macports/build
 /_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/meson-uninstalled
 PKG_CONFIG=/opt/local/bin/pkg-config /opt/local/bin/g-ir-scanner --quiet
 --no-libtool --namespace=HarfBuzz --nsversion=0.0 --warn-all --output
 src/HarfBuzz-0.0.gir --c-include=hb-gobject.h --cflags-begin
 -DHB_NO_SINGLE_HEADER_ERROR -DHAVE_GOBJECT -DHB_EXTERN= --cflags-end
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-10.1.0/src
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-10.1.0/.
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/.
 --filelist=/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src/libharfbuzz-
 gobject.0.dylib.p/HarfBuzz_0.0_gir_filelist --include=GObject-2.0
 --include=freetype2-2.0 --symbol-prefix=hb --symbol-prefix=hb_gobject
 --identifier-prefix=hb_ --pkg-export=harfbuzz-gobject --pkg-
 export=harfbuzz --cflags-begin -DHAVE_CONFIG_H -DHAVE_CONFIG_H
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-10.1.0/.
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/.
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-10.1.0/src/.
 -I/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src/. -I/opt/local/include
 /gobject-introspection-1.0 -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR
 -I/opt/local/include -DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR
 -D_GLIBCXX_USE_CXX11_ABI=0 -I/opt/local/include --cflags-end --add-
 include-path=/opt/local/share/gir-1.0 -L/opt/local/var/macports/build
 /_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src --extra-library=harfbuzz
 -L/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src --library harfbuzz-gobject
 -L/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src
 -L/opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/src --library harfbuzz
 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib --extra-
 library=glib-2.0 --extra-library=intl --extra-library=gobject-2.0 --extra-
 library=m --extra-library=freetype --extra-library=graphite2 --extra-
 library=girepository-1.0 --sources-top-dirs /opt/local/var/macports/build
 /_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/harfbuzz-10.1.0/ --sources-top-dirs
 /opt/local/var/macports/build/_opt_macportsofficial_macports-
 ports_graphics_harfbuzz/harfbuzz/work/build/
 }}}


 first, I would clean the harfbuzz build and then try your build again. If
 it failed just the same, referencing gcc-7 as the linker, then my best
 guess, given that it is the easiest explanation, is that object-
 introspection has burned in some reference to gcc-7 somewhere. I would try
 uninstalling it, then reinstalling it.

-- 
Ticket URL: <https://trac.macports.org/ticket/71575#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list