-
Notifications
You must be signed in to change notification settings - Fork 37
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
bundy does not build with boost 1.60 #102
Comments
Sorry for not looking at this earlier. I'm not sure what the |
Poking around in https://github.com/boostorg/serialization I find this:
And https://kea.isc.org/ticket/4006 suggests a workaround which works for me!
|
Created PR #104. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I attempt to build bundy with boost version 1.60, it fails with these errors because the BOOST_PFTO_WRAPPER() macro is no longer part of boost:
In file included from encode/base_n.cc:15:
../../../src/lib/util/encode/base32hex_from_binary.h:90:49: error: expected ')'
base32hex_from_binary(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/base32hex_from_binary.h:90:26: note: to match this '('
base32hex_from_binary(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/base32hex_from_binary.h:92:57: error: use of undeclared identifier 'start'
Base(BOOST_MAKE_PFTO_WRAPPER(static_cast(start))),
^
../../../src/lib/util/encode/base32hex_from_binary.h:90:56: error: only constructors take base initializers
base32hex_from_binary(BOOST_PFTO_WRAPPER(T) start) :
^
In file included from encode/base_n.cc:16:
../../../src/lib/util/encode/binary_from_base32hex.h:99:50: error: expected ')'
binary_from_base32hex(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/binary_from_base32hex.h:99:26: note: to match this '('
binary_from_base32hex(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/binary_from_base32hex.h:101:57: error: use of undeclared identifier 'start'
Base(BOOST_MAKE_PFTO_WRAPPER(static_cast(start))),
^
../../../src/lib/util/encode/binary_from_base32hex.h:99:57: error: only constructors take base initializers
binary_from_base32hex(BOOST_PFTO_WRAPPER(T) start) :
^
In file included from encode/base_n.cc:17:
../../../src/lib/util/encode/base16_from_binary.h:88:46: error: expected ')'
base16_from_binary(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/base16_from_binary.h:88:23: note: to match this '('
base16_from_binary(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/base16_from_binary.h:90:57: error: use of undeclared identifier 'start'
Base(BOOST_MAKE_PFTO_WRAPPER(static_cast(start))),
^
../../../src/lib/util/encode/base16_from_binary.h:88:53: error: only constructors take base initializers
base16_from_binary(BOOST_PFTO_WRAPPER(T) start) :
^
In file included from encode/base_n.cc:18:
../../../src/lib/util/encode/binary_from_base16.h:96:47: error: expected ')'
binary_from_base16(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/binary_from_base16.h:96:23: note: to match this '('
binary_from_base16(BOOST_PFTO_WRAPPER(T) start) :
^
../../../src/lib/util/encode/binary_from_base16.h:98:57: error: use of undeclared identifier 'start'
Base(BOOST_MAKE_PFTO_WRAPPER(static_cast(start))),
^
../../../src/lib/util/encode/binary_from_base16.h:96:54: error: only constructors take base initializers
binary_from_base16(BOOST_PFTO_WRAPPER(T) start) :
^
encode/base_n.cc:307:19: error: no matching conversion for functional-style cast from 'bundy::util::encode::::EncodeNormalizer' to 'boost::archive::iterators::base32hex_from_binaryboost::archive::iterators::transform_width<bundy::util::encode::<anonymous::EncodeNormalizer, 5, 8, unsigned char>, unsigned
char>'
result.assign(Encoder(EncodeNormalizer(binary.begin(), binary.end())),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode/base_n.cc:458:35: note: in instantiation of member function 'bundy::util::encode::::BaseNTransformer<5, '0', boost::archive::iterators::base32hex_from_binary<boost::archive::iterators::transform_width<bundy::util::encode::::EncodeNormalizer, 5, 8, unsigned char>, unsigned char>
, boost::archive::iterators::transform_widthboost::archive::iterators::binary_from_base32hex<bundy::util::encode::<anonymous::DecodeNormalizer, char>, 8, 5, char> >::encode' requested here
return (Base32HexTransformer::encode(binary));
^
../../../src/lib/util/encode/base32hex_from_binary.h:97:5: note: candidate constructor not viable: no known conversion from 'bundy::util::encode::::EncodeNormalizer' to 'const boost::archive::iterators::base32hex_from_binaryboost::archive::iterators::transform_width<bundy::util::encode::<anonymous::Enco
deNormalizer, 5, 8, unsigned char>, unsigned char>' for 1st argument
base32hex_from_binary(const base32hex_from_binary & rhs) :
^
In file included from encode/base_n.cc:26:
/usr/local/include/boost/archive/iterators/transform_width.hpp:112:17: error: no matching conversion for functional-style cast from 'bundy::util::encode::::DecodeNormalizer' to 'boost::archive::iterators::binary_from_base32hexbundy::util::encode::<anonymous::DecodeNormalizer, char>'
super_t(Base(static_cast< T >(start))),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
encode/base_n.cc:376:23: note: in instantiation of function template specialization 'boost::archive::iterators::transform_widthboost::archive::iterators::binary_from_base32hex<bundy::util::encode::<anonymous::DecodeNormalizer, char>, 8, 5, char>::transform_widthbundy::util::encode::anonymous::DecodeNormalizer'
requested here
result.assign(Decoder(DecodeNormalizer(BaseZeroCode, input.begin(),
[SNIP]
The text was updated successfully, but these errors were encountered: