Opened 6 months ago

Closed 4 months ago

#69758 closed defect (fixed)

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), chrisminett (Chris Minett)
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) 6 months ago.

Download all attachments as: .zip

Change History (8)

Changed 6 months ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 6 months 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 6 months 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 6 months ago by ryandesign (Ryan Carsten Schmidt)

comment:4 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: kcaporaso added

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

comment:5 Changed 6 months ago by kcaporaso (Kevin Caporaso)

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

comment:6 Changed 5 months ago by chrisminett (Chris Minett)

Cc: chrisminett added

comment:7 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In c90ef35cfef3b300c1b45be99a541f0868873c5b/macports-ports (master):

php*: Fix build with libxml 2.12.x

Closes: #69758

Note: See TracTickets for help on using tickets.