[Coral-dev] problems compiling coralreef

João Gomes jgomes at penhas.di.ubi.pt
Sun May 17 08:43:56 PDT 2009


Hi,

I'm having a few problems compiling CoralReef.

If I don't disable perl tools when running the configure script (option --disable-perl), I get the
following error message:

$ make
cd external/Crypto-PAn.1.0 && make CC="/usr/bin/g++ -DHAS_BOOL" CFLAGS="-O4 -fPIC"
make[1]: Entering directory `/home/joao/coral-3.8.4/external/Crypto-PAn.1.0'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/joao/coral-3.8.4/external/Crypto-PAn.1.0'
dir=`pwd`; cd external/AppConfig-1.52 && \
            /usr/bin/perl Makefile.PL LIB="$dir/lib" MAN3PODS="" && \
            make pure_all pure_install
Can't use string ("") as a HASH ref while "strict refs" in use at
/usr/share/perl/5.10/ExtUtils/MM_Unix.pm line 1422.
make: *** [external/AppConfig-1.52.build] Error 9


Also, if I don't use option --disable-flowest when running the configure script, I obtain the
following message:

Making in apps/flowest
make[1]: Entering directory `/home/joao/coral-3.8.4/apps/flowest'
/usr/bin/g++ -DHAS_BOOL -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2
-D__STDC_FORMAT_MACROS -fPIC  -I../../include -I../.. -I../../libsrc/libcoral
-I../../libsrc/hashtab  -I/include crl_anf.cc
In file included from /usr/include/c++/4.3/backward/hash_map:64,
                 from crl_anf.cc:83:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at
least one deprecated or antiquated header which may be removed without further notice at a future
date. Please use a non-deprecated interface with equivalent functionality instead. For a listing
of replacement headers and interfaces, consult the file backward_warning.h. To disable this
warning use -Wno-deprecated.
In file included from crl_anf.cc:91:
h3.h: In member function ‘T H3<T, N>::operator()(const void*, size_t, size_t) const’:
h3.h:39: error: there are no arguments to ‘assert’ that depend on a template parameter, so a
declaration of ‘assert’ must be available
h3.h:39: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
h3.h: In member function ‘T H3<T, N>::operator()(const void*, size_t, size_t) const [with T = long
long unsigned int, int N = 14]’:
crl_anf.cc:299:   instantiated from ‘T tuple_key_hash<T>::operator()(const tuple_key&) const [with
T = long long unsigned int]’
crl_anf.cc:643:   instantiated from ‘bool FCEFlowtab<Key, HashFcn, EqualKey>::sampleflow(const
Key&) [with Key = tuple_key, HashFcn = __gnu_cxx::hash<tuple_key>, EqualKey =
std::equal_to<tuple_key>]’
crl_anf.cc:935:   instantiated from here
h3.h:39: error: ‘assert’ was not declared in this scope
make[1]: *** [crl_anf.o] Error 1
make[1]: Leaving directory `/home/joao/coral-3.8.4/apps/flowest'
make: *** [apps] Error 1


Is there a way the solve these problems?

I'm compiling coralreef in Ubuntu, with kernel 2.6.28 and gcc version 4.3.3.
I can't understand what I'm doing wrong. Maybe somebody can help me.

Just a suggestion: you may want to update the link for the mailing list archives in page
http://www.caida.org/tools/measurement/coralreef/more_information.xml



Thank you for the help!
Best regards

João



More information about the Coral-dev mailing list