[xml/sgml-pkgs] Bug#1073312: libxslt: FTBFS: extensions.c:392:33: error: implicit declaration of function ‘getenv’ [-Werror=implicit-function-declaration]
Lucas Nussbaum
lucas at debian.org
Sun Jun 16 13:48:33 BST 2024
Source: libxslt
Version: 1.1.35-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c -o extra.lo extra.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c extensions.c -fPIC -DPIC -o .libs/extensions.o
> extensions.c: In function ‘xsltExtModuleRegisterDynamic’:
> extensions.c:392:33: error: implicit declaration of function ‘getenv’ [-Werror=implicit-function-declaration]
> 392 | ext_directory = (xmlChar *) getenv("LIBXSLT_PLUGINS_PATH");
> | ^~~~~~
> extensions.c:34:1: note: ‘getenv’ is defined in header ‘<stdlib.h>’; did you forget to ‘#include <stdlib.h>’?
> 33 | #include "extensions.h"
> +++ |+#include <stdlib.h>
> 34 |
> extensions.c:392:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> 392 | ext_directory = (xmlChar *) getenv("LIBXSLT_PLUGINS_PATH");
> | ^
> /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c -o functions.lo functions.c
> numbers.c: In function ‘xsltNumberFormatTokenize’:
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> In file included from numbers.c:22:
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c extra.c -fPIC -DPIC -o .libs/extra.o
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:350:5: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 350 | while (! (IS_LETTER(val=xmlStringCurrentChar(NULL, format+ix, &len)) ||
> | ^~~~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:374:9: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 374 | val = xmlStringCurrentChar(NULL, format+ix, &len);
> | ^~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:381:17: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 381 | val = xmlStringCurrentChar(NULL, format+ix, &len);
> | ^~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:386:17: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 386 | val = xmlStringCurrentChar(NULL, format+ix, &len);
> | ^~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:397:13: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 397 | val = xmlStringCurrentChar(NULL, format+ix, &len);
> | ^~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:419:13: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 419 | val = xmlStringCurrentChar(NULL, format+ix, &len);
> | ^~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> numbers.c:430:13: warning: ‘xmlStringCurrentChar’ is deprecated [-Wdeprecated-declarations]
> 430 | val = xmlStringCurrentChar(NULL, format+ix, &len);
> | ^~~
> /usr/include/libxml2/libxml/parserInternals.h:576:33: note: declared here
> 576 | XMLPUBFUN int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
> | ^~~~~~~~~~~~~~~~~~~~
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c functions.c -fPIC -DPIC -o .libs/functions.o
> functions.c: In function ‘xsltDocumentFunctionLoadDocument’:
> functions.c:207:9: warning: case value ‘5’ not in enumerated type ‘xmlXPathObjectType’ [-Wswitch]
> 207 | case XPATH_POINT:
> | ^~~~
> functions.c:210:9: warning: case value ‘6’ not in enumerated type ‘xmlXPathObjectType’ [-Wswitch]
> 210 | case XPATH_RANGE:
> | ^~~~
> functions.c:211:9: warning: case value ‘7’ not in enumerated type ‘xmlXPathObjectType’ [-Wswitch]
> 211 | case XPATH_LOCATIONSET:
> | ^~~~
> functions.c: In function ‘xsltCleanupIds’:
> functions.c:737:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
> 737 | fprintf(stderr, "Attributed %d IDs for element, cleaned up %d\n",
> | ~^
> | |
> | int
> | %ld
> 738 | ctxt->nextid, count);
> | ~~~~~~~~~~~~
> | |
> | long unsigned int
> /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c -o namespaces.lo namespaces.c
> /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c -o imports.lo imports.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c namespaces.c -fPIC -DPIC -o .libs/namespaces.o
> cc1: some warnings being treated as errors
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libxslt -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wshadow -c imports.c -fPIC -DPIC -o .libs/imports.o
> make[3]: *** [Makefile:600: extensions.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/libxslt_1.1.35-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the debian-xml-sgml-pkgs
mailing list