FreeBSD Bugzilla – Attachment 251802 Details for
Bug 279968
devel/tclxml: Fails to build with libxml2 2.13.1 and libxslt 1.1.41
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix tclxml build with libxml2 2.11 and 2.13
tclxml-libxml2-2.11-2.13.diff (text/plain), 2.35 KB, created by
Pietro Cerutti
on 2024-06-30 17:51:53 UTC
(
hide
)
Description:
Fix tclxml build with libxml2 2.11 and 2.13
Filename:
MIME Type:
Creator:
Pietro Cerutti
Created:
2024-06-30 17:51:53 UTC
Size:
2.35 KB
patch
obsolete
>--- docObj.c.orig 2013-03-30 17:17:07 UTC >+++ docObj.c >@@ -1852,9 +1852,13 @@ void > } > > void >-TclXML_libxml2_ErrorHandler (ctx, error) >- void *ctx; /* ignore - depends on context */ >- xmlErrorPtr error; >+TclXML_libxml2_ErrorHandler (void *ctx, >+#if LIBXML_VERSION >= 21200 >+ const xmlError *error >+#else >+ xmlError *error >+#endif >+ ) > { > ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); > Tcl_Obj *objPtr; >--- include/tclxml-libxml2/tclxml-libxml2Decls.h.orig 2013-03-30 17:17:07 UTC >+++ include/tclxml-libxml2/tclxml-libxml2Decls.h >@@ -55,7 +55,12 @@ EXTERN void TclXML_libxml2_ErrorHandler _ANSI_ARGS_(( > TclXML_libxml2_DocumentHandling keep)); > /* 10 */ > EXTERN void TclXML_libxml2_ErrorHandler _ANSI_ARGS_((void * ctx, >- xmlErrorPtr error)); >+#if LIBXML_VERSION >= 21200 >+ const xmlError *error)); >+#else >+ xmlError *error)); >+#endif >+ > /* 11 */ > EXTERN void TclXML_libxml2_ResetError _ANSI_ARGS_(( > Tcl_Interp * interp)); >@@ -93,7 +98,13 @@ typedef struct Tclxml_libxml2Stubs { > int (*tclXML_libxml2_GetTclDocFromNode) _ANSI_ARGS_((Tcl_Interp * interp, 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, xmlErrorPtr error)); /* 10 */ >+ void (*tclXML_libxml2_ErrorHandler) _ANSI_ARGS_((void * ctx, >+#if LIBXML_VERSION >= 21200 >+ const xmlError * error >+#else >+ xmlError * error >+#endif >+ )); /* 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 * interp, TclXML_ErrorNodeHandlerProc * proc)); /* 13 */ >--- tclxml.c.orig 2013-03-30 17:17:07 UTC >+++ tclxml.c >@@ -20,6 +20,8 @@ > #include <tclxslt/tclxslt.h> > #include <string.h> > >+int Tcldom_libxml2_Init ( Tcl_Interp *interp ); >+ > #define TCL_DOES_STUBS \ > (TCL_MAJOR_VERSION > 8 || TCL_MAJOR_VERSION == 8 && (TCL_MINOR_VERSION > 1 || \ > (TCL_MINOR_VERSION == 1 && TCL_RELEASE_LEVEL == TCL_FINAL_RELEASE)))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279968
:
251767
| 251802