With the last version of SWI (pull from github) I get a compile error from the ssl package:
/home/dazzolin/swipl-devel/packages/ssl/crypto4pl.c: In function ‘recover_rsa’:
/home/dazzolin/swipl-devel/packages/ssl/crypto4pl.c:872:26: error: ‘rsa’ undeclared (first use in this function)
if ( get_bn_arg(1, t, &rsa->n) &&
cmake version 3.14. The same happens with cmake version 3.21
Thanks. Depends in SSL version rather than cmake. This should be a problem on old OpenSSL (<1.1) and LibreSSL. Pushed a fix. Please test as I have neither around and thus the patch is untested.
Thanks, this fixes the issue.
However, I still get an error
/home/dazzolin/swipl-devel/src/pl-builtin.h:377:21: error: ‘for’ loop initial declarations are only allowed in C99 mode
#define WITH_LD(ld) for (PL_local_data_t *__PL_ld = (ld), *__loopctr = NULL; !__loopctr; __loopctr++)
^
(and the same in many other positions). This is because (i think) the flag -std=c99 is not selected by default. Is it possible to specify it directly in the cmake file or add some checks?