Project

General

Profile

Bug #2165

Compilation fails with latest ndn-cxx library

Added by Alex Afanasyev over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
11/12/2014
Due date:
% Done:

100%

Estimated time:

Description

  • ndn-cxx ndn-cxx:commit:c0a8c3b9b16f2d67ffc2080896c134fa0f6f3760

  • repo-ng commit:a8f3c40f718d5c18c300a4aa1cf02a3c32a48c46

Command:

./waf configure --with-tests --debug

Expected:

Success

Actual:

[cawka@alex repo-ng (master)]$ ./waf -j1
Waf: Entering directory `/Users/cawka/Devel/ndn/repo-ng/build'
[12/33] Linking build/ndn-repo-ng
[15/33] Compiling tests/unit/repo-command-parameter.cpp
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:396:22: error: use of undeclared identifier 'readNonNegativeInteger'; did you mean 'tlv::sizeOfNonNegativeInteger'?
    m_startBlockId = readNonNegativeInteger(*val);
                     ^~~~~~~~~~~~~~~~~~~~~~
                     tlv::sizeOfNonNegativeInteger
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:1: note: 'tlv::sizeOfNonNegativeInteger' declared here
sizeOfNonNegativeInteger(uint64_t varNumber)
^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:396:45: error: no viable conversion from 'const ndn::Block' to 'uint64_t' (aka 'unsigned long long')
    m_startBlockId = readNonNegativeInteger(*val);
                                            ^~~~
/usr/local/include/ndn-cxx/encoding/block.hpp:291:3: note: candidate function
  operator boost::asio::const_buffer() const;
  ^
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:35: note: passing argument to parameter 'varNumber' here
sizeOfNonNegativeInteger(uint64_t varNumber)
                                  ^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:404:20: error: use of undeclared identifier 'readNonNegativeInteger'; did you mean 'tlv::sizeOfNonNegativeInteger'?
    m_endBlockId = readNonNegativeInteger(*val);
                   ^~~~~~~~~~~~~~~~~~~~~~
                   tlv::sizeOfNonNegativeInteger
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:1: note: 'tlv::sizeOfNonNegativeInteger' declared here
sizeOfNonNegativeInteger(uint64_t varNumber)
^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:404:43: error: no viable conversion from 'const ndn::Block' to 'uint64_t' (aka 'unsigned long long')
    m_endBlockId = readNonNegativeInteger(*val);
                                          ^~~~
/usr/local/include/ndn-cxx/encoding/block.hpp:291:3: note: candidate function
  operator boost::asio::const_buffer() const;
  ^
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:35: note: passing argument to parameter 'varNumber' here
sizeOfNonNegativeInteger(uint64_t varNumber)
                                  ^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:412:19: error: use of undeclared identifier 'readNonNegativeInteger'; did you mean 'tlv::sizeOfNonNegativeInteger'?
    m_processId = readNonNegativeInteger(*val);
                  ^~~~~~~~~~~~~~~~~~~~~~
                  tlv::sizeOfNonNegativeInteger
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:1: note: 'tlv::sizeOfNonNegativeInteger' declared here
sizeOfNonNegativeInteger(uint64_t varNumber)
^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:412:42: error: no viable conversion from 'const ndn::Block' to 'uint64_t' (aka 'unsigned long long')
    m_processId = readNonNegativeInteger(*val);
                                         ^~~~
/usr/local/include/ndn-cxx/encoding/block.hpp:291:3: note: candidate function
  operator boost::asio::const_buffer() const;
  ^
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:35: note: passing argument to parameter 'varNumber' here
sizeOfNonNegativeInteger(uint64_t varNumber)
                                  ^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:420:24: error: use of undeclared identifier 'readNonNegativeInteger'; did you mean 'tlv::sizeOfNonNegativeInteger'?
    m_maxInterestNum = readNonNegativeInteger(*val);
                       ^~~~~~~~~~~~~~~~~~~~~~
                       tlv::sizeOfNonNegativeInteger
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:1: note: 'tlv::sizeOfNonNegativeInteger' declared here
sizeOfNonNegativeInteger(uint64_t varNumber)
^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:420:47: error: no viable conversion from 'const ndn::Block' to 'uint64_t' (aka 'unsigned long long')
    m_maxInterestNum = readNonNegativeInteger(*val);
                                              ^~~~
/usr/local/include/ndn-cxx/encoding/block.hpp:291:3: note: candidate function
  operator boost::asio::const_buffer() const;
  ^
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:35: note: passing argument to parameter 'varNumber' here
sizeOfNonNegativeInteger(uint64_t varNumber)
                                  ^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:428:35: error: use of undeclared identifier 'readNonNegativeInteger'; did you mean 'tlv::sizeOfNonNegativeInteger'?
    m_watchTimeout = milliseconds(readNonNegativeInteger(*val));
                                  ^~~~~~~~~~~~~~~~~~~~~~
                                  tlv::sizeOfNonNegativeInteger
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:1: note: 'tlv::sizeOfNonNegativeInteger' declared here
sizeOfNonNegativeInteger(uint64_t varNumber)
^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:428:58: error: no viable conversion from 'const ndn::Block' to 'uint64_t' (aka 'unsigned long long')
    m_watchTimeout = milliseconds(readNonNegativeInteger(*val));
                                                         ^~~~
/usr/local/include/ndn-cxx/encoding/block.hpp:291:3: note: candidate function
  operator boost::asio::const_buffer() const;
  ^
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:35: note: passing argument to parameter 'varNumber' here
sizeOfNonNegativeInteger(uint64_t varNumber)
                                  ^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:436:39: error: use of undeclared identifier 'readNonNegativeInteger'; did you mean 'tlv::sizeOfNonNegativeInteger'?
    m_interestLifetime = milliseconds(readNonNegativeInteger(*val));
                                      ^~~~~~~~~~~~~~~~~~~~~~
                                      tlv::sizeOfNonNegativeInteger
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:1: note: 'tlv::sizeOfNonNegativeInteger' declared here
sizeOfNonNegativeInteger(uint64_t varNumber)
^
In file included from ../tests/unit/repo-command-parameter.cpp:20:
/Users/cawka/Devel/ndn/repo-ng/src/repo-command-parameter.hpp:436:62: error: no viable conversion from 'const ndn::Block' to 'uint64_t' (aka 'unsigned long long')
    m_interestLifetime = milliseconds(readNonNegativeInteger(*val));
                                                             ^~~~
/usr/local/include/ndn-cxx/encoding/block.hpp:291:3: note: candidate function
  operator boost::asio::const_buffer() const;
  ^
/usr/local/include/ndn-cxx/encoding/tlv.hpp:508:35: note: passing argument to parameter 'varNumber' here
sizeOfNonNegativeInteger(uint64_t varNumber)
                                  ^
12 errors generated.

Waf: Leaving directory `/Users/cawka/Devel/ndn/repo-ng/build'
Build failed
 -> task in '../unit-tests' failed (exit status 1):
    {task 4384000208: cxx repo-command-parameter.cpp -> repo-command-parameter.cpp.2.o}
['/usr/bin/clang++', '-std=c++0x', '-std=c++11', '-stdlib=libc++', '-pedantic', '-Wall', '-O0', '-g3', '-fcolor-diagnostics', '-fdiagnostics-color', '-Werror', '-Wno-error=deprecated-register', '-fPIC', '-I/Users/cawka/Devel/ndn/repo-ng/build/src', '-I/Users/cawka/Devel/ndn/repo-ng/src', '-I/usr/local/include', '-I/opt/local/include', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1', '../tests/unit/repo-command-parameter.cpp', '-c', '-o', '/Users/cawka/Devel/ndn/repo-ng/build/tests/unit/repo-command-parameter.cpp.2.o']
#1

Updated by Alex Afanasyev over 5 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
#2

Updated by Alex Afanasyev almost 5 years ago

  • Tracker changed from Task to Bug
  • Status changed from Code review to Closed

Also available in: Atom PDF