[Coral-dev] problems compiling coralreef

João Gomes jgomes at penhas.di.ubi.pt
Mon May 18 04:31:20 PDT 2009


Hi,

sorry for bothering you again.

Now I got a different error message:

Making in libsrc/CRL
make[1]: Entering directory `/home/joao/coral-3.8.4/libsrc/CRL'
echo; echo 'Could not find swig.'; false -perl5 -noproxy -nopm -o Unpack.c Unpack.swig

Could not find swig.
make[1]: *** [Unpack.c] Error 1
make[1]: Leaving directory `/home/joao/coral-3.8.4/libsrc/CRL'
make: *** [libsrc] Error 1


The Unpack.swig exists in libsrc/CRL.
And all the swig files have an updated timestamp:
-rw-r--r-- 1 joao joao 16831 2009-05-18 12:21 ./libsrc/Tables/Tables.swig
-rw-r--r-- 1 joao joao 3978 2009-05-18 12:21 ./libsrc/ASFinder/ASFinder.swig
-rw-r--r-- 1 joao joao 3646 2009-05-18 12:21 ./libsrc/Traffic2/FlowCounter.swig
-rw-r--r-- 1 joao joao 6379 2009-05-18 12:21 ./libsrc/CAIDA/AppPorts.swig
-rw-r--r-- 1 joao joao 4650 2009-05-18 12:21 ./libsrc/CRL/Unpack.swig
-rw-r--r-- 1 joao joao 3247 2009-05-18 12:21 ./libsrc/CRL/charmap.swig
-rw-r--r-- 1 joao joao 31103 2009-05-18 12:21 ./libsrc/CRL/Coral.swig


Thank you for your help!
Best regards

João



On Mon, May 18, 2009 07:48, Ryan Koga wrote:
> On May 17, 2009, at 2:00 PM, João Gomes wrote:
>
>> Now, I'm getting the following error message:
>>
>> 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
>
> Oh yes.   We are using an older version of SWIG to generate code which is
> incompatible with some compilers.  If you update the timestamps on the swig
> files (for instance, with:  find . -name "*.swig" -exec touch {} \; ), your
> version of SWIG should regenerate proper code.
>
> Just to be safe, there are a couple other header files that we've seen some
> problems with:
>
> In libsrc/ASFinder/pat_func.cc and libsrc/CAIDA/AppPorts.lex, add
> #include <cstring>
>
> and in libsrc/CAIDA/Ruleset.h, add
> #include <algorithm>
> --
> rkoga at caida.org (Ryan Koga)
>



More information about the Coral-dev mailing list