Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659168 - sci-libs/mpfi-1.5.1 : /.../mpfi.h:49:9: error: unknown type name _gmp_const
Summary: sci-libs/mpfi-1.5.1 : /.../mpfi.h:49:9: error: unknown type name _gmp_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 Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-25 19:10 UTC by Toralf Förster
Modified: 2019-04-06 12:54 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.19 KB, text/plain)
2018-06-25 19:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,52.59 KB, text/plain)
2018-06-25 19:10 UTC, Toralf Förster
Details
environment (environment,87.81 KB, text/plain)
2018-06-25 19:10 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.61 KB, application/x-bzip)
2018-06-25 19:10 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.54 KB, application/x-bzip)
2018-06-25 19:10 UTC, Toralf Förster
Details
sci-libs:mpfi-1.5.1:20180625-000148.log (sci-libs:mpfi-1.5.1:20180625-000148.log,49.67 KB, text/plain)
2018-06-25 19:10 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.91 KB, application/x-bzip)
2018-06-25 19:11 UTC, Toralf Förster
Details
ebuild for mpfi-1.5.3 which works (mpfi-1.5.3.ebuild,526 bytes, text/plain)
2018-07-30 13:27 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-25 19:10:40 UTC
In file included from /var/tmp/portage/sci-libs/mpfi-1.5.1/work/mpfi-1.5.1/src/mpfi-impl.h:29:0,
                 from /var/tmp/portage/sci-libs/mpfi-1.5.1/work/mpfi-1.5.1/src/abs.c:26:
/var/tmp/portage/sci-libs/mpfi-1.5.1/work/mpfi-1.5.1/src/mpfi.h:49:9: error: unknown type name '__gmp_const'
 typedef __gmp_const __mpfi_struct *mpfi_srcptr;
         ^~~~~~~~~~~
/var/tmp/portage/sci-libs/mpfi-1.5.1/work/mpfi-1.5.1/src/mpfi.h:49:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_20180623-161021

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv sci-libs/mpfi
[ebuild  N    ] sci-libs/mpfi-1.5.1  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-06-25 19:10:43 UTC
Created attachment 537224 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-25 19:10:45 UTC
Created attachment 537226 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-06-25 19:10:48 UTC
Created attachment 537228 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-06-25 19:10:51 UTC
Created attachment 537230 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-06-25 19:10:54 UTC
Created attachment 537232 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-25 19:10:57 UTC
Created attachment 537234 [details]
sci-libs:mpfi-1.5.1:20180625-000148.log
Comment 7 Toralf Förster gentoo-dev 2018-06-25 19:11:00 UTC
Created attachment 537236 [details]
temp.tbz2
Comment 8 Jeremy Stent 2018-07-02 00:27:52 UTC
This compiles if we replace __gmp_const with const in src/mpfi.h as suggested below

https://github.com/MLton/mlton/issues/3

I also had to add "# define _MPFR_PROTO(x) x"
Comment 9 Helmut Jarausch 2018-07-30 13:27:28 UTC
Created attachment 541726 [details]
ebuild for mpfi-1.5.3 which works
Comment 10 Larry the Git Cow gentoo-dev 2019-04-06 12:54:11 UTC
The bug has been closed via the following commit(s):

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

commit 816535e88e38b049df6358aae11968e0d64ded51
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2019-04-06 12:53:53 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2019-04-06 12:53:53 +0000

    sci-libs/mpfi: Version bump to 1.5.3
    
    Closes: https://bugs.gentoo.org/659168
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: David Seifert <soap@gentoo.org>

 sci-libs/mpfi/Manifest          |  1 +
 sci-libs/mpfi/mpfi-1.5.3.ebuild | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)