Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on fedora41 #1

Open
eserte opened this issue Feb 22, 2025 · 1 comment
Open

Compile error on fedora41 #1

eserte opened this issue Feb 22, 2025 · 1 comment

Comments

@eserte
Copy link

eserte commented Feb 22, 2025

On fedora41 the compilation fails like this:

cc -c  -I/home/cpansand/.cpan/build/2025020622/Alien-libsecp256k1-0.050103-1/blib/lib/auto/share/dist/Alien-libsecp256k1/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.004\" -DXS_VERSION=\"0.004\" -fPIC "-I/opt/perl-5.41.8/lib/5.41.8/x86_64-linux/CORE"   Secp256k1.c
Secp256k1.xs: In function ‘XS_Bitcoin__Secp256k1__pubkey_combine’:
Secp256k1.xs:800:28: error: passing argument 3 of ‘secp256k1_ec_pubkey_combine’ from incompatible pointer type [-Wincompatible-pointer-types]
  800 |                         ctx->pubkeys,
      |                         ~~~^~~~~~~~~
      |                            |
      |                            secp256k1_pubkey **
In file included from Secp256k1.xs:6:
/home/cpansand/.cpan/build/2025020622/Alien-libsecp256k1-0.050103-1/blib/lib/auto/share/dist/Alien-libsecp256k1/include/secp256k1.h:890:37: note: expected ‘const secp256k1_pubkey * const*’ but argument is of type ‘secp256k1_pubkey **’
  890 |     const secp256k1_pubkey * const *ins,
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
make: *** [Makefile:343: Secp256k1.o] Error 1
@bbrtj
Copy link
Member

bbrtj commented Feb 22, 2025

Thanks, I will look into it. It seems to be just a warning on many other platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants