[MacPorts] #72578: OSX10.14 fails to build harfbuzz-11.2.1 with error: no matching function for call to 'create_cg_font'
MacPorts
noreply at macports.org
Wed Jun 4 22:30:55 UTC 2025
#72578: OSX10.14 fails to build harfbuzz-11.2.1 with error: no matching function
for call to 'create_cg_font'
-----------------------+----------------------
Reporter: jbflanman | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Keywords: | Port: harfbuzz
-----------------------+----------------------
While attempting to upgrade outdated harfbuzz 10.2.0_0 < 11.2.1_0 I get
the following
:info:build FAILED: src/libharfbuzz.0.dylib.p/hb-coretext.cc.o
:info:build ../harfbuzz-11.2.1/src/hb-coretext.cc:215:31: error: use of
undeclared identifier 'CTFontManagerCreateFontDescriptorsFromData'; did
you mean 'CTFontManagerCreateFontDescriptorFromData'?
:info:build auto ct_font_desc_array =
CTFontManagerCreateFontDescriptorsFromData (CFDataCreate
(kCFAllocatorDefault, (const UInt8 *) blob_data, blob_length));
:info:build
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build
CTFontManagerCreateFontDescriptorFromData
:info:build
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h:98:31:
note: 'CTFontManagerCreateFontDescriptorFromData' declared here
:info:build CTFontDescriptorRef _Nullable
CTFontManagerCreateFontDescriptorFromData(
:info:build ^
:info:build ../harfbuzz-11.2.1/src/hb-coretext.cc:217:14: error: no
matching function for call to 'create_cg_font'
:info:build return create_cg_font (ct_font_desc_array,
named_instance_index);
:info:build ^~~~~~~~~~~~~~
:info:build ../harfbuzz-11.2.1/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
:info:build create_cg_font (CFArrayRef ct_font_desc_array, unsigned int
named_instance_index)
:info:build ^
:info:build ../harfbuzz-11.2.1/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
:info:build create_cg_font (hb_blob_t *blob, unsigned int index)
:info:build ^
:info:build ../harfbuzz-11.2.1/src/hb-coretext.hh:47:1: note: candidate
function not viable: requires single argument 'face', but 2 arguments were
provided
:info:build create_cg_font (hb_face_t *face);
:info:build ^
:info:build 2 errors generated.
I have run the 'sudo clean harfbuzz' and made sure I have all the build
dependencies installed. Attached is the text of the main.log from the
macports/logs folder; renamed as "harfbuzz-err4log.txt".
--
Ticket URL: <https://trac.macports.org/ticket/72578>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list