Bug#1000853: kronosnet: FTBFS on alpha, hppa and ia64 due to uncondtional use of -fstack-protector

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.ia64
Message-ID <163826474067.1170804.13014471614834522233.reportbug__27258.3973872074$1638264817$gmane$org@nofan.physik.fu-berlin.de>
Source: kronosnet
Severity: normal
Tags: upstream
User: [email protected]
Usertags: alpha hppa ia64
X-Debbugs-Cc: [email protected],[email protected],[email protected]

Hi!

kronosnet FTBFS on alpha, hppa and ia64 due to unconditional use of -fstack-protector
which is not supported on these targets and hence generates a compiler warning.

Since the package is being built with -Werror, this causes the package to FTBFS:

/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ggdb3 -Werror -Wall -Wextra  -fPIC -DPIC -pie -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -Wno-unused-parameter -pthread -I/usr/include/libnl3 -I/usr/include/libnl3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security -c -o libnozzle_la-libnozzle.lo `test -f 'libnozzle.c' || echo './'`libnozzle.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ggdb3 -Werror -Wall -Wextra -fPIC -DPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -Wno-unused-parameter -pthread -I/usr/include/libnl3 -I/usr/include/libnl3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security -c libnozzle.c  -fPIC -DPIC -o .libs/libnozzle_la-libnozzle.o
cc1: error: ‘-fstack-protector’ not supported for this target [-Werror]
cc1: all warnings being treated as errors

Full log in [1]. Reported upstream as [2].

For a possible fix, have a look at this similar bug in libfido2 [3].

Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=kronosnet&arch=alpha&ver=1.23-1&stamp=1638252618&raw=0
> [2] https://github.com/kronosnet/kronosnet/issues/371
> [3] https://bugs.debian.org/996428

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.