Bug#925701: gnutls28: ftbfs with GCC-9

Andreas Metzler ametzler at bebt.de
Thu Mar 28 19:12:05 GMT 2019


On 2019-03-27 Matthias Klose <doko at debian.org> wrote:
> Package: src:gnutls28
> Version: 3.6.6-3
> Severity: normal
> Tags: sid bullseye
> User: debian-gcc at lists.debian.org
> Usertags: ftbfs-gcc-9
[...]
> GCC 9 also passes the linker option --as-needed by default; typical
> build issues are passing libraries before object files to the linker,
> or underlinking of convenience libraries built from the same source.
[...]
> /usr/bin/ld: cipher-openssl-compat.o: in function `doit':
> ./b4deb/tests/slow/../../../tests/slow/cipher-openssl-compat.c:194: undefined reference to `OPENSSL_init_crypto'

Seems to be fixed by 
-----------
--- gnutls28-3.6.7.orig/tests/slow/Makefile.am
+++ gnutls28-3.6.7/tests/slow/Makefile.am
@@ -53,7 +53,7 @@ check_PROGRAMS = $(ctests) cipher-test c
 TESTS = $(ctests) test-ciphers.sh override-ciphers test-hash-large.sh crypto test-ciphers-api.sh
 
 if HAVE_LIBCRYPTO
-cipher_openssl_compat_LDFLAGS = $(LDADD) $(LIBCRYPTO)
+cipher_openssl_compat_LDADD = $(LDADD) $(LIBCRYPTO)
 
 dist_check_SCRIPTS += test-ciphers-openssl.sh
 check_PROGRAMS += cipher-openssl-compat
-----------
cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Pkg-gnutls-maint mailing list