[Coral-dev] problems compiling coralreef

João Gomes jgomes at penhas.di.ubi.pt
Sun May 17 14:00:41 PDT 2009


Hi,

thank you for your help.
Both problems are now solved.

However, it still exist a problem with Perl.
Now, I'm getting the following error message:

Making in libsrc/CRL
make[1]: Entering directory `/home/joao/coral-3.8.4/libsrc/CRL'
gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fPIC -fPIC -I../../include -I../..
-I../../libsrc/libcoral -I/usr/lib/perl/5.10/CORE -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -Dbool=char -DHAS_BOOL  -I/include Coral.cc
Coral.cc:852: error: expected unqualified-id before string constant
Coral.cc:853: error: expected initializer before ‘*’ token
Coral.cc:858: error: ‘SwigPerlWrapperPtr’ does not name a type
Coral.cc: In function ‘void _wrap_config_options(PerlInterpreter*, CV*)’:
Coral.cc:3256: warning: deprecated conversion from string constant to ‘char*’
Coral.cc: In function ‘void _wrap_config_arguments(PerlInterpreter*, CV*)’:
Coral.cc:3319: warning: deprecated conversion from string constant to ‘char*’
Coral.cc: At global scope:
Coral.cc:8243: error: too many initializers for ‘swig_command_info’

(This line is repeated several times.)

Coral.cc:8243: error: too many initializers for ‘swig_command_info’
Coral.cc: In function ‘void boot_Coral(PerlInterpreter*, CV*)’:
Coral.cc:8408: error: ‘struct swig_command_info’ has no member named ‘wrapper’
make[1]: *** [Coral.o] Error 1
make[1]: Leaving directory `/home/joao/coral-3.8.4/libsrc/CRL'
make: *** [libsrc] Error 1


Once again, thank you for your help!
Best regards

João



On Sun, May 17, 2009 18:36, Ryan Koga wrote:
> 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