[Nfd-dev] ndn-tools

Alexander Ni alexni1992 at gmail.com
Fri Sep 4 01:47:18 PDT 2015


I see, but in my case i cannot use new version. we are working under one
application thats why it may cause some troubles if I update ndn-cxx.

But I also tried with older version of ndn-tools-0.1, but still get same
trouble. So anyway, thank you for your help.

Best Regards,
Alexander Ni


On Fri, Sep 4, 2015 at 5:41 PM, Alex Afanasyev <aa at cs.ucla.edu> wrote:

> Ohh. I think I know what's going on now.
>
> For the latest release of ndn-tools to work you need to use the latest
> release of ndn-cxx library.  I suspect you have version that is relatively
> old (less than 0.3.3).  Just update to the latest version (either master
> branch or a recent release 0.3.4) and should work.
>
> ---
> Alex
>
> On Sep 4, 2015, at 1:34 AM, Alexander Ni <alexni1992 at gmail.com> wrote:
>
> Yes:
>
> 1.
> [root at Consumer1 /]# cd /usr/local/include/ndn-cxx/
> [root at Consumer1 ndn-cxx]# ls
> common.hpp      interest-filter.hpp  name-component.hpp  signature-info.hpp
> common-pch.hpp  interest.hpp         name.hpp            tag-host.hpp
> data.hpp        key-locator.hpp      ndn-cxx-config.hpp  tag.hpp
> encoding        link.hpp             security            transport
> exclude.hpp     management           selectors.hpp       util
> face.hpp        meta-info.hpp        signature.hpp       version.hpp
>
> 2. It has header files but, I cannot find direct file of the error
> "signing-helpers.hpp".
>
> 3. All before was done from root user, but anyway:
>
> drwxr-xr-x  2 root root 4096 Aug 21 10:52 ChronoSync
> drwxr-xr-x 31 root root 4096 Aug 21 10:49 ndnboost
> drwxr-xr-x  9 root root 4096 Aug 21 10:49 ndn-cpp
> drwxr-xr-x  7 root root 4096 Aug 21 10:52 ndn-cxx
>
> and
>
> -rw-r--r-- 1 root root  4596 Aug 21 10:49 common.hpp
> -rw-r--r-- 1 root root  1965 Aug 21 10:49 common-pch.hpp
> -rw-r--r-- 1 root root 10147 Aug 21 10:49 data.hpp
> drwxr-xr-x 3 root root  4096 Aug 21 10:52 encoding
> -rw-r--r-- 1 root root  5943 Aug 21 10:49 exclude.hpp
> -rw-r--r-- 1 root root 23815 Aug 21 10:49 face.hpp
> -rw-r--r-- 1 root root  4270 Aug 21 10:49 interest-filter.hpp
> -rw-r--r-- 1 root root 11695 Aug 21 10:49 interest.hpp
> -rw-r--r-- 1 root root  3929 Aug 21 10:49 key-locator.hpp
> -rw-r--r-- 1 root root  5564 Aug 21 10:49 link.hpp
> drwxr-xr-x 2 root root  4096 Aug 21 10:52 management
> -rw-r--r-- 1 root root  6755 Aug 21 10:49 meta-info.hpp
> -rw-r--r-- 1 root root 19162 Aug 21 10:49 name-component.hpp
> -rw-r--r-- 1 root root 16395 Aug 21 10:49 name.hpp
> -rw-r--r-- 1 root root   594 Aug 21 10:49 ndn-cxx-config.hpp
> drwxr-xr-x 3 root root  4096 Aug 21 10:52 security
> -rw-r--r-- 1 root root  3179 Aug 21 10:49 selectors.hpp
> -rw-r--r-- 1 root root  3642 Aug 21 10:49 signature.hpp
> -rw-r--r-- 1 root root  3254 Aug 21 10:49 signature-info.hpp
> -rw-r--r-- 1 root root  2623 Aug 21 10:49 tag-host.hpp
> -rw-r--r-- 1 root root  1583 Aug 21 10:49 tag.hpp
> drwxr-xr-x 2 root root  4096 Aug 21 10:52 transport
> drwxr-xr-x 3 root root  4096 Aug 21 10:52 util
> -rw-r--r-- 1 root root  2223 Aug 21 10:49 version.hpp
>
>
>
> Best Regards,
> Alexander Ni
>
>
> On Fri, Sep 4, 2015 at 5:19 PM, Alex Afanasyev <aa at cs.ucla.edu> wrote:
>
>> Thanks.
>>
>> Can you triple check that you have
>>
>> - /usr/local/include/ndn-cxx folder,
>> - that it has header files, and
>> - that it has correct permissions...
>>
>> I cannot think of any other reason why compiler cannot find the header(s).
>>
>> ---
>> Alex
>>
>> On Sep 4, 2015, at 1:15 AM, Alexander Ni <alexni1992 at gmail.com> wrote:
>>
>> Yes, here they are:
>>
>> 1. export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH
>>
>> 2. /usr/local/lib64/pkconfig/libndn-cxx.pc
>> prefix=/usr/local
>> exec_prefix=/usr/local
>> libdir=/usr/local/lib64
>> includedir=/usr/local/include
>>
>> Name: libndn-cxx
>> Description: NDN C++ library with eXperimental eXtensions
>> Version: 0.3.2
>> Libs: -L${libdir}  -L/usr/lib64 -L/usr/lib -lndn-cxx -lboost_system
>> -lboost_filesystem -lboost_date_time -lboost_iostreams -lboost_regex
>> -lboost_program_options -lboost_chrono -lboost_random -lcryptopp -lsqlite3
>> -lrt -lpthread
>> Cflags: -I${includedir}  -I/usr/include
>>
>> 3.
>> AR = ['/usr/bin/ar']
>> ARFLAGS = ['rcs']
>> BINDIR = '/usr/local/bin'
>> BOOST_VERSION = '1_55'
>> BOOST_VERSION_NUMBER = 105500
>> CC_VERSION = ('4', '9', '2')
>> COMPILER_CXX = 'g++'
>> CPPPATH_ST = '-I%s'
>> CXX = ['/usr/lib64/ccache/g++']
>> CXXFLAGS = ['-pedantic', '-Wall', '-O2', '-g', '-std=c++11']
>> CXXFLAGS_MACBUNDLE = ['-fPIC']
>> CXXFLAGS_cxxshlib = ['-fPIC']
>> CXXLNK_SRC_F = []
>> CXXLNK_TGT_F = ['-o']
>> CXX_NAME = 'gcc'
>> CXX_SRC_F = []
>> CXX_TGT_F = ['-c', '-o']
>> DATADIR = '/usr/local/share'
>> DATAROOTDIR = '/usr/local/share'
>> DEFINES = ['NDEBUG', 'HAVE_INTTYPES_H=1', 'HAVE_STDINT_H=1',
>> 'HAVE_SYS_BITYPES_H=1', 'HAVE_SYS_TYPES_H=1']
>> DEFINES_NDN_CXX = ['HAVE_NDN_CXX=1']
>> DEFINES_PCAP = ['HAVE_PCAP=1']
>> DEFINES_ST = '-D%s'
>> DEST_BINFMT = 'elf'
>> DEST_CPU = 'x86_64'
>> DEST_OS = 'linux'
>> DOCDIR = '/usr/local/share/doc/ndn-tools'
>> DVIDIR = '/usr/local/share/doc/ndn-tools'
>> EXEC_PREFIX = '/usr/local'
>> HAVE_NDN_CXX = 1
>> HAVE_PCAP = 1
>> HTMLDIR = '/usr/local/share/doc/ndn-tools'
>> INCLUDEDIR = '/usr/local/include'
>> INCLUDES_BOOST = '/usr/include'
>> INCLUDES_NDN_CXX = ['/usr/local/include']
>> INFODIR = '/usr/local/share/info'
>> LIBDIR = '/usr/local/lib64'
>> LIBEXECDIR = '/usr/local/libexec'
>> LIBPATH_BOOST = ['/usr/lib64']
>> LIBPATH_NDN_CXX = ['/usr/local/lib64', '/usr/lib64']
>> LIBPATH_ST = '-L%s'
>> LIB_BOOST = ['boost_system', 'boost_iostreams', 'boost_regex']
>> LIB_NDN_CXX = ['ndn-cxx', 'boost_system', 'boost_filesystem',
>> 'boost_date_time', 'boost_iostreams', 'boost_regex',
>> 'boost_program_options', 'boost_chrono', 'boost_random', 'cryptopp',
>> 'sqlite3', 'rt', 'pthread']
>> LIB_PCAP = ['pcap']
>> LIB_ST = '-l%s'
>> LINKFLAGS_MACBUNDLE = ['-bundle', '-undefined', 'dynamic_lookup']
>> LINKFLAGS_cxxshlib = ['-shared']
>> LINKFLAGS_cxxstlib = ['-Wl,-Bstatic']
>> LINK_CXX = ['/usr/lib64/ccache/g++']
>> LOCALEDIR = '/usr/local/share/locale'
>> LOCALSTATEDIR = '/usr/local/var'
>> MANDIR = '/usr/local/share/man'
>> OLDINCLUDEDIR = '/usr/include'
>> PACKAGE = 'ndn-tools'
>> PDFDIR = '/usr/local/share/doc/ndn-tools'
>> PKGCONFIG = ['/usr/bin/pkg-config']
>> PREFIX = '/usr/local'
>> PSDIR = '/usr/local/share/doc/ndn-tools'
>> RPATH_ST = '-Wl,-rpath,%s'
>> SBINDIR = '/usr/local/sbin'
>> SHAREDSTATEDIR = '/usr/local/com'
>> SHLIB_MARKER = '-Wl,-Bdynamic'
>> SONAME_ST = '-Wl,-h,%s'
>> SPHINX_BUILD = ['/usr/bin/sphinx-build']
>> STLIBPATH_ST = '-L%s'
>> STLIB_MARKER = '-Wl,-Bstatic'
>> STLIB_ST = '-l%s'
>> SYSCONFDIR = '/usr/local/etc'
>> cxxprogram_PATTERN = '%s'
>> cxxshlib_PATTERN = 'lib%s.so'
>> cxxstlib_PATTERN = 'lib%s.a'
>> define_key = ['HAVE_INTTYPES_H', 'HAVE_STDINT_H', 'HAVE_SYS_BITYPES_H',
>> 'HAVE_SYS_TYPES_H']
>> macbundle_PATTERN = '%s.bundle'
>>
>>
>> Best Regards,
>> Alexander Ni
>>
>>
>> On Fri, Sep 4, 2015 at 5:02 PM, Alex Afanasyev <aa at cs.ucla.edu> wrote:
>>
>>> Can you please a little more details:
>>>
>>> - what is the value for PKG_CONFIG_PATH
>>> - what is the content of libndn-cxx.pc within the path (can you attach
>>> it)
>>> - what is the content of build/c4che/_cache.py (can you attach it)
>>>
>>> I'm almost certain that the include path pointed in libndn-cxx.pc does
>>> not contain ndn-cxx includes...
>>>
>>> ---
>>> Alex
>>>
>>> On Sep 4, 2015, at 12:59 AM, Alexander Ni <alexni1992 at gmail.com> wrote:
>>>
>>> There is the point, I already have set PKG_CONFIG_PATH path to
>>> libndn-cxx.pc before I configured it (below). But build command anyway
>>> showed me such error (previously mentioned)
>>>
>>> [root at Consumer1 ndn-tools]# ./waf configure
>>> Setting top to                           : /root/ndn/ndn-tools
>>> Setting out to                           : /root/ndn/ndn-tools/build
>>> Checking for 'g++' (C++ compiler)        : /usr/lib64/ccache/g++
>>> Checking supported CXXFLAGS              : -std=c++11
>>> Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g
>>> Checking for program 'sphinx-build'      : /usr/bin/sphinx-build
>>> Checking for program 'pkg-config'        : /usr/bin/pkg-config
>>> Checking for 'libndn-cxx'                : yes
>>> Checking boost includes                  : 1.55.0
>>> Checking boost libs                      : ok
>>> Checking for boost linkage               : ok
>>> Checking for header inttypes.h           : yes
>>> Checking for header stdint.h             : yes
>>> Checking for header sys/bitypes.h        : yes
>>> Checking for __attribute__               : yes
>>> Checking for header ['sys/types.h', 'sys/time.h', 'time.h'] : yes
>>> Checking for 'libpcap'                                      : yes
>>> 'configure' finished successfully (0.897s)
>>>
>>> Best Regards,
>>> Alexander Ni
>>>
>>>
>>> On Fri, Sep 4, 2015 at 4:47 PM, Alex Afanasyev <aa at cs.ucla.edu> wrote:
>>>
>>>> It seems that the compilation cannot find ndn-cxx library headers.
>>>>
>>>> The configuration script uses pkg-config to find parameters (include
>>>> and linker flags) for the library.  The standard location for it is
>>>> /usr/local/lib/pkgconfig/libndn-cxx.pc and
>>>> /usr/lib*/pkgconfig/libndn-cxx.pc.
>>>>
>>>> If you have previously installed ndn-cxx into a standard location and
>>>> then removed headers, but kept .pc file, then you may get the error you
>>>> showing.   To use ndn-cxx from a non-standard location, you need to set
>>>> PKG_CONFIG_PATH environment variable (see hints in
>>>> http://named-data.net/doc/NFD/current/INSTALL.html).
>>>>
>>>> ---
>>>> Alex
>>>>
>>>> On Sep 4, 2015, at 12:43 AM, Alexander Ni <alexni1992 at gmail.com> wrote:
>>>>
>>>> Hello everyone.
>>>>
>>>> I was trying to build ndn-tools but in non-standard location get an
>>>> error. Can somebody help me to solve this problem?
>>>>
>>>> ./waf
>>>>
>>>> [ 5/40] Compiling tools/dump/main.cpp
>>>> In file included from ../core/version.hpp:23:0,
>>>>                  from ../core/version.cpp:20:
>>>> ../core/common.hpp:64:48: fatal error:
>>>> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>>>>  #include <ndn-cxx/security/signing-helpers.hpp>
>>>>                                                 ^
>>>> compilation terminated.
>>>>
>>>> In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,
>>>>                  from ../tools/peek/ndn-peek.cpp:51:
>>>> /root/ndn/ndn-tools/core/common.hpp:64:48: fatal error:
>>>> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>>>>  #include <ndn-cxx/security/signing-helpers.hpp>
>>>>                                                 ^
>>>> compilation terminated.
>>>>
>>>> In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,
>>>>                  from ../tools/peek/ndn-poke.cpp:51:
>>>> /root/ndn/ndn-tools/core/common.hpp:64:48: fatal error:
>>>> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>>>>  #include <ndn-cxx/security/signing-helpers.hpp>
>>>>                                                 ^
>>>> compilation terminated.
>>>>
>>>> In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,
>>>>                  from ../tools/dump/main.cpp:38:
>>>> /root/ndn/ndn-tools/core/common.hpp:64:48: fatal error:
>>>> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>>>>  #include <ndn-cxx/security/signing-helpers.hpp>
>>>>                                                 ^
>>>> compilation terminated.
>>>>
>>>> Waf: Leaving directory `/root/ndn/ndn-tools/build'
>>>> Build failed
>>>>  -> task in 'core-objects' failed (exit status 1):
>>>>     {task 139918217243024: cxx version.cpp -> version.cpp.1.o}
>>>> ['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g',
>>>> '-std=c++11', '-I/usr/local/include', '-I/usr/include', '-DNDEBUG',
>>>> '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1',
>>>> '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../core/version.cpp', '-c',
>>>> '-o', '/root/ndn/ndn-tools/build/core/version.cpp.1.o']
>>>>  -> task in '../../bin/ndnpeek' failed (exit status 1):
>>>>     {task 139918217338640: cxx ndn-peek.cpp -> ndn-peek.cpp.1.o}
>>>> ['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g',
>>>> '-std=c++11', '-I/root/ndn/ndn-tools/build', '-I/root/ndn/ndn-tools',
>>>> '-I/usr/local/include', '-I/usr/include', '-DNDEBUG',
>>>> '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1',
>>>> '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../tools/peek/ndn-peek.cpp',
>>>> '-c', '-o', '/root/ndn/ndn-tools/build/tools/peek/ndn-peek.cpp.1.o']
>>>>  -> task in '../../bin/ndnpoke' failed (exit status 1):
>>>>     {task 139918217363152: cxx ndn-poke.cpp -> ndn-poke.cpp.2.o}
>>>> ['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g',
>>>> '-std=c++11', '-I/root/ndn/ndn-tools/build', '-I/root/ndn/ndn-tools',
>>>> '-I/usr/local/include', '-I/usr/include', '-DNDEBUG',
>>>> '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1',
>>>> '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../tools/peek/ndn-poke.cpp',
>>>> '-c', '-o', '/root/ndn/ndn-tools/build/tools/peek/ndn-poke.cpp.2.o']
>>>>  -> task in '../../bin/ndndump' failed (exit status 1):
>>>>     {task 139918217362960: cxx main.cpp -> main.cpp.2.o}
>>>> ['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g',
>>>> '-std=c++11', '-I/root/ndn/ndn-tools/build/tools/dump',
>>>> '-I/root/ndn/ndn-tools/tools/dump', '-I/root/ndn/ndn-tools/build',
>>>> '-I/root/ndn/ndn-tools', '-I/usr/local/include', '-I/usr/include',
>>>> '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1',
>>>> '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1',
>>>> '-DHAVE_PCAP=1', '../tools/dump/main.cpp', '-c', '-o',
>>>> '/root/ndn/ndn-tools/build/tools/dump/main.cpp.2.o']
>>>>
>>>>
>>>> Best Regards,
>>>> Alexander Ni
>>>>
>>>> _______________________________________________
>>>> Nfd-dev mailing list
>>>> Nfd-dev at lists.cs.ucla.edu
>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20150904/2c934228/attachment.html>


More information about the Nfd-dev mailing list