From nobody Sun Jun 30 08:11:14 2024 X-Original-To: tcltk@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WBhhL2Cc5z5P6JM for ; Sun, 30 Jun 2024 08:11:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WBhhK6m1rz4NVP for ; Sun, 30 Jun 2024 08:11:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719735073; a=rsa-sha256; cv=none; b=J5+saAVdZTq92lcAeWlz/+jpU3J4MTe4MlSXKvaETtyjO5WarArI2nW8DgF9N5UxXLfkCB lFbE2bBrvXWR2gsNVmKYJDeA6xQfuDlMXN80oGoQ8y6l9BNcBLCyZVTywIYOiUIvzJduET G50HKSetpt7FO0OZ+0/Odx4SctR8kbPZs6VWekaZ3qGtNm0LNxJ76NW1FIytnR49YP+lIb hTV3EZxJ0QPZjRuAWq6b6BfH8ZLiFpXHzFtSiXz5zXMyBilm4q+ilvxeSgctOlJ5SVp1MQ SDg8BjslrDAwXmVf5GBaYH0WQ7XxtECJs/S/KVikrgLYuAvzFdAUrkPOOZowsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719735073; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IoPI95RdFth4v32WJ37M7aLi+JF3NmMnyuTobzIW/jg=; b=A7+w1LlmpgOAi9qt1Lm1BLQa+uh4RD3FiX+X+hjAjus+56OInfFAas41FwoMdrP55r3Kbh q9El117PFvG8fXejV0ufV17hq1ihZKTDDfEmDLCSSetDyKols9ZrBtNWSBfhEKITYd+d0H YAigJc+fgXy1Ib5M2D94dN4A2R8P+apViho4JwGXLJHBM1om1alCZ2GAJCv28aNEQ7rXPr mhG4XwaEbjn4RvEDq8YXVbMhB69kvxVHaxxEI+8ot9aQQDyJ4/ZLjM93jhKbo9Uj9FUn96 8maW2/uhnElZByYiFk7Oh5Ish0U97hDlh5UTgoLHncTDKAvH0U8lkZKMkXq1LQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WBhhK6N3pzDlQ for ; Sun, 30 Jun 2024 08:11:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 45U8BDsk068440 for ; Sun, 30 Jun 2024 08:11:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45U8BDq5068439 for tcltk@FreeBSD.org; Sun, 30 Jun 2024 08:11:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: tcltk@FreeBSD.org Subject: [Bug 279968] devel/tclxml: Fails to build with libxml2 2.13.1 and libxslt 1.1.41 Date: Sun, 30 Jun 2024 08:11:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gahr@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tcltk@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Tcl/Tk discussions List-Archive: https://lists.freebsd.org/archives/freebsd-tcltk List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-tcltk@freebsd.org Sender: owner-freebsd-tcltk@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279968 --- Comment #3 from Pietro Cerutti --- Two things: 1) I think the patch to should include this second chunk too: --- include/tclxml-libxml2/tclxml-libxml2Decls.h.orig 2013-03-30 17:17:07= UTC +++ include/tclxml-libxml2/tclxml-libxml2Decls.h @@ -55,7 +55,7 @@ EXTERN void TclXML_libxml2_ErrorHandler _ANSI_ARGS_(( TclXML_libxml2_DocumentHandling keep)); /* 10 */ EXTERN void TclXML_libxml2_ErrorHandler _ANSI_ARGS_((void * ctx= ,=20 - xmlErrorPtr error)); + const xmlError *error)); /* 11 */ EXTERN void TclXML_libxml2_ResetError _ANSI_ARGS_(( Tcl_Interp * interp)); @@ -93,7 +93,7 @@ typedef struct Tclxml_libxml2Stubs { int (*tclXML_libxml2_GetTclDocFromNode) _ANSI_ARGS_((Tcl_Interp * inte= rp, xmlNodePtr nodePtr, TclXML_libxml2_Document ** tDocPtrPtr)); /* 7 */ void (*tclXML_libxml2_DestroyDocument) _ANSI_ARGS_((TclXML_libxml2_Document * tDocPtr)); /* 8 */ void (*tclXML_libxml2_DocKeep) _ANSI_ARGS_((Tcl_Obj * objPtr, TclXML_libxml2_DocumentHandling keep)); /* 9 */ - void (*tclXML_libxml2_ErrorHandler) _ANSI_ARGS_((void * ctx, xmlErrorP= tr error)); /* 10 */ + void (*tclXML_libxml2_ErrorHandler) _ANSI_ARGS_((void * ctx, const xmlError * error)); /* 10 */ void (*tclXML_libxml2_ResetError) _ANSI_ARGS_((Tcl_Interp * interp)); = /* 11 */ Tcl_Obj * (*tclXML_libxml2_GetErrorObj) _ANSI_ARGS_((Tcl_Interp * interp)); /* 12 */ void (*tclXML_libxml2_SetErrorNodeFunc) _ANSI_ARGS_((Tcl_Interp * inte= rp, TclXML_ErrorNodeHandlerProc * proc)); /* 13 */ 2) These patches cannot be applied to the current libxml2 2.11.8, as the signature of that function is not backwards compatible. docObj.c:124:60: error: incompatible function pointer types passing 'void (= void *, const xmlError *)' (aka 'void (void *, const struct _xmlError *)') to parameter of type 'xmlStructured ErrorFunc' (aka 'void (*)(void *, struct _xmlError *)') [-Wincompatible-function-pointer-types] xmlSetStructuredErrorFunc((void *) tsdPtr->errorInfoPtr, TclXML_libxml2_ErrorHandler); =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/libxml2/libxml/xmlerror.h:873:29: note: passing argument= to parameter 'handler' here xmlStructuredErrorFunc handler); Are you planning to commit everything at once? An alternative would be to conditionally change the signatures under LIBXML_VERSION_NUMBER >=3D 21200 --=20 You are receiving this mail because: You are the assignee for the bug.=