[Pkg-tcltk-devel] Bug#1088141: tclxml: FTBFS: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]

Santiago Vila sanvila at debian.org
Sat Nov 23 19:54:08 GMT 2024


Package: src:tclxml
Version: 1:3.2.7-8
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules build
dh build
    dh_update_autotools_config
    dh_autoreconf
configure.ac:38: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:38: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
tclconfig/tcl.m4:40: TEA_PATH_TCLCONFIG is expanded from...
configure.ac:38: the top level
configure.ac:39: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:39: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
tclconfig/tcl.m4:370: TEA_LOAD_TCLCONFIG is expanded from...
configure.ac:39: the top level
configure.ac:62: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:62: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
tclconfig/tcl.m4:3123: TEA_SETUP_COMPILER is expanded from...
configure.ac:62: the top level
configure.ac:128: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:128: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
tclconfig/tcl.m4:799: TEA_ENABLE_THREADS is expanded from...
configure.ac:128: the top level
configure.ac:135: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:135: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
tclconfig/tcl.m4:714: TEA_ENABLE_SHARED is expanded from...
configure.ac:135: the top level
configure.ac:143: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_RUN' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
tclconfig/tcl.m4:2583: TEA_TCL_EARLY_FLAG is expanded from...
tclconfig/tcl.m4:2596: TEA_TCL_EARLY_FLAGS is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
tclconfig/tcl.m4:2630: TEA_TCL_64BIT_FLAGS is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:143: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:143: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
tclconfig/tcl.m4:2630: TEA_TCL_64BIT_FLAGS is expanded from...
tclconfig/tcl.m4:1100: TEA_CONFIG_CFLAGS is expanded from...
configure.ac:143: the top level
configure.ac:149: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:149: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
tclconfig/tcl.m4:919: TEA_ENABLE_SYMBOLS is expanded from...
configure.ac:149: the top level
configure.ac:260: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:260: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:260: the top level
configure.ac:293: warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS
    debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- --libdir=/usr/lib/tcltk/x86_64-linux-gnu --enable-stubs --with-xml2-config="x86_64-linux-gnu-pkgconf libxml-2.0" --with-xslt-config="x86_64-linux-gnu-pkgconf libxslt"
	./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --libdir=/usr/lib/tcltk/x86_64-linux-gnu --enable-stubs "--with-xml2-config=x86_64-linux-gnu-pkgconf libxml-2.0" "--with-xslt-config=x86_64-linux-gnu-pkgconf libxslt"
checking TEA configuration... ok (TEA 3.13)
configure: configuring tclxml 3.2
checking system version... Linux-6.1.0-27-amd64
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for existence of /usr/lib/tclConfig.sh... loading
checking platform... unix
configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /usr
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking if the compiler understands -pipe... yes
checking whether byte ordering is bigendian... no
checking for Tcl public headers... /usr/include/tcl8.6
checking for pthread_mutex_init in -lpthread... yes
checking for building with threads... yes (default)
checking how to build libraries... shared
checking for ranlib... (cached) ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... yes
checking if rpath support is requested... yes
checking system version... (cached) Linux-6.1.0-27-amd64
checking for ar... ar
checking for cast to union support... yes
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... using long
checking for build with symbols... no
checking for egrep -e... /usr/bin/grep -E
checking for tclsh... /usr/bin/tclsh8.6
checking for xml2-config script... x86_64-linux-gnu-pkgconf libxml-2.0
checking for xslt-config script... x86_64-linux-gnu-pkgconf libxslt
checking for static linking of XML/XSLT libraries... use dynamic linking
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pkgIndex.tcl
config.status: creating tclxmlConfig.sh
config.status: creating include/tclxml/tclxml.h
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_build
	make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gcc -DPACKAGE_NAME=\"tclxml\" -DPACKAGE_TARNAME=\"tclxml\" -DPACKAGE_VERSION=\"3.2\" -DPACKAGE_STRING=\"tclxml\ 3.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_tclxml=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DUSE_TCL_STUBS=1 -DUSE_TCLOO_STUBS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -I/usr/include/libxml2  -I/usr/include/libxml2  -I./include -I"/usr/include/tcl8.6"    -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c `echo tclxml.c` -o tclxml.o
gcc -DPACKAGE_NAME=\"tclxml\" -DPACKAGE_TARNAME=\"tclxml\" -DPACKAGE_VERSION=\"3.2\" -DPACKAGE_STRING=\"tclxml\ 3.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_tclxml=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DUSE_TCL_STUBS=1 -DUSE_TCLOO_STUBS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -I/usr/include/libxml2  -I/usr/include/libxml2  -I./include -I"/usr/include/tcl8.6"    -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -O2 -fomit-frame-pointer -DNDEBUG -Wall -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -c `echo docObj.c` -o docObj.o
docObj.c: In function ‘TclXML_libxml2_InitDocObj’:
docObj.c:124:60: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]
   124 |   xmlSetStructuredErrorFunc((void *) tsdPtr->errorInfoPtr, TclXML_libxml2_ErrorHandler);
       |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
       |                                                            |
       |                                                            void (*)(void *, const struct _xmlError *)
In file included from /usr/include/libxml2/libxml/valid.h:15,
                  from /usr/include/libxml2/libxml/parser.h:19,
                  from /usr/include/libxml2/libxml/globals.h:18,
                  from /usr/include/libxml2/libxml/threads.h:35,
                  from /usr/include/libxml2/libxml/xmlmemory.h:218,
                  from /usr/include/libxml2/libxml/tree.h:1307,
                  from ./include/tclxml-libxml2/tclxml-libxml2.h:20,
                  from docObj.c:16:
/usr/include/libxml2/libxml/xmlerror.h:870:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, struct _xmlError *)’} but argument is of type ‘void (*)(void *, const struct _xmlError *)’
   870 |                                  xmlStructuredErrorFunc handler);
       |                                  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
make[1]: *** [Makefile:314: docObj.o] Error 1
make[1]: *** Waiting for unfinished jobs....
tclxml.c:64:13: warning: ‘whitespace’ defined but not used [-Wunused-variable]
    64 | static char whitespace[] = " \t\r\n";
       |             ^~~~~~~~~~
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202411/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


More information about the Pkg-tcltk-devel mailing list