Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648308 - media-sound/tk707-0.8-r1 : tk707AppInit.c:39:32: error: matherr undeclared here (not in a function)
Summary: media-sound/tk707-0.8-r1 : tk707AppInit.c:39:32: error: matherr undeclared he...
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: ~arch only
Keywords:
Depends on:
Blocks: glibc-2.27
  Show dependency tree
 
Reported: 2018-02-20 16:47 UTC by Toralf Förster
Modified: 2018-10-21 15:17 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.07 KB, text/plain)
2018-02-20 16:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,56.91 KB, text/plain)
2018-02-20 16:47 UTC, Toralf Förster
Details
environment (environment,83.56 KB, text/plain)
2018-02-20 16:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.99 KB, application/x-bzip)
2018-02-20 16:47 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,17.40 KB, application/x-bzip)
2018-02-20 16:47 UTC, Toralf Förster
Details
media-sound:tk707-0.8-r1:20180220-023550.log (media-sound:tk707-0.8-r1:20180220-023550.log,8.34 KB, text/plain)
2018-02-20 16:48 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.45 KB, application/x-bzip)
2018-02-20 16:48 UTC, Toralf Förster
Details
tk707-0.8-glibc227.patch (tk707-0.8-glibc227.patch,466 bytes, patch)
2018-03-25 01:28 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-02-20 16:47:41 UTC
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
Comment 1 Toralf Förster gentoo-dev 2018-02-20 16:47:44 UTC
Created attachment 520284 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-20 16:47:48 UTC
Created attachment 520286 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-02-20 16:47:51 UTC
Created attachment 520288 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-02-20 16:47:55 UTC
Created attachment 520290 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-02-20 16:47:58 UTC
Created attachment 520292 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-02-20 16:48:02 UTC
Created attachment 520294 [details]
media-sound:tk707-0.8-r1:20180220-023550.log
Comment 7 Toralf Förster gentoo-dev 2018-02-20 16:48:06 UTC
Created attachment 520296 [details]
temp.tbz2
Comment 8 Peter Levine 2018-03-25 01:28:46 UTC
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.
Comment 9 Larry the Git Cow gentoo-dev 2018-10-21 15:17:39 UTC
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(+)