You are not logged in.
Hi!
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
Last edited by Splif (2015-08-07 14:25:33)
Offline
Please post the output in English https://wiki.archlinux.org/index.php/Fo … s_and_code
Offline
Ops sorry!
I edited my question and now it has English code.
Last edited by Splif (2015-08-05 21:20:16)
Offline
Problem fixed
1) ./configure CPPFLAGS="-D__USE_BSD"
2) comment the line "#undef bool" in libsrc/CRL/Unpack.c
3) make
4) sudo make install
Byee
Offline