[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1071296: blobwars: FTBFS: src/headers.h:60:20: error: ambiguating new declaration of ‘void strlcat(char*, const char*, size_t)’



Package: src:blobwars
Version: 2.00-4
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules build
dh build --parallel
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_update_autotools_config -O--parallel
   dh_auto_configure -O--parallel
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_build -O--parallel
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
	make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `pkg-config --cflags sdl2 SDL2_mixer SDL2_image SDL2_ttf SDL2_net` -DVERSION=2.00 -DRELEASE=1 -DUSEPAK=0 -DPAKNAME=\"blobwars.pak\" -DPAKLOCATION=\"/usr/share/games/blobwars/\" -DUNIX -DGAMEPLAYMANUAL=\"/usr/share/doc/blobwars/index.html\" -Wall -DLOCALEDIR=\"/usr/share/locale/\" -DMEDAL_SERVER_HOST=\"www.parallelrealities.co.uk\" -DMEDAL_SERVER_PORT=80 -Wdate-time -D_FORTIFY_SOURCE=2 -flto -c src/CAudio.cpp
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `pkg-config --cflags sdl2 SDL2_mixer SDL2_image SDL2_ttf SDL2_net` -DVERSION=2.00 -DRELEASE=1 -DUSEPAK=0 -DPAKNAME=\"blobwars.pak\" -DPAKLOCATION=\"/usr/share/games/blobwars/\" -DUNIX -DGAMEPLAYMANUAL=\"/usr/share/doc/blobwars/index.html\" -Wall -DLOCALEDIR=\"/usr/share/locale/\" -DMEDAL_SERVER_HOST=\"www.parallelrealities.co.uk\" -DMEDAL_SERVER_PORT=80 -Wdate-time -D_FORTIFY_SOURCE=2 -flto -c src/CBoss.cpp
In file included from src/CBoss.cpp:22:
src/headers.h:60:20: error: ambiguating new declaration of ‘void strlcat(char*, const char*, size_t)’
   60 | static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); }
      |                    ^~~~~~~
In file included from src/CAudio.cpp:22:
src/headers.h:60:20: error: ambiguating new declaration of ‘void strlcat(char*, const char*, size_t)’
   60 | static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); }
      |                    ^~~~~~~
In file included from /usr/include/features.h:502,
                 from /usr/include/errno.h:25,
                 from src/headers.h:22:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:167:1: note: old declaration ‘size_t strlcat(char*, const char*, size_t)’
  167 | __NTH (strlcat (char *__restrict __dest, const char *__restrict __src,
      | ^~~~~
src/headers.h:61:20: error: ambiguating new declaration of ‘void strlcpy(char*, const char*, size_t)’
   61 | static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; }
      |                    ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:150:1: note: old declaration ‘size_t strlcpy(char*, const char*, size_t)’
  150 | __NTH (strlcpy (char *__restrict __dest, const char *__restrict __src,
      | ^~~~~
In file included from /usr/include/features.h:502,
                 from /usr/include/errno.h:25,
                 from src/headers.h:22:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:167:1: note: old declaration ‘size_t strlcat(char*, const char*, size_t)’
  167 | __NTH (strlcat (char *__restrict __dest, const char *__restrict __src,
      | ^~~~~
src/headers.h:61:20: error: ambiguating new declaration of ‘void strlcpy(char*, const char*, size_t)’
   61 | static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; }
      |                    ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:150:1: note: old declaration ‘size_t strlcpy(char*, const char*, size_t)’
  150 | __NTH (strlcpy (char *__restrict __dest, const char *__restrict __src,
      | ^~~~~
make[1]: *** [Makefile:84: CBoss.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:84: CAudio.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:7: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


Reply to: