[MacPorts] #71575: harfbuzz @10.1: error: use of undeclared identifier 'CTFontManagerCreateFontDescriptorsFromURL'
MacPorts
noreply at macports.org
Fri Apr 25 17:25:00 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 mascguy):
While not identical, we're seeing a similar failure with the latest update
to 11.1.0. (Presently that's only available via `harfbuzz-devel`, and
we'll fix all of these issues before updating `harfbuzz`.)
{{{
/usr/bin/clang++ -Isrc/libharfbuzz.0.dylib.p -Isrc
-I../harfbuzz-11.1.0/src -I. -I../harfbuzz-11.1.0
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
-std=c++11 -fno-exceptions -O2 -g -fno-exceptions -fno-rtti -fno-
threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -pipe -Os
-DHB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
-MD -MQ src/libharfbuzz.0.dylib.p/hb-coretext.cc.o -MF
src/libharfbuzz.0.dylib.p/hb-coretext.cc.o.d -o src/libharfbuzz.0.dylib.p
/hb-coretext.cc.o -c ../harfbuzz-11.1.0/src/hb-coretext.cc
../harfbuzz-11.1.0/src/hb-coretext.cc:208:31: error: use of undeclared
identifier 'CTFontManagerCreateFontDescriptorsFromData'; did you mean
'CTFontManagerCreateFontDescriptorFromData'?
auto ct_font_desc_array = CTFontManagerCreateFontDescriptorsFromData
(CFDataCreate (kCFAllocatorDefault, (const UInt8 *) blob_data,
blob_length));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CTFontManagerCreateFontDescriptorFromData
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h:98:31:
note: 'CTFontManagerCreateFontDescriptorFromData' declared here
CTFontDescriptorRef _Nullable CTFontManagerCreateFontDescriptorFromData(
^
../harfbuzz-11.1.0/src/hb-coretext.cc:211:12: error: no matching function
for call to 'create_cg_font'
return create_cg_font (ct_font_desc_array, named_instance_index);
^~~~~~~~~~~~~~
../harfbuzz-11.1.0/src/hb-coretext.cc:161:1: note: candidate function not
viable: cannot convert argument of incomplete type 'const
__CTFontDescriptor *' to 'CFArrayRef' (aka 'const __CFArray *') for 1st
argument
create_cg_font (CFArrayRef ct_font_desc_array, unsigned int
named_instance_index)
^
../harfbuzz-11.1.0/src/hb-coretext.cc:189:1: note: candidate function not
viable: cannot convert argument of incomplete type 'const
__CTFontDescriptor *' to 'hb_blob_t *' for 1st argument
create_cg_font (hb_blob_t *blob, unsigned int index)
^
../harfbuzz-11.1.0/src/hb-coretext.hh:47:1: note: candidate function not
viable: requires single argument 'face', but 2 arguments were provided
create_cg_font (hb_face_t *face);
^
2 errors generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71575#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list