[Ndn-lib] Fwd: [ndnSIM] Error Compiling ndn-cxx on Ubuntu 12.04 (32Bit)

Daniel Posch poschdaniel2 at gmail.com
Thu Feb 19 09:51:58 PST 2015


Hi Spyridon and Junxiao,

thanks for the information. I have updated gcc from version 4.6.3 to 
4.8.1lately.
The reason for the update was that gcc 4.6.x does not support the full 
c++11 standard, which is required to compile NFD.

Greetings,
Daniel

Am 19.02.2015 um 18:36 schrieb Junxiao Shi:
> Hi Spyridon
>
> This is similar to pycryptopp ticket 78 
> <https://tahoe-lafs.org/trac/pycryptopp/ticket/78> and Debian Bug 
> 667335 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667335>.
> Crypto++ 5.6.1 is incompatible with gcc47 or above.
> Please use gcc46 instead. It comes with build-essential package on 
> Ubuntu 12.04.
>
> Yours, Junxiao
>
> On Thu, Feb 19, 2015 at 10:05 AM, Spyridon (Spyros) Mastorakis 
> <spiros.mastorakis at gmail.com <mailto:spiros.mastorakis at gmail.com>> wrote:
>
>     Potential issue with the ndn-cxx library.
>     Originally reported by Daniel Posch in the ndnSIM mailing list today.
>
>     --
>     Spyridon (Spyros) Mastorakis
>     Personal Website: http://cs.ucla.edu/~mastorakis/
>     <http://cs.ucla.edu/%7Emastorakis/>
>     Internet Research Laboratory
>     PhD Computer Science
>     UCLA
>
>
>
>
>     > Begin forwarded message:
>     >
>     > Date: February 19, 2015 at 2:25:29 AM PST
>     > From: Daniel Posch <poschdaniel2 at gmail.com
>     <mailto:poschdaniel2 at gmail.com>>
>     > To: ndnsim at lists.cs.ucla.edu <mailto:ndnsim at lists.cs.ucla.edu>
>     > Subject: [ndnSIM] Error Compiling ndn-cxx on Ubuntu 12.04 (32Bit)
>     >
>     > Hello,
>     >
>     > I have an error compiling ndn-cxx on Ubuntu 12.04.5 LTS (32
>     Bit). The output of the compiler is:
>     >
>     > In file included from /usr/include/cryptopp/filters.h:7:0,
>     >                 from /usr/include/cryptopp/asn.h:4,
>     >                 from ../src/encoding/../security/cryptopp.hpp:29,
>     >                 from ../src/encoding/oid.cpp:27:
>     > /usr/include/cryptopp/secblock.h: In instantiation of
>     ‘CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer
>     CryptoPP::AllocatorWithCleanup<T,
>     T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T,
>     T_Align16>::size_type, const void*) [with T = unsigned char; bool
>     T_Align16 = false; CryptoPP::AllocatorWithCleanup<T,
>     T_Align16>::pointer = unsigned char*;
>     CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned
>     int]’:
>     > /usr/include/cryptopp/secblock.h:247:25:   required from
>     ‘CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T,
>     A>::size_type) [with T = unsigned char; A =
>     CryptoPP::AllocatorWithCleanup<unsigned char>;
>     CryptoPP::SecBlock<T, A>::size_type = unsigned int]’
>     > /usr/include/cryptopp/algparam.h:17:2:   required from here
>     > /usr/include/cryptopp/secblock.h:91:14: error: ‘CheckSize’ was
>     not declared in this scope, and no declarations were found by
>     argument-dependent lookup at the point of instantiation [-fpermissive]
>     >   CheckSize(n);
>     >
>     > I have searched for that error and found #Bug 1700:
>     http://redmine.named-data.net/issues/1700
>     > The solution provided by Alex in this discussion does not work
>     for me. My configure command is:
>     >
>     > ./waf configure --prefix=/local/users/ndnsim2
>     --boost-libs=/usr/lib/i386-linux-gnu --without-pch"
>     > Setting top to                           :
>     /local/users/ndnsim2/ndnSIM/ndn-cxx
>     > Setting out to                           :
>     /local/users/ndnsim2/ndnSIM/ndn-cxx/build
>     > Checking for 'g++' (C++ compiler)        : /usr/bin/g++
>     > Checking supported CXXFLAGS              : -std=c++11
>     > Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g
>     > Checking for program 'doxygen'           : not found
>     > Checking for program 'tar'               : /bin/tar
>     > Checking for program 'sphinx-build'      : not found
>     > Checking for std::is_default_constructible : yes
>     > Checking for std::is_move_constructible    : yes
>     > Checking for std::is_move_assignable       : yes
>     > Checking for friend typename-specifier     : yes
>     > Checking for program 'sh'                  : /bin/sh
>     > Checking for library pthread               : yes
>     > Checking for library rt                    : yes
>     > Checking for compiler flags ['-fPIC']      : yes
>     > Checking for function getpass              : yes
>     > Checking for rtnetlink                     : yes
>     > Checking for program 'pkg-config'          : /usr/bin/pkg-config
>     > Checking for 'sqlite3'                     : yes
>     > Checking Crypto++ lib                      : 561
>     > Checking if CryptoPP library works         : yes
>     > Checking boost includes                    : 1.55.0
>     > Checking boost libs                        : ok
>     > Checking for boost linkage                 : ok
>     > 'configure' finished successfully (1.665s)
>     >
>     > I have also tried the following configure command (which was
>     suggested @ http://redmine.named-data.net/issues/1507):
>     >
>     > CXXFLAGS="-DCRYPTOPP_DISABLE_ASM" ./waf configure
>     --prefix=/local/users/ndnsim2 --boost-libs=/usr/lib/i386-linux-gnu
>     --without-pch
>     >
>     > The code is compiled with gcc version 4.8.1 (Ubuntu
>     4.8.1-2ubuntu1~12.04).
>     >
>     > Best regards,
>     > Daniel
>     > _______________________________________________
>     > ndnSIM mailing list
>     > ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
>     > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
>     _______________________________________________
>     Ndn-lib mailing list
>     Ndn-lib at lists.cs.ucla.edu <mailto:Ndn-lib at lists.cs.ucla.edu>
>     http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-lib
>
>



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-lib/attachments/20150219/4acd3db2/attachment-0001.html>


More information about the Ndn-lib mailing list