Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 722550

Summary: net-ftp/ncftp-3.2.6: fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Evan Teran <evan.teran>
Component: Current packagesAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    

Description Evan Teran 2020-05-11 20:50:01 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bookmark.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/../ncftp/bookmark.c:27: multiple definition of `gBm'; gpshare.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/gpshare.c:31: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:41: ../bin/ncftpbatch] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bookmark.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/../ncftp/bookmark.c:27: multiple definition of `gBm'; gpshare.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/gpshare.c:31: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bookmark.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/../ncftp/bookmark.c:27: multiple definition of `gBm'; gpshare.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/gpshare.c:31: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: bookmark.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/../ncftp/bookmark.c:27: multiple definition of `gBm'; gpshare.o:/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util/gpshare.c:31: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:33: ../bin/ncftpput] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:29: ../bin/ncftpget] Error 1
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:37: ../bin/ncftpls] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6/sh_util'
make: *** [Makefile:39: progs] Error 2
 * ERROR: net-ftp/ncftp-3.2.6::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-ftp/ncftp-3.2.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-ftp/ncftp-3.2.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-ftp/ncftp-3.2.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-ftp/ncftp-3.2.6/temp/environment'.
 * Working directory: '/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6'
 * S: '/var/tmp/portage/net-ftp/ncftp-3.2.6/work/ncftp-3.2.6'


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-10 10:16:04 UTC
commit 1224a05ef18f8e30298366873ffc7d8065fae62a
Author: Jeroen Roovers <jer@gentoo.org>
Date:   Mon Jan 27 11:15:13 2020 +0100

    net-ftp/ncftp: Fix CFLAGS=-fno-common

    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>