tech-pkg archive

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

R-s2 on -current?



Hi,

my bulk build on NetBSD/macppc 9.99.98 has hit an error while
building geography/R-s2, apparently because it tries to reach
inside the private BGINUM implementation defined via OpenSSL.

They way I read this it likely is not a platform-specific error.

Any hints for how to deal with it?

The build is done as part of the "install" phase, and in my case
the build log for that phase ends with a lot of errors, but they
are typically all of the same form:

c++ -std=gnu++11 -I"/usr/pkg/lib/R/include" -DNDEBUG -I../inst/include -DSTRICT_R_HEADERS -I'/usr/pkg/lib/R/library/Rcpp/include' -I'/usr/pkg/lib/R/library/wk/include' -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5 -DIS_BIG_ENDIAN -pthread -fpic  -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/include/krb5  -c s2/util/math/exactfloat/exactfloat.cc -o s2/util/math/exactfloat/exactfloat.o
s2/util/math/exactfloat/exactfloat.cc: In function 'uint64 BN_ext_get_uint64(const BIGNUM*)':
s2/util/math/exactfloat/exactfloat.cc:104:9: error: invalid use of incomplete type 'const BIGNUM' {aka 'const struct bignum_st'}
  104 |   if (bn->top == 0) return 0;
      |         ^~
In file included from /usr/include/openssl/bn.h:19,
                 from ../inst/include/s2/util/math/exactfloat/exactfloat.h:119,
                 from s2/util/math/exactfloat/exactfloat.cc:18:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'BIGNUM' {aka 'struct bignum_st'}
   80 | typedef struct bignum_st BIGNUM;
      |                ^~~~~~~~~

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index