[Coral-dev] problems compiling coralreef

Ryan Koga coral-info at caida.org
Sun May 17 10:36:21 PDT 2009


João Gomes wrote:

> 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

It turns out that the latest Perl changed the way our build for AppConfig
works.  A more satisfying result can be attained by editing the top-level
Makefile.in and changing every instance of MAN3PODS="" to PREFIX="."  Then
you can rerun configure and make.

> 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
> [snip]
> 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

In apps/flowest/h3.h, add
#include <assert.h>

> 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.

These are problems that have recently arisen with newer versions of GCC;
we're in the process of preparing a new release to address them.

> 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

Done, thanks!
-- 
rkoga at caida.org (Ryan Koga)



More information about the Coral-dev mailing list