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

Bug 710114

Summary: x11-plugins/wmmp3-0.12-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
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
temp.tbz2
x11-plugins:wmmp3-0.12-r1:20200218-205013.log

Description Toralf Förster gentoo-dev 2020-02-18 21:32:35 UTC
      |   ^~~~
song_hash.c:76:3: warning: incompatible implicit declaration of built-in function free
song_hash.c:76:3: note: include <stdlib.h> or provide a declaration of free
gcc  -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -o wmmp3  main.o mpg123ctl.o wmgeneral.o buttons.o song_hash.o  -lXpm -lXext -lX11 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: mpg123ctl.o:(.bss+0xae0): multiple definition of `wmfont'; main.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: mpg123ctl.o:(.bss+0xbe0): multiple definition of `wmgen'; main.o:(.bss+0x100): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20200215-095802

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

  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.41.0 *
java-config:
The following VMs are available for generation-2:

ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 18 Feb 2020 19:37:30 +0000

emerge -qpvO x11-plugins/wmmp3
[ebuild  N    ] x11-plugins/wmmp3-0.12-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-18 21:32:38 UTC
Created attachment 614412 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-18 21:32:41 UTC
Created attachment 614414 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-18 21:32:44 UTC
Created attachment 614416 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-18 21:32:47 UTC
Created attachment 614418 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-18 21:32:49 UTC
Created attachment 614420 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-18 21:32:52 UTC
Created attachment 614422 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-18 21:32:55 UTC
Created attachment 614424 [details]
x11-plugins:wmmp3-0.12-r1:20200218-205013.log
Comment 8 Larry the Git Cow gentoo-dev 2020-05-08 22:54:25 UTC
The bug has been closed via the following commit(s):

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

commit 189b59c8a00387da620965e5527fe3a9ba1d8b9f
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2020-05-08 17:18:42 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2020-05-08 22:54:14 +0000

    x11-plugins/wmmp3: fix build with -fno-common
    
    Closes: https://bugs.gentoo.org/710114
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 .../wmmp3/files/wmmp3-0.12-fno-common.patch        | 33 ++++++++++++++++++++++
 x11-plugins/wmmp3/wmmp3-0.12-r1.ebuild             |  6 ++--
 2 files changed, 37 insertions(+), 2 deletions(-)