Opened 6 months ago

Last modified 6 months ago

#69576 closed defect

py312-lxml error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' — at Initial Version

Reported by: rrobtoo (Robert K.) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: py312-lxml

Description

Hi Team, The py312-lxml compilation fails with the following error

:debug:main Starting logging for py312-lxml @4.9.3_0 :debug:sysinfo macOS 14.4 (darwin/23.4.0) arch arm :debug:sysinfo MacPorts 2.9.1 :debug:sysinfo Xcode 15.3, CLT 15.3.0.0.1.1708646388 :debug:sysinfo SDK 14 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 14.0

:info:build creating build/temp.macosx-14.0-arm64-cpython-312/src/lxml :info:build /usr/bin/clang -fno-strict-overflow -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DCYTHON_CLINE_IN_TRACEBACK=0 -I/opt/ports/include/libxml2 -Isrc -Isrc/lxml/includes -I/opt/ports/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c src/lxml/etree.c -o build/temp.macosx-14.0-arm64-cpython-312/src/lxml/etree.o -w -flat_namespace :info:build src/lxml/etree.c:113152:38: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build pyx_v_self->_c_ctxt->sax->serror = pyx_f_4lxml_5etreereceiveParserError; :info:build :info:build src/lxml/etree.c:117640:25: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build pyx_v_sax->serror = pyx_f_4lxml_5etreereceiveParserError; :info:build :info:build src/lxml/etree.c:181724:28: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build pyx_v_xpathCtxt->error = pyx_f_4lxml_5etreereceiveXPathError; :info:build ~ :info:build src/lxml/etree.c:218998:60: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlRelaxNGSetParserStructuredErrors(pyx_v_parser_ctxt, pyx_f_4lxml_5etreereceiveError, ((void *)pyx_v_self->pyx_base._error_log)); :info:build ~ :info:build /opt/ports/include/libxml2/libxml/relaxng.h:156:30: note: passing argument to parameter 'serror' here :info:build xmlStructuredErrorFunc serror, :info:build :info:build src/lxml/etree.c:219416:60: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlRelaxNGSetValidStructuredErrors(pyx_v_valid_ctxt, pyx_f_4lxml_5etreereceiveError, ((void *)pyx_v_self->pyx_base._error_log)); :info:build ~ :info:build /opt/ports/include/libxml2/libxml/relaxng.h:185:31: note: passing argument to parameter 'serror' here :info:build xmlStructuredErrorFunc serror, void *ctx); :info:build :info:build src/lxml/etree.c:220305:59: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlSchemaSetParserStructuredErrors(pyx_v_parser_ctxt, pyx_f_4lxml_5etreereceiveError, ((void *)pyx_v_self->pyx_base._error_log)); :info:build ~ :info:build /opt/ports/include/libxml2/libxml/xmlschemas.h:156:30: note: passing argument to parameter 'serror' here :info:build xmlStructuredErrorFunc serror, :info:build :info:build src/lxml/etree.c:220848:59: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlSchemaSetValidStructuredErrors(pyx_v_valid_ctxt, pyx_f_4lxml_5etreereceiveError, ((void *)pyx_v_self->pyx_base._error_log)); :info:build ~ :info:build /opt/ports/include/libxml2/libxml/xmlschemas.h:185:30: note: passing argument to parameter 'serror' here :info:build xmlStructuredErrorFunc serror, :info:build

Change History (0)

Note: See TracTickets for help on using tickets.