[OpenAFS-devel] Build fails with gcc 9.1.1

Christof Hanke christof.hanke@mpcdf.mpg.de
Fri, 26 Jul 2019 10:07:43 +0200


Hi,

on  openSUSE-Tumbleweed which is using gcc 9.1.1
The build-process fails with
"""
abuild@dijon:/home/abuild/rpmbuild/BUILD/openafs-1.8.3/src/tptserver> make
/bin/sh ../../libtool --quiet --mode=link --tag=CC gcc -static   -L/home/abuild/rpmbuild/BUILD/openafs-1.8.3/lib -L/home/abuild/rpmbuild/BUILD/openafs-1.8.3/lib  -O   -O2 -Wall  -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -flto=4 -fno-strict-aliasing -fPIC  -O   -I/home/abuild/rpmbuild/BUILD/openafs-1.8.3/src/config -I/home/abuild/rpmbuild/BUILD/openafs-1.8.3/include -I. -I.     -pthread -D_REENTRANT -DAFS_PTHREAD_ENV  -o pt_util pt_util.o ptutils.o ptubik.o utils.o map.o \
        ../../src/ptserver/liboafs_prot.la ../../src/ubik/liboafs_ubik.la ../../src/sys/liboafs_sys.la ../../src/rx/liboafs_rx.la ../../src/rxstat/liboafs_rxstat.la ../../src/lwp/liboafs_lwpcompat.la ../../src/rxkad/liboafs_rxkad.la ../../src/cmd/liboafs_cmd.la ../../src/util/liboafs_util.la ../../src/opr/liboafs_opr.la -lafshcrypto -lrokenafs -lpthread -lresolv  
lto1: fatal error: multiple prevailing defs for 'ubik_SetServerSecurityProcs'
compilation terminated.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:139: pt_util] Error 1


abuild@dijon:/home/abuild/rpmbuild/BUILD/openafs-1.8.3/src/tptserver> gcc --version
gcc (SUSE Linux) 9.1.1 20190703 [gcc-9-branch revision 273008]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


So the actual error is "lto1: fatal error: multiple prevailing defs for 'ubik_SetServerSecurityProcs'"

Do yous have any idea how to fix this ?

Many thanks,

Christof