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

Can't build cppcodec #56

Closed
CleanHit opened this issue Aug 12, 2018 · 4 comments
Closed

Can't build cppcodec #56

CleanHit opened this issue Aug 12, 2018 · 4 comments

Comments

@CleanHit
Copy link

CleanHit commented Aug 12, 2018

I'm using the catch-devel-2.2.2-1.fc28.x86_64 package on Fedora 28, I also use GCC 8.1.
Running cmake . finishes without error:

-- The CXX compiler identification is GNU 8.1.1
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2")
-- Checking for module 'catch'
-- Found catch, version 2.2.2
-- Found system Catch2, not using bundled version
-- Configuring done
-- Generating done
-- Build files have been written to: /etc/opt/cppcodec/cppcodec

But when I execute make I get a lot of errors regarding test_cppcodec.cpp:

[ 95%] Built target minimal_decode
In file included from /etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:25:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____0()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:128:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("0"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:128:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:129:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("000"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:129:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:130:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("000000"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:130:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:131:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("000000000"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:131:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:134:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("00======"), const cppcodec::symbol_error&); // no padding for Crockford
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:134:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:135:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("Uu"), const cppcodec::symbol_error&); // only a checksum symbol here
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:135:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:136:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("++"), const cppcodec::symbol_error&); // make sure it's not base64
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:136:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:137:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("//"), const cppcodec::symbol_error&); // ...ditto
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:137:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____8()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:327:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("0"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:327:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:328:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("00"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:328:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:329:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("00==="), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:329:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:330:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("0======="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:330:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:331:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("000====="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:331:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:332:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("000000=="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:332:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:335:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("W0======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:335:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:336:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("X0======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:336:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:337:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("Y0======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:337:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:338:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("Z0======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:338:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:339:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("CPNM UOJ1"), const cppcodec::symbol_error&); // no spaces
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:339:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:340:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("CPNM-UOJ1"), const cppcodec::symbol_error&); // no dashes
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:340:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____14()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:434:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("A"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:434:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:435:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("AA"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:435:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:436:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("AA==="), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:436:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:437:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("A======="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:437:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:438:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("AAA====="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:438:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:439:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("AAAAAA=="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:439:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:442:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("0A======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:442:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:443:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("1A======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:443:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:444:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("8A======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:444:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:445:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("9A======"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:445:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:446:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("GEZD GNBV"), const cppcodec::symbol_error&); // no spaces
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:446:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:447:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base32::decode("GEZD-GNBV"), const cppcodec::symbol_error&); // no dashes
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:447:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____20()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:574:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:574:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:575:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AA"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:575:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:576:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("ABCDE"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:576:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:577:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A==="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:577:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:578:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AAAA===="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:578:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:579:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AAAAA==="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:579:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:582:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A&B="), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:582:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:583:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("--"), const cppcodec::symbol_error&); // this is not base64url
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:583:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:584:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("__"), const cppcodec::symbol_error&); // ...ditto
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:584:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____26()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:677:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decodestd::string("Zg="), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:677:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:685:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:685:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:686:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AAAAA"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:686:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:689:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A&B"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:689:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:690:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("++"), const cppcodec::symbol_error&); // this is not standard base64
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:690:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:691:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("//"), const cppcodec::symbol_error&); // ...ditto
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:691:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____32()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:785:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:785:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:786:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AA"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:786:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:787:9: error: cannot declare reference to ‘const class cppcodec::padding_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("ABCDE"), const cppcodec::padding_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:787:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::padding_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:788:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A==="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:788:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:789:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AAAA===="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:789:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:790:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("AAAAA==="), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:790:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:793:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("A&B="), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:793:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:794:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("++"), const cppcodec::symbol_error&); // this is not standard base64
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:794:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:795:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(base64::decode("//"), const cppcodec::symbol_error&); // ...ditto
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:795:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____38()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:886:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("0"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:886:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:887:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("000"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:887:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:890:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("1g"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:890:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:891:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("66 6f"), const cppcodec::symbol_error&); // no spaces
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:891:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:892:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("66-6f"), const cppcodec::symbol_error&); // no dashes
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:892:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp: In function ‘void ____C_A_T_C_H____T_E_S_T____44()’:
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:983:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("0"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:983:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:984:9: error: cannot declare reference to ‘const class cppcodec::invalid_input_length&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("000"), const cppcodec::invalid_input_length&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:984:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::invalid_input_length&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:987:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("1G"), const cppcodec::symbol_error&);
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:987:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:988:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("66 6F"), const cppcodec::symbol_error&); // no spaces
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:988:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:989:9: error: cannot declare reference to ‘const class cppcodec::symbol_error&’, which is not a typedef or a template type argument
REQUIRE_THROWS_AS(hex::decode("66-6F"), const cppcodec::symbol_error&); // no dashes
^~~~~~~~~~~~~~~~~
/etc/opt/cppcodec/cppcodec/test/test_cppcodec.cpp:989:9: error: ‘const’ qualifiers cannot be applied to ‘const cppcodec::symbol_error&’
make[2]: *** [test/CMakeFiles/test_cppcodec.dir/build.make:63: test/CMakeFiles/test_cppcodec.dir/test_cppcodec.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1404: test/CMakeFiles/test_cppcodec.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

@jpetso
Copy link
Collaborator

jpetso commented Aug 12, 2018

Thanks. I believe this is fixed by pull request #55, which depends on Catch >= 2.3.0 and includes changed to test_cppcodec.cpp. I'll close this issue once #55 gets merged, if you want to verify it then please let me know if it works for you after the patch.

@CleanHit
Copy link
Author

CleanHit commented Aug 12, 2018

If i'm not wrong then the fedora 28 repositories only have the catch catch-devel-2.2.2 and catch1-devel-1.12.1 packages at the moment. Since I don't use the test functionality for now, I've done this:

#if (BUILD_TESTING)
#    add_subdirectory(test)
#endif()

To avoid the error with make.

@jpetso
Copy link
Collaborator

jpetso commented Aug 12, 2018

Yep, that works too. cppcodec includes a copy of Catch, so if the system version isn't found (Catch 2.3.0 provides a different pkg-config version) then it uses the included version instead. After the patch from my PR, assuming git submodules are updated, it should work without patch even when your system only provides 2.2.

@jpetso
Copy link
Collaborator

jpetso commented Aug 20, 2018

Should be fixed with commit 302dc28 from PR #55. If the same problems persist, please reopen the bug. Thanks!

@jpetso jpetso closed this as completed Aug 20, 2018
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