Package: src:cvm
Version: 0.97-3.1
Severity: important
Tags: sid trixie
User: [email protected]
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/cvm_0.97-3.1_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

[...]
client_xfer_compat.c: In function ‘wrapper’:
client_xfer_compat.c:41:39: warning: ‘sizeof’ on array function parameter 
‘buffer’ will return size of ‘unsigned char *’ [-Wsizeof-array-argument]
   41 |   memcpy(request.data, buffer, sizeof buffer);
      |                                       ^~~~~~
client_xfer_compat.c:31:39: note: declared here
   31 |                         unsigned char buffer[CVM_BUFSIZE],
      |                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
client_xfer_compat.c:41:39: warning: argument to ‘sizeof’ in ‘memcpy’ call is 
the same pointer type ‘unsigned char *’ as the destination; expected ‘unsigned 
char’ or an explicit length [-Wsizeof-pointer-memaccess]
   41 |   memcpy(request.data, buffer, sizeof buffer);
      |                                       ^~~~~~
client_xfer_compat.c:44:40: warning: ‘sizeof’ on array function parameter 
‘buffer’ will return size of ‘unsigned char *’ [-Wsizeof-array-argument]
   44 |   memcpy(buffer, response.data, sizeof buffer);
      |                                        ^~~~~~
client_xfer_compat.c:31:39: note: declared here
   31 |                         unsigned char buffer[CVM_BUFSIZE],
      |                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
client_xfer_compat.c:44:40: warning: argument to ‘sizeof’ in ‘memcpy’ call is 
the same expression as the destination; did you mean to provide an explicit 
length? [-Wsizeof-pointer-memaccess]
   44 |   memcpy(buffer, response.data, sizeof buffer);
      |                                        ^~~~~~
./ltcompile random.c
./ltcompile module_local_main.c
./ltcompile module_command_main.c
./ltcompile v1client.c
./ltcompile module_udp_main.c
./ltcompile sql-auth.c
./ltcompile sql-query.c
./ltcompile sasl_auth.c
./ltcompile sasl_authenticate.c
./ltcompile sasl_cram_md5.c
./ltcompile sasl_init.c
./ltcompile sasl_login.c
./ltcompile sasl_plain.c
./ltcompile sasl_start.c
./ltcompile qmail-domains.c
./ltcompile qmail-dotfile.c
./ltcompile qmail-init.c
./ltcompile qmail-lookup.c
./ltcompile qmail-users.c
./load sql-query-test sql-query.o -lbg 
Checking for socket libraries: ./makeshlib libcvm-module.la facts.lo 
module_command.lo module_local.lo module_log.lo module_main.lo module_output.lo 
module_request.lo module_udp.lo
no
./makeshlib libcvm-v2client.la v2client.lo v2client_wrappers.lo 
client_domain.lo client_setugid.lo client_setenv.lo client_xfer_command.lo 
client_xfer_compat.lo client_xfer_local.lo client_xfer_udp.lo errors.lo 
facts.lo random.lo
./makeshlib libcvm-local.la module_local.lo module_local_main.lo 
module_request.lo module_output.lo module_log.lo facts.lo
./makeshlib libcvm-command.la module_command.lo module_command_main.lo 
module_request.lo module_output.lo facts.lo
./makeshlib libcvm-v1client.la v1client.lo client_domain.lo client_setugid.lo 
client_setenv.lo client_xfer_command.lo client_xfer_compat.lo 
client_xfer_local.lo client_xfer_udp.lo errors.lo facts.lo
./makeshlib libcvm-udp.la module_udp.lo module_udp_main.lo module_request.lo 
module_output.lo module_log.lo facts.lo
./makeshlib libcvm-sql.la sql-auth.lo sql-query.lo
./makeshlib libcvm-sasl.la sasl_auth.lo sasl_authenticate.lo sasl_cram_md5.lo 
sasl_init.lo sasl_login.lo sasl_plain.lo sasl_start.lo
./ltload cvm-pwfile libcvm-module.la -lbg -lpwcmp `cat crypt.lib` `cat 
socket.lib`
./ltload cvm-unix getpwnam.o libcvm-module.la -lbg `cat crypt.lib` `cat 
shadow.lib` `cat s.lib` `cat socket.lib`
./makeshlib libcvm-qmail.la qmail-domains.lo qmail-dotfile.lo qmail-init.lo 
qmail-lookup.lo qmail-users.lo
./ltload cvm-checkpassword libcvm-v2client.la -lbg `cat socket.lib`
./ltload cvm-chain libcvm-module.la libcvm-v2client.la -lbg `cat socket.lib` 
`cat s.lib`
./ltload cvm-testclient libcvm-v2client.la -lbg `cat socket.lib`
./ltload cvm-benchclient libcvm-v2client.la -lbg `cat socket.lib`
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libpwcmp.a(client.o): in 
function `pwcmp_crypt':
(.text+0x29): undefined reference to `crypt'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:109: cvm-pwfile] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/ld: cvm-unix.o: in function `cvm_module_authenticate':
././cvm-unix.c:55:(.text+0x75): undefined reference to `crypt'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:133: cvm-unix] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned 
exit code 2
make[1]: *** [debian/rules:26: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to