Opened 2 weeks ago

Last modified 2 weeks ago

#69758 assigned defect

php81 @8.1.28: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]

Reported by: dbl001 (dbl) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: kcaporaso (Kevin Caporaso)
Port: php81

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Building php81 on MacOS Sonoma 14.4.1

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81/work/php-8.1.28/ext/libxml/libxml.c:999:35: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
:info:build                 xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);
:info:build                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Attachments (1)

main.log (90.8 KB) - added by dbl001 (dbl) 2 weeks ago.

Download all attachments as: .zip

Change History (6)

Changed 2 weeks ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to ryandesign
Status: newassigned
Summary: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);php81 @8.1.28: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);

comment:2 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Summary: php81 @8.1.28: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);php81 @8.1.28: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]

comment:3 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

comment:4 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: kcaporaso added

Has duplicate #69776 for php74. Likely all versions before php82 are affected.

comment:5 Changed 2 weeks ago by kcaporaso (Kevin Caporaso)

@ryandesign, you're awesome! Thanks for keeping up with everything.

Note: See TracTickets for help on using tickets.