Summary: | media-sound/tk707-0.8-r1 : tk707AppInit.c:39:32: error: matherr undeclared here (not in a function) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | plevine457, zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | ~arch only | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 637144 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 media-sound:tk707-0.8-r1:20180220-023550.log temp.tbz2 tk707-0.8-glibc227.patch |
Description
Toralf Förster
2018-02-20 16:47:41 UTC
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(+) |