Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #363811 > unrolled thread

Bug#1071307: fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage

Started bySantiago Vila <sanvila@debian.org>
First post2024-05-17 22:50 +0200
Last post2024-05-28 15:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.rc


Contents

  Bug#1071307: fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage Santiago Vila <sanvila@debian.org> - 2024-05-17 22:50 +0200
    Bug#1071307: marked as done (fte: FTBFS: /usr/include/string.h:506:15:  error: conflicting declaration of ‘size_t  strlcpy(char*, const char*, size_t)’ with  ‘C’ linkage) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-05-28 15:40 +0200

#363811 — Bug#1071307: fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage

FromSantiago Vila <sanvila@debian.org>
Date2024-05-17 22:50 +0200
SubjectBug#1071307: fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage
Message-ID<IFcGX-e26K-115@gated-at.bofh.it>
Package: src:fte
Version: 0.50.2b6-20110708-5
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
  debian/rules build
dh build
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -D src -- -f fte-unix.mak
	cd src && make -j2 "INSTALL=install --strip-program=true" -f fte-unix.mak
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -c cfte.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g    -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include  -I/usr/include/slang -DUNIX -DLINUX
g++ -c s_files.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g    -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include  -I/usr/include/slang -DUNIX -DLINUX
g++ -c s_string.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -g    -I/usr/include/qt3 -I/usr/lib64/qt-3.3/include  -I/usr/include/slang -DUNIX -DLINUX
In file included from s_string.cpp:3:
/usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage
   506 | extern size_t strlcpy (char *__restrict __dest,
       |               ^~~~~~~
In file included from s_string.cpp:1:
s_string.h:10:8: note: previous declaration with ‘C++’ linkage
    10 | size_t strlcpy(char *dst, const char *src, size_t size);
       |        ^~~~~~~
/usr/include/string.h:506:15: error: declaration of ‘size_t strlcpy(char*, const char*, size_t) noexcept’ has a different exception specifier
   506 | extern size_t strlcpy (char *__restrict __dest,
       |               ^~~~~~~
s_string.h:10:8: note: from previous declaration ‘size_t strlcpy(char*, const char*, size_t)’
    10 | size_t strlcpy(char *dst, const char *src, size_t size);
       |        ^~~~~~~
/usr/include/string.h:512:15: error: conflicting declaration of ‘size_t strlcat(char*, const char*, size_t)’ with ‘C’ linkage
   512 | extern size_t strlcat (char *__restrict __dest,
       |               ^~~~~~~
s_string.h:14:8: note: previous declaration with ‘C++’ linkage
    14 | size_t strlcat(char *dst, const char *src, size_t size);
       |        ^~~~~~~
/usr/include/string.h:512:15: error: declaration of ‘size_t strlcat(char*, const char*, size_t) noexcept’ has a different exception specifier
   512 | extern size_t strlcat (char *__restrict __dest,
       |               ^~~~~~~
s_string.h:14:8: note: from previous declaration ‘size_t strlcat(char*, const char*, size_t)’
    14 | size_t strlcat(char *dst, const char *src, size_t size);
       |        ^~~~~~~
make[2]: *** [fte-unix.mak:159: s_string.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cfte.cpp: In function ‘int LoadFile(const char*, const char*, int)’:
cfte.cpp:1885:29: warning: ‘localconfig/’ directive writing 12 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
  1885 |             sprintf(tmp, "%slocalconfig/%s", StartDir, CfgName);
       |                             ^~~~~~~~~~~~
In file included from /usr/include/stdio.h:964,
                  from cfte.cpp:22:
In function ‘int sprintf(char*, const char*, ...)’,
     inlined from ‘int LoadFile(const char*, const char*, int)’ at cfte.cpp:1885:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: ‘__builtin___sprintf_chk’ output 13 or more bytes (assuming 1036) into a destination of size 1024
    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
       |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    31 |                                   __glibc_objsize (__s), __fmt,
       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    32 |                                   __va_arg_pack ());
       |                                   ~~~~~~~~~~~~~~~~~
cfte.cpp: In function ‘int LoadFile(const char*, const char*, int)’:
cfte.cpp:1893:37: warning: ‘config/’ directive writing 7 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
  1893 |                     sprintf(tmp, "%sconfig/%s", StartDir, CfgName);
       |                                     ^~~~~~~
In function ‘int sprintf(char*, const char*, ...)’,
     inlined from ‘int LoadFile(const char*, const char*, int)’ at cfte.cpp:1893:28:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: ‘__builtin___sprintf_chk’ output 8 or more bytes (assuming 1031) into a destination of size 1024
    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
       |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    31 |                                   __glibc_objsize (__s), __fmt,
       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    32 |                                   __va_arg_pack ());
       |                                   ~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
dh_auto_build: error: cd src && make -j2 "INSTALL=install --strip-program=true" -f fte-unix.mak returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: build] Error 2
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.

[toc] | [next] | [standalone]


#364347 — Bug#1071307: marked as done (fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2024-05-28 15:40 +0200
SubjectBug#1071307: marked as done (fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage)
Message-ID<IJ5dv-gpV6-1@gated-at.bofh.it>
In reply to#363811

[Multipart message — attachments visible in raw view] — view raw

Your message dated Tue, 28 May 2024 13:34:05 +0000
with message-id <E1sBwxp-00B0Z8-Sz@fasolo.debian.org>
and subject line Bug#1071307: fixed in fte 0.50.2b6-20110708-6
has caused the Debian Bug report #1071307,
regarding fte: FTBFS: /usr/include/string.h:506:15: error: conflicting declaration of ‘size_t strlcpy(char*, const char*, size_t)’ with ‘C’ linkage
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1071307: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071307
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web