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

Bug 706954

Summary: net-misc/wput-0.6.1-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sources.debian.org/patches/wput/0.6.2+git20130413-9/single-declaration.patch/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-misc:wput-0.6.1-r1:20200128-135637.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 18:47:47 UTC
ftp-ls.c:352:21: warning: ‘cur.perms’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  352 |       && (cur.perms & 0111)
      |          ~~~~~~~~~~~^~~~~~~
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o ../wput wput.o netrc.o ftp.o ftplib.o utils.o progress.o socketlib.o queue.o ftp-ls.o   
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netrc.o:(.bss+0x0): multiple definition of `opt'; wput.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ftp.o:(.bss+0x0): multiple definition of `opt'; wput.o:(.bss+0x20): first defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200126-201521

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 28 Jan 2020 12:46:19 +0000

emerge -qpvO net-misc/wput
[ebuild  N    ] net-misc/wput-0.6.1-r1  USE="nls ssl -debug"
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:47:50 UTC
Created attachment 606810 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:47:53 UTC
Created attachment 606812 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:47:56 UTC
Created attachment 606814 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:47:59 UTC
Created attachment 606816 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:48:02 UTC
Created attachment 606818 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:48:05 UTC
Created attachment 606820 [details]
net-misc:wput-0.6.1-r1:20200128-135637.log
Comment 7 Toralf Förster gentoo-dev 2020-01-28 18:48:08 UTC
Created attachment 606822 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-11-01 05:11:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1e12b78372b32130e849b458f6dbdf2df363e7a

commit a1e12b78372b32130e849b458f6dbdf2df363e7a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-11-01 05:01:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-11-01 05:10:19 +0000

    net-misc/wput: fix build with gcc 10
    
    Closes: https://bugs.gentoo.org/706954
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/wput/files/wput-0.6-gentoo.diff           |  5 ++---
 net-misc/wput/files/wput-0.6-respectldflags.patch  |  4 +---
 net-misc/wput/files/wput-0.6.2-fno-common.patch    | 25 ++++++++++++++++++++++
 .../wput/files/wput-0.6.2-respect-destdir.patch    |  2 --
 net-misc/wput/files/wput-fix-crash.patch           |  5 ++---
 net-misc/wput/wput-0.6.1-r1.ebuild                 | 15 +++++--------
 net-misc/wput/wput-0.6.2.ebuild                    |  9 ++++----
 7 files changed, 39 insertions(+), 26 deletions(-)