Bug#1020436: giac FTBFS with PARI 2.15.0
Bill Allombert
ballombe at debian.org
Sat Oct 1 20:46:37 BST 2022
On Wed, Sep 21, 2022 at 09:01:51PM +0300, Adrian Bunk wrote:
> Source: giac
> Version: 1.9.0.19+dfsg2-1
> Severity: serious
> Tags: ftbfs
>
> https://buildd.debian.org/status/logs.php?pkg=giac&ver=1.9.0.19%2Bdfsg2-1%2Bb1
>
> ...
> pari.cc: At global scope:
> pari.cc:752:17: error: typedef ‘giac::PFGEN’ is initialized (use ‘decltype’ instead)
> 752 | typedef GEN (*PFGEN)(ANYARG);
> | ^~~~~
> pari.cc:752:24: error: ‘ANYARG’ was not declared in this scope
This is my comment on this bug:
PARI used to define ANYARG as
#ifdef __cplusplus
# define ANYARG ...
#else
# define ANYARG
#endif
This definition was removed because newer gcc/clang do not like to call
function without prototype and it was not particularly
useful.
So you can replace this by
typedef GEN (*PFGEN)();
if you like, but recent gcc 12 will issue warning.
In PARI we changed EVAL_f to cast the pointer to the right prototype
before calling it.
Sorry for the trouble.
Cheers,
--
Bill. <ballombe at debian.org>
Imagine a large red swirl here.
More information about the debian-science-maintainers
mailing list