You are not logged in.

#1 2015-08-05 18:34:11

Splif
Member
Registered: 2015-08-05
Posts: 5

[Solved]Problem when I install Coral Reef of CAIDA

Hi! big_smile
I'm a newbie of Arch, sorry if I do some ingenuousness.
I can't install a library, Coral Reef of CAIDA, here there's the "tar.gz": https://www.caida.org/tools/measurement … status.xml

After "make" command I have this errors:

Making in libsrc/CRL
make[1]: Entering directory '/home/michele/Scrivania/crl_pay/coral-3.9.4/libsrc/CRL'
gcc -c -g -O2 -fPIC -fPIC -I../../include -I../.. -I../../libsrc/libcoral -I/usr/lib/perl5/core_perl/CORE -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -Dbool=char -DHAS_BOOL  -I/include Unpack.c
In file included from Unpack.c:731:0:
Unpack.c: In function 'SWIG_AsCharPtrAndSize':
/usr/lib/perl5/core_perl/CORE/handy.h:111:34: error: 'bool' undeclared (first use in this function)
 #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
                                  ^
/usr/lib/perl5/core_perl/CORE/perl.h:3524:62: note: in definition of macro 'EXPECT'
 #  define EXPECT(expr,val)                  __builtin_expect(expr,val)
                                                              ^
/usr/lib/perl5/core_perl/CORE/perl.h:3528:52: note: in expansion of macro 'cBOOL'
 #define LIKELY(cond)                        EXPECT(cBOOL(cond),TRUE)
                                                    ^
/usr/lib/perl5/core_perl/CORE/sv.h:2048:10: note: in expansion of macro 'LIKELY'
      if (LIKELY((dst) != (src))) {  \
          ^
/usr/lib/perl5/core_perl/CORE/sv.h:2062:3: note: in expansion of macro 'SvSetSV_and'
   SvSetSV_and(dst,src,/*nothing*/;)
   ^
Unpack.c:1568:6: note: in expansion of macro 'SvSetSV'
      SvSetSV(tmp, obj);
      ^
/usr/lib/perl5/core_perl/CORE/handy.h:111:34: note: each undeclared identifier is reported only once for each function it appears in
 #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
                                  ^
/usr/lib/perl5/core_perl/CORE/perl.h:3524:62: note: in definition of macro 'EXPECT'
 #  define EXPECT(expr,val)                  __builtin_expect(expr,val)
                                                              ^
/usr/lib/perl5/core_perl/CORE/perl.h:3528:52: note: in expansion of macro 'cBOOL'
 #define LIKELY(cond)                        EXPECT(cBOOL(cond),TRUE)
                                                    ^
/usr/lib/perl5/core_perl/CORE/sv.h:2048:10: note: in expansion of macro 'LIKELY'
      if (LIKELY((dst) != (src))) {  \
          ^
/usr/lib/perl5/core_perl/CORE/sv.h:2062:3: note: in expansion of macro 'SvSetSV_and'
   SvSetSV_and(dst,src,/*nothing*/;)
   ^
Unpack.c:1568:6: note: in expansion of macro 'SvSetSV'
      SvSetSV(tmp, obj);
      ^
/usr/lib/perl5/core_perl/CORE/handy.h:111:39: error: expected ':' before numeric constant
 #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
                                       ^
/usr/lib/perl5/core_perl/CORE/perl.h:3524:62: note: in definition of macro 'EXPECT'
 #  define EXPECT(expr,val)                  __builtin_expect(expr,val)
                                                              ^
/usr/lib/perl5/core_perl/CORE/perl.h:3528:52: note: in expansion of macro 'cBOOL'
 #define LIKELY(cond)                        EXPECT(cBOOL(cond),TRUE)
                                                    ^
/usr/lib/perl5/core_perl/CORE/sv.h:2048:10: note: in expansion of macro 'LIKELY'
      if (LIKELY((dst) != (src))) {  \
          ^
/usr/lib/perl5/core_perl/CORE/sv.h:2062:3: note: in expansion of macro 'SvSetSV_and'
   SvSetSV_and(dst,src,/*nothing*/;)
   ^
Unpack.c:1568:6: note: in expansion of macro 'SvSetSV'
      SvSetSV(tmp, obj);
      ^
Unpack.c: In function '_wrap_unpack':
/usr/lib/perl5/core_perl/CORE/handy.h:111:34: error: 'bool' undeclared (first use in this function)
 #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
                                  ^
/usr/lib/perl5/core_perl/CORE/perl.h:3524:62: note: in definition of macro 'EXPECT'
 #  define EXPECT(expr,val)                  __builtin_expect(expr,val)
                                                              ^
/usr/lib/perl5/core_perl/CORE/perl.h:3529:52: note: in expansion of macro 'cBOOL'
 #define UNLIKELY(cond)                      EXPECT(cBOOL(cond),FALSE)
                                                    ^
/usr/lib/perl5/core_perl/CORE/pp.h:288:30: note: in expansion of macro 'UNLIKELY'
                          if (UNLIKELY(PL_stack_max - p < (SSize_t)(n))) { \
                              ^
Unpack.c:1862:7: note: in expansion of macro 'EXTEND'
       EXTEND(sp, result->len);
       ^
/usr/lib/perl5/core_perl/CORE/handy.h:111:39: error: expected ':' before numeric constant
 #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
                                       ^
/usr/lib/perl5/core_perl/CORE/perl.h:3524:62: note: in definition of macro 'EXPECT'
 #  define EXPECT(expr,val)                  __builtin_expect(expr,val)
                                                              ^
/usr/lib/perl5/core_perl/CORE/perl.h:3529:52: note: in expansion of macro 'cBOOL'
 #define UNLIKELY(cond)                      EXPECT(cBOOL(cond),FALSE)
                                                    ^
/usr/lib/perl5/core_perl/CORE/pp.h:288:30: note: in expansion of macro 'UNLIKELY'
                          if (UNLIKELY(PL_stack_max - p < (SSize_t)(n))) { \
                              ^
Unpack.c:1862:7: note: in expansion of macro 'EXTEND'
       EXTEND(sp, result->len);
       ^
Makefile:387: recipe for target 'Unpack.o' failed
make[1]: *** [Unpack.o] Error 1
make[1]: Leaving directory '/home/michele/Scrivania/crl_pay/coral-3.9.4/libsrc/CRL'
Makefile:448: recipe for target 'libsrc' failed
make: *** [libsrc] Error 1

Compiler doesn't know "bool"...

In the FAQ 8.1 (here:  https://www.caida.org/tools/measurement … html#ss8.1 ) there's a solution but in my case nothing change.
Indeed if I use "setenv CXX g++" or "export CXX=g++" before "./configure", the same problem occurs after "make" command.

My gcc version: 5.2.0
Info about perl: perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-linux-thread-multi

Could you help me, please?
Thank you, bye smile

Last edited by Splif (2015-08-07 14:25:33)

Offline

#2 2015-08-05 18:37:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Problem when I install Coral Reef of CAIDA

Please post the output in English https://wiki.archlinux.org/index.php/Fo … s_and_code

Offline

#3 2015-08-05 21:19:38

Splif
Member
Registered: 2015-08-05
Posts: 5

Re: [Solved]Problem when I install Coral Reef of CAIDA

Ops sorry!
I edited my question and now it has English code. smile

Last edited by Splif (2015-08-05 21:20:16)

Offline

#4 2015-08-07 14:25:06

Splif
Member
Registered: 2015-08-05
Posts: 5

Re: [Solved]Problem when I install Coral Reef of CAIDA

Problem fixed big_smile

1) ./configure CPPFLAGS="-D__USE_BSD"
2) comment the line "#undef bool" in libsrc/CRL/Unpack.c
3) make
4) sudo make install

Byee big_smile

Offline

Board footer

Powered by FluxBB