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

Bug 706740

Summary: media-sound/mpg321-0.3.2 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/16066
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
media-sound:mpg321-0.3.2:20200127-181250.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-27 18:17:53 UTC
   82 |    play_device = open_ao_playdevice_buffer(header);
      |                ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -I/usr/include -c -o volume.o volume.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -I/usr/include  -Wl,-O1 -Wl,--as-needed -o mpg321 mpg321.o mad.o playlist.o network.o remote.o ao.o options.o auth.o scrobbler.o fft.o fbuffer.o volume.o  -lm -lpthread -lid3tag -lz -lmad  -L/usr/lib64 -lao -ldl -lz -lpthread -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: mad.o:(.bss+0x8): multiple definition of `Decoded_Frames'; mpg321.o:(.bss+0x21e8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: mad.o:(.bss+0x20): multiple definition of `semarray'; mpg321.o:(.bss+0x2200): first defined here

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

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

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

  Please see the tracker bug for details.

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


llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *


ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 17:10:40 +0000

emerge -qpvO media-sound/mpg321
[ebuild  N    ] media-sound/mpg321-0.3.2  USE="ipv6 -alsa"
Comment 1 Toralf Förster gentoo-dev 2020-01-27 18:17:56 UTC
Created attachment 605698 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 18:17:58 UTC
Created attachment 605700 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 18:18:01 UTC
Created attachment 605702 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 18:18:04 UTC
Created attachment 605704 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 18:18:07 UTC
Created attachment 605706 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-27 18:18:10 UTC
Created attachment 605708 [details]
media-sound:mpg321-0.3.2:20200127-181250.log
Comment 7 Toralf Förster gentoo-dev 2020-01-27 18:18:13 UTC
Created attachment 605710 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-06-06 01:50:08 UTC
The bug has been closed via the following commit(s):

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

commit 33364299eee045ae5df62612a33c9c80dbbe792c
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-06-04 17:51:17 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2020-06-06 01:49:13 +0000

    media-sound/mpg321: update ebuild
    
    Applied security fix from Debian for CVE-2019-14247 (#711918), fixed
    compilation on GCC10 (#706740), updated ebuild to EAPI 7.
    
    Bug: https://bugs.gentoo.org/711918
    Closes: https://bugs.gentoo.org/706740
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16066
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 .../mpg321/files/mpg321-0.3.2-CVE-2019-14247.patch | 20 ++++++
 .../files/mpg321-0.3.2-format-security.patch       |  4 +-
 media-sound/mpg321/files/mpg321-0.3.2-gcc10.patch  | 83 ++++++++++++++++++++++
 media-sound/mpg321/mpg321-0.3.2.ebuild             | 12 +++-
 4 files changed, 114 insertions(+), 5 deletions(-)