Re: build of libharfbuzz0-shlibs-2.6.8-2 failed

[email protected] Wed, 09 Oct 2024 14:51:57 -0500
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
On 2024-10-09 09:34, Derek Homeier wrote:
> On 9 Oct 2024, at 11:04 AM, Hanspeter Niederstrasser
> <[email protected]> wrote:
>> 
>> Thanks. Can you check with the new attached files? I found the 
>> upstream commit that directly references the above errors.
> 
> Thanks, hb-font.cc now compiles successfully, but after that another
> file is failing on the same conflict:
> 
> g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -DHB_DISABLE_DEPRECATED
> -I../src/ -I../src/ -I/opt/sw3/include/glib-2.0
> -I/opt/sw3/lib/glib-2.0/include -I/opt/sw3/in
> clude/freetype2 -I/opt/sw3/include/cairo -I/opt/sw3/include/freetype2
> -I/opt/sw3/include  -fno-rtti -g -O2 -fno-exceptions
> -fno-threadsafe-statics -fvisibility
> -inlines-hidden  -MT helper-cairo.o -MD -MP -MF .deps/helper-cairo.Tpo
> -c -o helper-cairo.o helper-cairo.cc
> helper-cairo.cc:155:12: error: cast from 'void (*)(hb_font_t *)' to
> 'cairo_destroy_func_t' (aka 'void (*)(void *)') converts to
> incompatible function type [-Wer
> ror,-Wcast-function-type-strict]
>   155 |                                        (cairo_destroy_func_t)
> hb_font_destroy))
>       |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> 
> I don’t know where hb_font_destroy itself is declared, and could not
> find anything related on GitHub –
> the file itself has been merged into helper-cairo.hh years ago
> (https://github.com/harfbuzz/harfbuzz/pull/3121)
> but the respective code been completely removed sometime since.

In the failed build directory, can you edit the file 
util/helper-cairo.cc at line 155 and delete the "(cairo_destroy_func_t)" 
part at the beginning. This would leave just "hb_font_destroy))" after 
all the indentations. Make sure you leave the 2 closing parentheses at 
the end. I don't know if this change will work, but it follows the same 
pattern from the previous upstream patch in src/hb-ft.cc.

After editing the file, try `make -w` again.

Hanspeter


_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users