[ndnSIM] ndnSIM 2.0 update.

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Jan 19 14:54:26 PST 2015


Hi Chaim,

Your problem is that you're using not the master branch of ndn-cxx library (by "re-downloading" we meant to update the whole package, including ndn-cxx library.  We should have been more explicit about this.).  Unfortunately, there was a need for a few changes that require latest version of the library.

After you update the library (either from source or PPA on ubuntu), you should not see this error.

---
Alex

> On Jan 19, 2015, at 2:50 PM, Chaim Rieger <chaim.rieger at gmail.com> wrote:
> 
> On 1/19/2015 12:08 PM, Spyridon (Spyros) Mastorakis wrote:
>> Dear all,
>> 
>> We would like to thank you all for submitting reports about some compilation
>> problems of ndnSIM 2.0 in Linux. The issues have been resolved and you
>> can re-download the code using the instructions on http://ndnsim.net/2.0/.
>> 
>> --
>> ndnSIM Team
> 
> did the following steps
> [ndn-cxx and ndf are installed via ubuntu packages]
> 
> 
> mkdir ndnSIM
> cd ndnSIM
> git clone ns-3-dev, pygbingen, ndnSIM
> cd ndnSIM/ns-3
> ./wag configure --enable-examples
> [ran successfully]
> ./waf
> [1725/2454] cxx: src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp ->
> build/src/ndnSIM/examples/ndn-custom-apps/custom-app.cpp.4.o
> ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected identifier
> before string constant
> NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy");
>                                                ^
> ../src/ndnSIM/utils/dummy-keychain.cpp:68:48: error: expected ‘,’ or
> ‘...’ before string constant
> ../src/ndnSIM/utils/dummy-keychain.cpp:68:69: error: expected
> constructor, destructor, or type conversion before ‘;’ token
> NDN_CXX_KEYCHAIN_REGISTER_PIB(DummyPublicInfo, "pib-dummy", "dummy");
>                                                                     ^
> ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected identifier
> before string constant
> NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy");
>                                         ^
> ../src/ndnSIM/utils/dummy-keychain.cpp:69:41: error: expected ‘,’ or
> ‘...’ before string constant
> ../src/ndnSIM/utils/dummy-keychain.cpp:69:62: error: expected
> constructor, destructor, or type conversion before ‘;’ token
> NDN_CXX_KEYCHAIN_REGISTER_TPM(DummyTpm, "tpm-dummy", "dummy");
>                                                              ^
> Waf: Leaving directory `/media/crieger/disk1/git/ndnSIM/ns-3/build'
> Build failed
> -> task in 'ns3-ndnSIM' failed (exit status 1):
>        {task 140634857585680: cxx dummy-keychain.cpp ->
> dummy-keychain.cpp.1.o}
> ['/usr/bin/g++', '-std=c++0x', '-std=c++11', '-O0', '-ggdb', '-g3',
> '-Wall', '-Wno-error=deprecated-declarations', '-fstrict-aliasing',
> '-Wstrict-aliasing', '-fPIC', '-fPIC', '-pthread', '-pthread',
> '-fno-strict-aliasing', '-fwrapv', '-fstack-protector-strong',
> '-fno-strict-aliasing', '-Isrc/ndnSIM', '-I../src/ndnSIM',
> '-Isrc/ndnSIM/NFD', '-I../src/ndnSIM/NFD', '-Isrc/ndnSIM/NFD/daemon',
> '-I../src/ndnSIM/NFD/daemon', '-Isrc/ndnSIM/NFD/core',
> '-I../src/ndnSIM/NFD/core', '-I.', '-I..',
> '-I/software/export/usr/include', '-I/usr/include',
> '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include',
> '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo',
> '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0',
> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
> '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/harfbuzz',
> '-I/usr/include/glib-2.0',
> '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
> '-I/usr/include/freetype2', '-I/usr/include/libxml2',
> '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7',
> '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1',
> '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1',
> '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_MOVE_CONSTRUCTIBLE=1',
> '-DHAVE_CXX_OVERRIDE=1', '-DHAVE_NDN_CXX=1', '-DHAVE_SQLITE3=1',
> '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2',
> '../src/ndnSIM/utils/dummy-keychain.cpp', '-c', '-o',
> 'src/ndnSIM/utils/dummy-keychain.cpp.1.o']
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150119/f8633ba6/attachment.bin>


More information about the ndnSIM mailing list