#1004066 groestlcoin: FTBFS pubkey.cpp:181:96: error: invalid conversion from 'secp256k1_xonly_pubkey*' to 'size_t'

Package:
src:groestlcoin
Source:
groestlcoin
Submitter:
Andreas Beckmann
Date:
2023-10-26 00:21:02 UTC
Severity:
serious
Tags:
#1004066#5
Date:
2022-01-20 09:19:11 UTC
From:
To:
Hi,

groestlcoin recently started to FTBFS after some build-dependency or
toolchain package got updated:

g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config    -I.   -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include   -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS  -fstack-reuse=none       -g -O2 -ffile-prefix-m
ap=/build/groestlcoin-2.21.1~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -fno-extended-identifiers -c -o libgroestlcoin_consensus_a-pubkey.o `test -f 'pubkey.cpp' || echo './'`pubkey.cpp
pubkey.cpp: In member function 'bool XOnlyPubKey::VerifySchnorr(const uint256&, Span<const unsigned char>) const':
pubkey.cpp:181:96: error: invalid conversion from 'secp256k1_xonly_pubkey*' to 'size_t' {aka 'long unsigned int'} [-fpermissive]
  181 |     return secp256k1_schnorrsig_verify(secp256k1_context_verify, sigbytes.data(), msg.begin(), &pubkey);
      |                                                                                                ^~~~~~~
      |                                                                                                |
      |                                                                                                secp256k1_xonly_pubkey*
pubkey.cpp:181:39: error: too few arguments to function 'int secp256k1_schnorrsig_verify(const secp256k1_context*, const unsigned char*, const unsigned char*, size_t, const secp256k1_xonly_pubkey*)'
  181 |     return secp256k1_schnorrsig_verify(secp256k1_context_verify, sigbytes.data(), msg.begin(), &pubkey);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from pubkey.cpp:10:
/usr/include/secp256k1_schnorrsig.h:158:48: note: declared here
  158 | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_schnorrsig_verify(
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config    -I.   -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include   -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS  -fstack-reuse=none       -g -O2 -ffile-prefix-map=/build/groestlcoin-2.21.1~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -fno-extended-identifiers -c -o script/libgroestlcoin_consensus_a-groestlcoinconsensus.o `test -f 'script/groestlcoinconsensus.cpp' || echo './'`script/groestlcoinconsensus.cpp
make[2]: *** [Makefile:11718: libgroestlcoin_consensus_a-pubkey.o] Error 1


Andreas

#1004066#12
Date:
2023-10-26 00:18:36 UTC
From:
To:
This should be fixed with v25 which contains the following commit:
https://github.com/Groestlcoin/groestlcoin/commit/4462cb04986d77eddcfc6e8f75e04dc278a8147a