[ndnSIM] Update of submodule ndn-cxx for ndnSIM

Xuxiang Tian xuxiangtian at ucla.edu
Mon Jul 25 02:11:08 PDT 2016


The problem may not be the include path because when I move the
folder ndnSIM/ns-3/src/ndnSIM/ndn-cxx out of the folder /ndnSIM (the first
ndnSIM), ndn-cxx can compile successfully, but when the
folder ndnSIM/ns-3/src/ndnSIM/ndn-cxx stay inside, after I run ./waf
configure, the message showed:

Setting top to                           :
/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx
Setting out to                           :
/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build
Building static library                  : no
Building shared library                  : yes
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
Checking supported CXXFLAGS              : -std=c++11
-Wno-error=unneeded-internal-declaration -Wno-error=deprecated-register
-Wno-error=unused-local-typedef -stdlib=libc++
Checking supported LINKFLAGS             : -stdlib=libc++
Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g
Checking for std::is_default_constructible : yes
Checking for std::is_nothrow_move_constructible : yes
Checking for std::is_nothrow_move_assignable    : yes
Checking for friend typename-specifier          : yes
Checking for override and final specifiers      : yes
Checking for std::vector::insert with const_iterators : yes
Checking for program 'doxygen'                        : not found
Checking for program 'tar'                            : /usr/bin/tar
Checking for program 'sphinx-build'                   : not found
Checking for program 'sh'                             : /bin/sh
Checking for library pthread                          : yes
Checking for library rt                               : not found
Checking for function getpass                         : yes
Checking for rtnetlink                                : not found
Checking for framework CoreFoundation                 : yes
Checking for framework CoreServices                   : yes
Checking for framework Security                       : yes
Checking for program 'pkg-config'                     :
/opt/local/bin/pkg-config
Checking for 'sqlite3'                                : yes
 hecking Crypto++ lib                                 : 563
Checking if CryptoPP library works                    : no
Checking if CryptoPP library works                    : no
CryptoPP is present, but is not usable
(complete log in
/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/config.log)


Then I read config.log, it seemed everything was fine except only one error:


[1/2] Compiling
[32mbuild/.conf_check_3a45ee5323740188e645eab38d82218a/test.cpp [0m

['/usr/bin/clang++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11',
'-Wno-error=unneeded-internal-declaration',
'-Wno-error=deprecated-register', '-Wno-error=unused-local-typedef',
'-stdlib=libc++', '-I/opt/local/include', '-DNDEBUG',
'-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1',
'-DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1',
'-DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1', '-DHAVE_CXX_FRIEND_TYPENAME=1',
'-DHAVE_CXX_OVERRIDE_FINAL=1',
'-DNDN_CXX_HAVE_VECTOR_INSERT_ERASE_CONST_ITERATOR=1', '-DHAVE_PTHREAD=1',
'-DHAVE_GETPASS=1', '-DHAVE_COREFOUNDATION_COREFOUNDATION_H=1',
'-DHAVE_CORESERVICES_CORESERVICES_H=1', '-DHAVE_SECURITY=1',
'-DHAVE_OSX_SECURITY=1', '-DHAVE_SQLITE3=1', '-DCRYPTOPP_DISABLE_ASM',
'../test.cpp', '-c', '-o',
'/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/.conf_check_3a45ee5323740188e645eab38d82218a/testbuild/test.cpp.1.o']
err: ../test.cpp:2:10: fatal error:
'../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp' file not found
#include "../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp"
         ^
1 error generated.

What confused me is that it showed fatal error:
'../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp' file not found,
however, this file did exist.
Could you please let me know if I am supposed to modify some configure to
make this file found

Yours, Xuxiang



2016-07-24 5:54 GMT-07:00 Junxiao Shi <shijunxiao at email.arizona.edu>:

> Hi Xuxiang
>
> SimpleTag is declared in ndn-cxx/tag.hpp which is included into
> ndn-cxx/lp/tags.hpp via ndn-cxx/tag-host.hpp
>
> Find out the complete gcc command line (thru waf verbose logging), make
> gcc write preprocessed source into a file, and you should be able to find
> what's going on from that file.
>
> Common suspects are wrong include path causing wrong file to be included,
> and duplicate #ifndef token.
>
> Yours, Junxiao
>
> On Jul 23, 2016 23:34, "Xuxiang Tian" <xuxiangtian at ucla.edu> wrote:
>
>> Hi Junxiao,
>>
>> I start writing code to update the submodule, ndn-cxx from 0.3.4 to 0.4.1
>> for ndnSIM right now.
>> Compared to ndn 0.3.4, 0.4.1 created some files, which contains
>> ./src/ndnSIM/ndn-cxx/src/lp/tags.hpp. When I was trying to compile by waf,
>> there was a message shown as below:
>>
>> [1518/2760] Compiling src/ndnSIM/ndn-cxx/src/lp/tags.cpp
>> In file included from ../src/ndnSIM/ndn-cxx/src/lp/tags.cpp:22:
>> ../src/ndnSIM/ndn-cxx/src/lp/tags.hpp:36:9: error: unknown type name
>> 'SimpleTag'
>> typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag;
>>         ^
>> ../src/ndnSIM/ndn-cxx/src/lp/tags.hpp:36:18: error: expected
>> unqualified-id
>> typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag;
>>                  ^
>>
>> I think the problem is wscript of waf. Then I read the code of
>> ndnSIM/wscript and ndnSIM/ndn-cxx/wscript, and compare changes of
>> ndnSIM/ndn-cxx/wscript 0.3.4 with 0.4.1, I think there is something wrong
>> in ndnSIM/wscript that should be modified, but I have not pinpointed the
>> place. Kindly, can you give me some advice
>>
>> Yours,
>> Xuxiang
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160725/5f41fcca/attachment.html>


More information about the ndnSIM mailing list