Project

General

Profile

Actions

Bug #2096

closed

Unable to compile NLSR code on Ubuntu 12.04 LTS.

Added by Syed Amin over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/30/2014
Due date:
% Done:

0%

Estimated time:

Description

Commit IDs

NLSR: 7c8882ffac6dd1a4ae516212c0bde838d60b9280
ndn-cxx: dfe9c6b8c548562fdc5f995945b7f9dcb4d5ace6

Output of waf configure:

/usr/local/NLSR$ sudo ./waf distclean
'distclean' finished successfully (0.083s)
/usr/local/NLSR$ sudo ./waf configure
Setting top to : /usr/local/NLSR
Setting out to : /usr/local/NLSR/build
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking allowed flags for c++ compiler : -std=c++03 -Wall -Wno-long-long -O2 -g
Checking for program 'doxygen' : not found
Checking for program 'tar' : /bin/tar
Checking for program 'sphinx-build' : not found
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for 'libndn-cxx' : yes
Checking for 'liblog4cxx' : yes
Checking boost includes : 1.48.0
Checking boost libs : ok
Checking for boost linkage : ok
Checking for 'protobuf' : yes
Checking for program 'protoc' : /usr/bin/protoc
'configure' finished successfully (5.270s)

Output of ./waf

/usr/local/NLSR$ sudo ./waf
Waf: Entering directory `/usr/local/NLSR/build'
[ 1/42] subst: src/version.hpp.in -> build/src/version.hpp
[ 2/42] protoc: nsync/sync-state.proto -> build/nsync/sync-state.pb.cc build/nsync/sync-state.pb.h
[ 3/42] cxx: src/route/nexthop-list.cpp -> build/src/route/nexthop-list.cpp.3.o
[ 4/42] cxx: src/route/fib.cpp -> build/src/route/fib.cpp.3.o
In file included from /usr/local/include/ndn-cxx/face.hpp:27:0,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/local/include/ndn-cxx/common.hpp:43:4: error: #error "ndn-cxx applications must be compiled using the C++11 standard"
In file included from /usr/include/c++/4.6/cstdint:35:0,
from /usr/local/include/ndn-cxx/common.hpp:47,
from /usr/local/include/ndn-cxx/face.hpp:27,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.
In file included from /usr/local/include/ndn-cxx/face.hpp:27:0,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/local/include/ndn-cxx/common.hpp:72:12: error: ‘std::shared_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:73:12: error: ‘std::unique_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:74:12: error: ‘std::weak_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:75:12: error: ‘std::bad_weak_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:76:12: error: ‘std::make_shared’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:77:12: error: ‘std::enable_shared_from_this’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:79:12: error: ‘std::static_pointer_cast’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:80:12: error: ‘std::dynamic_pointer_cast’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:81:12: error: ‘std::const_pointer_cast’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:83:12: error: ‘std::function’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:84:12: error: ‘std::bind’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:85:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:86:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:87:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:88:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:89:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:90:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:91:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:92:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:93:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:94:12: error: ‘std::ref’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:95:12: error: ‘std::cref’ has not been declared
In file included from /usr/local/include/ndn-cxx/encoding/block.hpp:29:0,
from /usr/local/include/ndn-cxx/name-component.hpp:30,
from /usr/local/include/ndn-cxx/name.hpp:30,
from /usr/local/include/ndn-cxx/face.hpp:29,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/local/include/ndn-cxx/encoding/buffer.hpp:34:9: error: ‘shared_ptr’ does not name a type
/usr/local/include/ndn-cxx/encoding/buffer.hpp:35:9: error: ‘shared_ptr’ does not name a type
In file included from /usr/local/include/ndn-cxx/name-component.hpp:30:0,
from /usr/local/include/ndn-cxx/name.hpp:30,
from /usr/local/include/ndn-cxx/face.hpp:29,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/local/include/ndn-cxx/encoding/block.hpp:80:15: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:88:15: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:105:15: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:123:30: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:160:20: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:294:3: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘bool ndn::Block::hasWire() const’:
/usr/local/include/ndn-cxx/encoding/block.hpp:323:10: error: ‘m_buffer’ was not declared in this scope
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘bool ndn::Block::hasValue() const’:
/usr/local/include/ndn-cxx/encoding/block.hpp:329:28: error: ‘m_buffer’ was not declared in this scope
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘void ndn::Block::reset()’:
/usr/local/include/ndn-cxx/encoding/block.hpp:335:3: error: ‘m_buffer’ was not declared in this scope
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘void ndn::Block::resetWire()’:
/usr/local/include/ndn-cxx/encoding/block.hpp:345:3: error: ‘m_buffer’ was not declared in this scope
In file included from /usr/local/include/ndn-cxx/name.hpp:30:0,
from /usr/local/include/ndn-cxx/face.hpp:29,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/local/include/ndn-cxx/name-component.hpp: At global scope:
/usr/local/include/ndn-cxx/name-component.hpp:91:19: error: ‘ConstBufferPtr’ does not name a type
In file included from /usr/local/include/ndn-cxx/face.hpp:29:0,
from ../src/route/nexthop-list.hpp:30,
from ../src/route/nexthop-list.cpp:24:
/usr/local/include/ndn-cxx/name.hpp:39:44: error: expected template-name before ‘<’ token
/usr/local/include/ndn-cxx/name.hpp:39:44: error: expected ‘{’ before ‘<’ token
/usr/local/include/ndn-cxx/name.hpp:39:44: error: expected unqualified-id before ‘<’ token
../src/route/nexthop-list.cpp:110:1: error: expected ‘}’ at end of input

In file included from ../src/route/fib.cpp:25:0:
/usr/local/include/ndn-cxx/common.hpp:43:4: error: #error "ndn-cxx applications must be compiled using the C++11 standard"
In file included from /usr/include/c++/4.6/cstdint:35:0,
from /usr/local/include/ndn-cxx/common.hpp:47,
from ../src/route/fib.cpp:25:
/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.
In file included from ../src/route/fib.cpp:25:0:
/usr/local/include/ndn-cxx/common.hpp:72:12: error: ‘std::shared_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:73:12: error: ‘std::unique_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:74:12: error: ‘std::weak_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:75:12: error: ‘std::bad_weak_ptr’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:76:12: error: ‘std::make_shared’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:77:12: error: ‘std::enable_shared_from_this’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:79:12: error: ‘std::static_pointer_cast’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:80:12: error: ‘std::dynamic_pointer_cast’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:81:12: error: ‘std::const_pointer_cast’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:83:12: error: ‘std::function’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:84:12: error: ‘std::bind’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:85:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:86:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:87:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:88:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:89:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:90:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:91:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:92:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:93:12: error: ‘std::placeholders’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:94:12: error: ‘std::ref’ has not been declared
/usr/local/include/ndn-cxx/common.hpp:95:12: error: ‘std::cref’ has not been declared
In file included from /usr/local/include/ndn-cxx/encoding/block.hpp:29:0,
from /usr/local/include/ndn-cxx/name-component.hpp:30,
from /usr/local/include/ndn-cxx/name.hpp:30,
from /usr/local/include/ndn-cxx/face.hpp:29,
from /usr/local/NLSR/src/adjacent.hpp:26,
from /usr/local/NLSR/src/adjacency-list.hpp:30,
from ../src/route/fib.cpp:27:
/usr/local/include/ndn-cxx/encoding/buffer.hpp:34:9: error: ‘shared_ptr’ does not name a type
/usr/local/include/ndn-cxx/encoding/buffer.hpp:35:9: error: ‘shared_ptr’ does not name a type
In file included from /usr/local/include/ndn-cxx/name-component.hpp:30:0,
from /usr/local/include/ndn-cxx/name.hpp:30,
from /usr/local/include/ndn-cxx/face.hpp:29,
from /usr/local/NLSR/src/adjacent.hpp:26,
from /usr/local/NLSR/src/adjacency-list.hpp:30,
from ../src/route/fib.cpp:27:
/usr/local/include/ndn-cxx/encoding/block.hpp:80:15: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:88:15: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:105:15: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:123:30: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:160:20: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp:294:3: error: ‘ConstBufferPtr’ does not name a type
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘bool ndn::Block::hasWire() const’:
/usr/local/include/ndn-cxx/encoding/block.hpp:323:10: error: ‘m_buffer’ was not declared in this scope
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘bool ndn::Block::hasValue() const’:
/usr/local/include/ndn-cxx/encoding/block.hpp:329:28: error: ‘m_buffer’ was not declared in this scope
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘void ndn::Block::reset()’:
/usr/local/include/ndn-cxx/encoding/block.hpp:335:3: error: ‘m_buffer’ was not declared in this scope
/usr/local/include/ndn-cxx/encoding/block.hpp: In member function ‘void ndn::Block::resetWire()’:
/usr/local/include/ndn-cxx/encoding/block.hpp:345:3: error: ‘m_buffer’ was not declared in this scope
In file included from /usr/local/include/ndn-cxx/name.hpp:30:0,
from /usr/local/include/ndn-cxx/face.hpp:29,
from /usr/local/NLSR/src/adjacent.hpp:26,
from /usr/local/NLSR/src/adjacency-list.hpp:30,
from ../src/route/fib.cpp:27:
/usr/local/include/ndn-cxx/name-component.hpp: At global scope:
/usr/local/include/ndn-cxx/name-component.hpp:91:19: error: ‘ConstBufferPtr’ does not name a type
In file included from /usr/local/include/ndn-cxx/face.hpp:29:0,
from /usr/local/NLSR/src/adjacent.hpp:26,
from /usr/local/NLSR/src/adjacency-list.hpp:30,
from ../src/route/fib.cpp:27:
/usr/local/include/ndn-cxx/name.hpp:39:44: error: expected template-name before ‘<’ token
/usr/local/include/ndn-cxx/name.hpp:39:44: error: expected ‘{’ before ‘<’ token
/usr/local/include/ndn-cxx/name.hpp:39:44: error: expected unqualified-id before ‘<’ token
In file included from /usr/include/boost/asio/io_service.hpp:21:0,
from /usr/include/boost/asio/basic_io_object.hpp:19,
from /usr/include/boost/asio/basic_socket.hpp:19,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /usr/include/boost/asio.hpp:20,
from /usr/local/include/ndn-cxx/util/monotonic_deadline_timer.hpp:29,
from /usr/local/include/ndn-cxx/util/scheduler.hpp:26,
from ../src/route/fib-entry.hpp:30,
from ../src/route/fib.hpp:32,
from ../src/route/fib.cpp:31:
/usr/include/c++/4.6/typeinfo:42:37: error: expected ‘}’ before end of line
/usr/include/c++/4.6/typeinfo:42:37: error: expected declaration before end of line

Waf: Leaving directory `/usr/local/NLSR/build'
Build failed
-> task in 'nlsr-objects' failed (exit status 1):
{task 3068290508L: cxx nexthop-list.cpp -> nexthop-list.cpp.3.o}
['/usr/bin/g++', '-std=c++03', '-Wall', '-Wno-long-long', '-O2', '-g', '-fPIC', '-pthread', '-pthread', '-I/usr/local/NLSR/build', '-I/usr/local/NLSR', '-I/usr/local/NLSR/build/src', '-I/usr/local/NLSR/src', '-I/usr/local/NLSR/build/nsync', '-I/usr/local/NLSR/nsync', '-I/usr/include', '-I/usr/local/include', '../src/route/nexthop-list.cpp', '-c', '-o', '/usr/local/NLSR/build/src/route/nexthop-list.cpp.3.o']
-> task in 'nlsr-objects' failed (exit status 1):
{task 3068289836L: cxx fib.cpp -> fib.cpp.3.o}
['/usr/bin/g++', '-std=c++03', '-Wall', '-Wno-long-long', '-O2', '-g', '-fPIC', '-pthread', '-pthread', '-I/usr/local/NLSR/build', '-I/usr/local/NLSR', '-I/usr/local/NLSR/build/src', '-I/usr/local/NLSR/src', '-I/usr/local/NLSR/build/nsync', '-I/usr/local/NLSR/nsync', '-I/usr/include', '-I/usr/local/include', '../src/route/fib.cpp', '-c', '-o', '/usr/local/NLSR/build/src/route/fib.cpp.3.o']

Actions

Also available in: Atom PDF