Bug#1075196: libopendbx: ftbfs with GCC-14
Package: src:libopendbx
Version: 1.4.6-17
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14
[This bug is targeted to the upcoming trixie release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/libopendbx_1.4.6-17_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html
[...]
firebird_basic.c: In function ‘firebird_odbx_row_fetch’:
firebird_basic.c:547:119: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
547 | len = snprintf( da->sqlvar[i].sqldata, firebird_priv_collength( da->sqlvar + i ), "%lld", *((int64_t*) da->sqlvar[i].sqldata) );
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | int64_t {aka long int}
| long long int
| %ld
make[4]: *** [Makefile:520: libfirebirdbackend_la-firebird_basic.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
firebird_lo.c: In function ‘firebird_odbx_lo_open’:
firebird_lo.c:50:42: error: passing argument 2 of ‘isc_open_blob2’ from incompatible pointer type [-Wincompatible-pointer-types]
50 | if( isc_open_blob2( fbc->status, &(result->handle->generic), fbc->tr + fbc->trlevel, &((*lo)->generic), (ISC_QUAD*) value, 0, NULL ) != 0 )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void **
In file included from firebirdbackend.h:24,
from firebird_lo.h:11,
from firebird_lo.c:12:
/usr/include/ibase.h:839:74: note: expected ‘isc_db_handle *’ {aka ‘unsigned int *’} but argument is of type ‘void **’
839 | isc_db_handle*,
| ^~~~~~~~~~~~~~
firebird_lo.c:50:94: error: passing argument 4 of ‘isc_open_blob2’ from incompatible pointer type [-Wincompatible-pointer-types]
50 | if( isc_open_blob2( fbc->status, &(result->handle->generic), fbc->tr + fbc->trlevel, &((*lo)->generic), (ISC_QUAD*) value, 0, NULL ) != 0 )
| ^~~~~~~~~~~~~~~~~
| |
| void **
/usr/include/ibase.h:841:74: note: expected ‘isc_blob_handle *’ {aka ‘unsigned int *’} but argument is of type ‘void **’
841 | isc_blob_handle*,
| ^~~~~~~~~~~~~~~~
firebird_lo.c: In function ‘firebird_odbx_lo_close’:
firebird_lo.c:65:81: error: passing argument 2 of ‘isc_close_blob’ from incompatible pointer type [-Wincompatible-pointer-types]
65 | if( isc_close_blob( ((struct fbconn*) lo->result->handle->aux)->status, &(lo->generic) ) != 0 )
| ^~~~~~~~~~~~~~
| |
| void **
/usr/include/ibase.h:622:74: note: expected ‘isc_blob_handle *’ {aka ‘unsigned int *’} but argument is of type ‘void **’
622 | isc_blob_handle *);
| ^~~~~~~~~~~~~~~~~
firebird_lo.c: In function ‘firebird_odbx_lo_read’:
firebird_lo.c:107:45: error: passing argument 2 of ‘isc_get_segment’ from incompatible pointer type [-Wincompatible-pointer-types]
107 | err = isc_get_segment( fbc->status, &(lo->generic), &bytes, len, (char*) buffer );
| ^~~~~~~~~~~~~~
| |
| void **
/usr/include/ibase.h:806:75: note: expected ‘isc_blob_handle *’ {aka ‘unsigned int *’} but argument is of type ‘void **’
806 | isc_blob_handle *,
| ^~~~~~~~~~~~~~~~~
firebird_lo.c: In function ‘firebird_odbx_lo_write’:
firebird_lo.c:125:43: error: passing argument 2 of ‘isc_put_segment’ from incompatible pointer type [-Wincompatible-pointer-types]
125 | if( isc_put_segment( fbc->status, &(lo->generic), len, (char*) buffer ) != 0 )
| ^~~~~~~~~~~~~~
| |
| void **
/usr/include/ibase.h:857:75: note: expected ‘isc_blob_handle *’ {aka ‘unsigned int *’} but argument is of type ‘void **’
857 | isc_blob_handle*,
| ^~~~~~~~~~~~~~~~
make[4]: *** [Makefile:527: libfirebirdbackend_la-firebird_lo.lo] Error 1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DAPINUMBER=10200 -I../../lib -I/usr/include/mysql -I/usr/include/postgresql -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -std=c99 -MT libfirebirdbackend_la-firebirdbackend.lo -MD -MP -MF .deps/libfirebirdbackend_la-firebirdbackend.Tpo -c firebirdbackend.c -o libfirebirdbackend_la-firebirdbackend.o >/dev/null 2>&1
mv -f .deps/libfirebirdbackend_la-firebirdbackend.Tpo .deps/libfirebirdbackend_la-firebirdbackend.Plo
make[4]: Leaving directory '/<<PKGBUILDDIR>>/backends/firebird'
make[3]: *** [Makefile:399: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/backends'
make[2]: *** [Makefile:522: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:427: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:46: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: