Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738224 - sci-geosciences/gmt-5.4.4 : /.../common_sighandler.c: error: sys_siglist undeclared (first use in this function)
Summary: sci-geosciences/gmt-5.4.4 : /.../common_sighandler.c: error: sys_siglist unde...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: glibc-2.32
  Show dependency tree
 
Reported: 2020-08-20 15:49 UTC by Toralf Förster
Modified: 2021-03-03 17:40 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.85 KB, text/plain)
2020-08-20 15:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,261.75 KB, text/plain)
2020-08-20 15:49 UTC, Toralf Förster
Details
environment (environment,89.62 KB, text/plain)
2020-08-20 15:49 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,35.29 KB, application/x-bzip)
2020-08-20 15:49 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.85 KB, application/x-bzip)
2020-08-20 15:49 UTC, Toralf Förster
Details
sci-geosciences:gmt-5.4.4:20200820-135003.log (sci-geosciences:gmt-5.4.4:20200820-135003.log,66.48 KB, text/plain)
2020-08-20 15:49 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.43 KB, application/x-bzip)
2020-08-20 15:49 UTC, Toralf Förster
Details
Patching common_sighandler.c (gmt-5.4.4-sys_siglist-depracation.patch,608 bytes, patch)
2021-01-04 11:26 UTC, hangglider
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 2020-08-20 15:49:39 UTC
/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/src/common_sighandler.c: In function ‘sig_handler’:
/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/src/common_sighandler.c:190:73: error: ‘sys_siglist’ undeclared (first use in this function)
  190 |   fprintf (stderr, "ERROR: Caught signal number %d (%s) at\n", sig_num, sys_siglist[sig_num]);
      |                                                                         ^~~~~~~~~~~
/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/src/common_sighandler.c:190:73: note: each undeclared identifier is reported only once for each function it appears in

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200814-212555

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.45.2 *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Aug 20 01:05:42 PM UTC 2020
/var/db/repos/libressl	Mon Aug 10 09:13:35 AM UTC 2020

emerge -qpvO sci-geosciences/gmt
[ebuild  N    ] sci-geosciences/gmt-5.4.4  USE="fftw gdal openmp pcre -doc -examples -gmttria -htmldoc -lapack -pcre2 -threads -tutorial"
Comment 1 Toralf Förster gentoo-dev 2020-08-20 15:49:40 UTC
Created attachment 655744 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-20 15:49:42 UTC
Created attachment 655746 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-08-20 15:49:44 UTC
Created attachment 655748 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-08-20 15:49:45 UTC
Created attachment 655750 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-08-20 15:49:47 UTC
Created attachment 655752 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-08-20 15:49:48 UTC
Created attachment 655754 [details]
sci-geosciences:gmt-5.4.4:20200820-135003.log
Comment 7 Toralf Förster gentoo-dev 2020-08-20 15:49:50 UTC
Created attachment 655756 [details]
temp.tbz2
Comment 8 Uwe Scholz 2020-11-08 21:41:03 UTC
I can confirm this issue, I ran into the same today. According to the project's website, version 6.1.1 is available already. Can we maybe get the updated version in portage to overcome the current build issue here?
Comment 9 hangglider 2020-12-22 21:09:11 UTC
Can be fixed by replacing the affected line:

        fprintf (stderr, "ERROR: Caught signal number %d (%s) at\n", sig_num, sys_siglist[sig_num]);                                                                                                                                           

by

        fprintf (stderr, "ERROR: Caught signal number %d (%s) at\n", sig_num, strsignal(sig_num));                                                                                                                                           

IIRC line 190 in .../gmt-5.4.4/src/common_sighandler.c, too lazy to make a patch from that.
Comment 10 hangglider 2021-01-04 11:26:09 UTC
Created attachment 680995 [details, diff]
Patching common_sighandler.c
Comment 11 Larry the Git Cow gentoo-dev 2021-03-03 17:40:32 UTC
The bug has been closed via the following commit(s):

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

commit 581973a7c1aff3201ff85b07b7004f53156ce7d0
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-03-02 20:08:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-03 16:51:47 +0000

    sci-geosciences/gmt: Apply gcc-10 workaround
    
    * Fix undeclared sys_siglist issue. Thanks to hangglider@gmx.de for providing the patch.
    
    Thanks-to: hangglider@gmx.de
    Closes: https://bugs.gentoo.org/738224
    Closes: https://bugs.gentoo.org/710088
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-geosciences/gmt/files/gmt-5.4.4-sighandler.patch | 14 ++++++++++++++
 sci-geosciences/gmt/gmt-5.4.4.ebuild                 |  7 ++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)