[pkg-lua-devel] Bug#1075239: lua-sql: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:35:23 BST 2024
Package: src:lua-sql
Version: 2.6.0-2
Severity: important
Tags: sid trixie
User: debian-gcc at 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/lua-sql_2.6.0-2_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
[...]
Target build made
Making target build for debian/lua5.1.odbc.dh-lua.conf
/<<PKGBUILDDIR>>/debian/.dh_lua-libtool/libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -DUNIXODBC -Wall -Wextra -o /<<PKGBUILDDIR>>/5.1-sql.odbc/src/luasql.lo src/luasql.c
libtool: compile: x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -DUNIXODBC -Wall -Wextra src/luasql.c -fPIC -DPIC -o /<<PKGBUILDDIR>>/5.1-sql.odbc/src/.libs/luasql.o
libtool: compile: x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -DUNIXODBC -Wall -Wextra src/luasql.c -o /<<PKGBUILDDIR>>/5.1-sql.odbc/src/luasql.o >/dev/null 2>&1
/<<PKGBUILDDIR>>/debian/.dh_lua-libtool/libtool --tag=CC --mode=compile x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -DUNIXODBC -Wall -Wextra -o /<<PKGBUILDDIR>>/5.1-sql.odbc/src/ls_odbc.lo src/ls_odbc.c
libtool: compile: x86_64-linux-gnu-gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/lua5.1 -DUNIXODBC -Wall -Wextra src/ls_odbc.c -fPIC -DPIC -o /<<PKGBUILDDIR>>/5.1-sql.odbc/src/.libs/ls_odbc.o
src/ls_odbc.c: In function ‘raw_execute’:
src/ls_odbc.c:689:51: error: passing argument 2 of ‘SQLRowCount’ from incompatible pointer type [-Wincompatible-pointer-types]
689 | if(error(SQLRowCount(stmt->hstmt, &numrows))) {
| ^~~~~~~~
| |
| SQLINTEGER * {aka int *}
In file included from src/ls_odbc.c:20:
/usr/include/sql.h:768:44: note: expected ‘SQLLEN *’ {aka ‘long int *’} but argument is of type ‘SQLINTEGER *’ {aka ‘int *’}
768 | SQLLEN *RowCount);
| ~~~~~~~~^~~~~~~~
src/ls_odbc.c: In function ‘set_param’:
src/ls_odbc.c:707:78: error: passing argument 10 of ‘SQLBindParameter’ from incompatible pointer type [-Wincompatible-pointer-types]
707 | SQL_DOUBLE, 0, 0, NULL, 0, &cbNull))) {
| ^~~~~~~
| |
| SQLINTEGER * {aka int *}
In file included from src/ls_odbc.c:22:
/usr/include/sqlext.h:2049:32: note: expected ‘SQLLEN *’ {aka ‘long int *’} but argument is of type ‘SQLINTEGER *’ {aka ‘int *’}
2049 | SQLLEN *pcbValue);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
src/ls_odbc.c:723:51: error: passing argument 10 of ‘SQLBindParameter’ from incompatible pointer type [-Wincompatible-pointer-types]
723 | &data->type))) {
| ^~~~~~~~~~~
| |
| SQLINTEGER * {aka int *}
/usr/include/sqlext.h:2049:32: note: expected ‘SQLLEN *’ {aka ‘long int *’} but argument is of type ‘SQLINTEGER *’ {aka ‘int *’}
2049 | SQLLEN *pcbValue);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
src/ls_odbc.c:742:51: error: passing argument 10 of ‘SQLBindParameter’ from incompatible pointer type [-Wincompatible-pointer-types]
742 | &data->type))) {
| ^~~~~~~~~~~
| |
| SQLINTEGER * {aka int *}
/usr/include/sqlext.h:2049:32: note: expected ‘SQLLEN *’ {aka ‘long int *’} but argument is of type ‘SQLINTEGER *’ {aka ‘int *’}
2049 | SQLLEN *pcbValue);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
src/ls_odbc.c:758:51: error: passing argument 10 of ‘SQLBindParameter’ from incompatible pointer type [-Wincompatible-pointer-types]
758 | &data->type))) {
| ^~~~~~~~~~~
| |
| SQLINTEGER * {aka int *}
/usr/include/sqlext.h:2049:32: note: expected ‘SQLLEN *’ {aka ‘long int *’} but argument is of type ‘SQLINTEGER *’ {aka ‘int *’}
2049 | SQLLEN *pcbValue);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
src/ls_odbc.c: In function ‘raw_readparams_table’:
src/ls_odbc.c:777:27: warning: unused variable ‘cbNull’ [-Wunused-variable]
777 | static SQLINTEGER cbNull = SQL_NULL_DATA;
| ^~~~~~
src/ls_odbc.c: In function ‘raw_readparams_args’:
src/ls_odbc.c:805:27: warning: unused variable ‘cbNull’ [-Wunused-variable]
805 | static SQLINTEGER cbNull = SQL_NULL_DATA;
| ^~~~~~
src/ls_odbc.c: In function ‘create_connection’:
src/ls_odbc.c:1037:49: warning: unused parameter ‘o’ [-Wunused-parameter]
1037 | static int create_connection (lua_State *L, int o, env_data *env, SQLHDBC hdbc)
| ~~~~^
make[2]: *** [/usr/share/dh-lua/make/dh-lua.Makefile.single:446: /<<PKGBUILDDIR>>/5.1-sql.odbc/src/ls_odbc.lo] Error 1
make[1]: *** [/usr/share/dh-lua/make/dh-lua.Makefile.multiple:12: build] Error 1
dh_auto_build: error: make --no-print-directory -f /usr/share/dh-lua/make/dh-lua.Makefile.multiple build returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-lua-devel
mailing list