Bug#1077350: liblouisutdml: FTBFS: ../java/Jliblouisutdml.c:738:29: error: passing argument 1 of 'lou_registerLogCallback' from incompatible pointer type [-Wincompatible-pointer-types]
Lucas Nussbaum
lucas at debian.org
Sun Jul 28 17:35:24 BST 2024
Source: liblouisutdml
Version: 2.12.0-6
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240727 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.. -DLBU_PATH=\"/usr/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/share/liblouis/tables/\" -DLBULIB -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/include/liblouis -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 -c -o liblouisutdml_la-Jliblouisutdml.lo `test -f '../java/Jliblouisutdml.c' || echo './'`../java/Jliblouisutdml.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DLBU_PATH=\"/usr/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/share/liblouis/tables/\" -DLBULIB -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/include/liblouis -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 -c semantics.c -o liblouisutdml_la-semantics.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DLBU_PATH=\"/usr/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/share/liblouis/tables/\" -DLBULIB -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/include/liblouis -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 -c ../java/Jliblouisutdml.c -fPIC -DPIC -o .libs/liblouisutdml_la-Jliblouisutdml.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DLBU_PATH=\"/usr/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/share/liblouis/tables/\" -DLBULIB -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/include/liblouis -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 -c transcriber.c -fPIC -DPIC -o .libs/liblouisutdml_la-transcriber.o
> ../java/Jliblouisutdml.c: In function 'Java_org_liblouis_LibLouis_registerLogCallback':
> ../java/Jliblouisutdml.c:738:29: error: passing argument 1 of 'lou_registerLogCallback' from incompatible pointer type [-Wincompatible-pointer-types]
> 738 | lou_registerLogCallback(javaLouLogCallback);
> | ^~~~~~~~~~~~~~~~~~
> | |
> | void (*)(int, const char *)
> In file included from ./liblouisutdml.h:34,
> from ./louisutdml.h:35,
> from ../java/Jliblouisutdml.c:30:
> /usr/include/liblouis/liblouis.h:325:37: note: expected 'logcallback' {aka 'void (*)(logLevels, const char *)'} but argument is of type 'void (*)(int, const char *)'
> 325 | lou_registerLogCallback(logcallback callback);
> | ~~~~~~~~~~~~^~~~~~~~
> ../java/Jliblouisutdml.c: In function 'Java_org_liblouis_LibLouisUTDML_registerLogCallback':
> ../java/Jliblouisutdml.c:1377:29: error: passing argument 1 of 'lbu_registerLogCallback' from incompatible pointer type [-Wincompatible-pointer-types]
> 1377 | lbu_registerLogCallback(javaLbuLogCallbackFunc);
> | ^~~~~~~~~~~~~~~~~~~~~~
> | |
> | void (*)(int, const char *)
> ./liblouisutdml.h:171:61: note: expected 'logcallback' {aka 'void (*)(logLevels, const char *)'} but argument is of type 'void (*)(int, const char *)'
> 171 | LBUAPI void EXPORT_CALL lbu_registerLogCallback(logcallback callback);
> | ~~~~~~~~~~~~^~~~~~~~
> make[4]: *** [Makefile:1365: liblouisutdml_la-Jliblouisutdml.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/07/27/liblouisutdml_2.12.0-6_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240727;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240727&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 Pkg-a11y-devel
mailing list