mv -f .deps/play.Tpo .deps/play.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -march=native -MT tk707AppInit.o -MD -MP -MF .deps/tk707AppInit.Tpo -c -o tk707AppInit.o tk707AppInit.c tk707AppInit.c:39:32: error: ‘matherr’ undeclared here (not in a function); did you mean ‘stderr’? int *tclDummyMathPtr = (int *) matherr; ^~~~~~~ stderr ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-gnome_20180218-103801 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby22 (with Rubygems) [2] ruby23 (with Rubygems) * emerge -qpv media-sound/tk707 [ebuild N ] media-sound/tk707-0.8-r1
Created attachment 520284 [details] emerge-info.txt
Created attachment 520286 [details] emerge-history.txt
Created attachment 520288 [details] environment
Created attachment 520290 [details] etc.portage.tbz2
Created attachment 520292 [details] logs.tbz2
Created attachment 520294 [details] media-sound:tk707-0.8-r1:20180220-023550.log
Created attachment 520296 [details] temp.tbz2
Created attachment 525312 [details, diff] tk707-0.8-glibc227.patch The problem is not GCC-7 related. It's due to ~sys-libs/glibc-2.27. From https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html: > libm no longer supports SVID error handling (calling a user-provided > matherr function on error) Furthermore, from https://wiki.tcl.tk/3577: > If you've ever built a custom tclsh or wish, you may have inherited the > following bit of code that first appeared in the tclAppInit.c file in Tcl 7.4: > > | /* > | * The following variable is a special hack that is needed in order for > | * Sun shared libraries to be used for Tcl. > | */ > | > | extern int matherr(); > | int *tclDummyMathPtr = (int *) matherr; > > If so, you should take it out. > The original reason for this special hack has been lost in the sands of time, > but it is definitely no longer needed on current versions of Solaris or any > other modern Unix. The tk707 project appears to have been dead since 2005 and would be a good candidate for removal. Otherwise, this patch just removes the problematic and outdated code.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bda35b5eef6f82734f0bb7ba3adc020af248a90 commit 0bda35b5eef6f82734f0bb7ba3adc020af248a90 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2018-10-21 15:13:08 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2018-10-21 15:17:27 +0000 media-sound/tk707: Fix build with glibc-2.27 Thanks-to: Peter Levine Thanks-to: Toralf Förster Closes: https://bugs.gentoo.org/648308 Signed-off-by: Pacho Ramos <pacho@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 media-sound/tk707/files/tk707-0.8-glibc-2.27.patch | 18 ++++++++++ media-sound/tk707/tk707-0.8-r2.ebuild | 42 ++++++++++++++++++++++ 2 files changed, 60 insertions(+)