Bill Allombert on Tue, 27 Sep 2022 17:53:13 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: pari update to 2.15.0 broke giacxcas


On Tue, Sep 27, 2022 at 08:27:19AM -0700, Yuri wrote:
> Hello,
> 
> 
> While attempting to update the FreeBSD port math/pari to 2.15.0 I attempted
> to rebuild all ports that depend on Pari and math/giacxcas was the only one
> that broke:
> 
> 
> ari.cc:752:24: error: unknown type name 'ANYARG'
>   typedef GEN (*PFGEN)(ANYARG);
> 
> What is the problem?

Hello Yuri, this is a known issue.

This used to be defined as
#ifdef __cplusplus
#  define ANYARG ...
#else
#  define ANYARG
#endif

We removed it because gcc 12 do not like it, and that definition is 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.

Cheers,
Bill.