Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638580 - media-sound/adplay-1.7: error: declaration of ‘int getopt(int, char* const*, const char*) throw ()’ has a different exception specifier
Summary: media-sound/adplay-1.7: error: declaration of ‘int getopt(int, char* const*, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-23 17:24 UTC by Steffen 'j0inty' Stollfuß
Modified: 2018-12-12 23:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,11.22 KB, text/x-log)
2017-11-23 17:25 UTC, Steffen 'j0inty' Stollfuß
Details
emerge-info.txt (emerge-info.txt,17.54 KB, text/plain)
2017-12-15 08:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,267.76 KB, text/plain)
2017-12-15 08:32 UTC, Toralf Förster
Details
environment (environment,18.22 KB, text/plain)
2017-12-15 08:32 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.88 KB, application/x-bzip)
2017-12-15 08:32 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.19 KB, application/x-bzip)
2017-12-15 08:32 UTC, Toralf Förster
Details
media-sound:adplay-1.7:20171215-011038.log (media-sound:adplay-1.7:20171215-011038.log,10.26 KB, text/plain)
2017-12-15 08:32 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,8.94 KB, application/x-bzip)
2017-12-15 08:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen 'j0inty' Stollfuß 2017-11-23 17:24:16 UTC
Hi,

today I switched to the new gcc-7.2.0 profile but now I'm not able to compile the adplay package again.

gr33tz
j0inty

Reproducible: Always

Steps to Reproduce:
1. switch to gcc-7.2.0
2. emerge adplay
3.
Actual Results:  
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libbinio  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DADPLUG_DATA_DIR=\"/usr/com/adplug\"   -march=skylake -O2 -pipe -c -o alsa.o alsa.cc
In file included from /usr/include/bits/getopt_posix.h:27:0,
                 from /usr/include/unistd.h:872,
                 from /usr/include/alsa/asoundlib.h:31,
                 from alsa.h:25,
                 from players.h:79,
                 from adplay.cc:46:
/usr/include/bits/getopt_core.h:91:12: error: declaration of ‘int getopt(int, char* const*, const char*) throw ()’ has a different exception specifier
 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
            ^~~~~~
In file included from adplay.cc:40:0:
getopt.h:134:12: note: from previous declaration ‘int getopt(int, char* const*, const char*)’
 extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
            ^~~~~~
make[2]: *** [Makefile:375: adplay.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-sound/adplay-1.7/work/adplay-1.7/src'
Comment 1 Steffen 'j0inty' Stollfuß 2017-11-23 17:25:36 UTC
Created attachment 505908 [details]
build.log
Comment 2 Toralf Förster gentoo-dev 2017-12-15 08:32:17 UTC
confirmed at 17.0-desktop-plasma-systemd_libressl_20171208-173134
Comment 3 Toralf Förster gentoo-dev 2017-12-15 08:32:20 UTC
Created attachment 510082 [details]
emerge-info.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-15 08:32:23 UTC
Created attachment 510084 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-12-15 08:32:27 UTC
Created attachment 510086 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-12-15 08:32:29 UTC
Created attachment 510088 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-12-15 08:32:33 UTC
Created attachment 510090 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2017-12-15 08:32:36 UTC
Created attachment 510092 [details]
media-sound:adplay-1.7:20171215-011038.log
Comment 9 Toralf Förster gentoo-dev 2017-12-15 08:32:39 UTC
Created attachment 510094 [details]
temp.tbz2
Comment 10 Sławomir Nizio 2018-08-19 18:04:27 UTC
fixed upstream:

https://github.com/adplug/adplay-unix/commit/aa4718cdbf1e9d6427960f3239c87b0e71434317

and fwiw in the "sabayon" overlay too.
Comment 11 Larry the Git Cow gentoo-dev 2018-12-12 23:48:57 UTC
The bug has been closed via the following commit(s):

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

commit c0fe1489af29c9159ec8709779e7a56cbd657047
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-12-12 23:48:43 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-12-12 23:48:49 +0000

    media-sound/adplay: bump up to 1.8, bug #638580
    
    New release fixes build failure against modern glibc.
    
    Reported-by: Steffen 'j0inty' Stollfuß
    Closes: https://bugs.gentoo.org/638580
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 media-sound/adplay/Manifest          |  1 +
 media-sound/adplay/adplay-1.8.ebuild | 30 ++++++++++++++++++++++++++++++
 media-sound/adplay/metadata.xml      |  1 +
 3 files changed, 32 insertions(+)