[CWB] CWB-CL svn: compile error

Hardie, Andrew a.hardie at lancaster.ac.uk
Mon Jul 16 15:58:52 CEST 2012


Hi Luigi

Known issue due to version compatibility. You need to build CWB::CL against v3.0, not a more recent version.

See also here:

http://liste.sslmit.unibo.it/pipermail/cwb/2011-August/000820.html

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of luigi.talamo at libero.it
Sent: 16 July 2012 14:20
To: cwb at sslmit.unibo.it
Subject: [CWB] CWB-CL svn: compile error

Dear all,
when I compile the latest version of CWB-CL I get the following error:

/usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp  -typemap /usr/share/perl/5.
10/ExtUtils/typemap -typemap CL.typemap  CL.xs > CL.xsc && mv CL.xsc CL.c cc -c  -I/usr/local/cwb-3.4.0/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno- strict-aliasing -pipe -fstack-protector -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"2.002102\" -
DXS_VERSION=\"2.002102\" -fPIC "-I/usr/lib/perl/5.10/CORE"   CL.c
CL.xs: In function ‘XS_CWB__CL_cl_normalize’:
CL.xs:302: error: too few arguments to function ‘cl_string_canonical’
make: *** [CL.o] Erreur 1

on a debian stable. I am a real newbie with both C and cqp programming and I (try to) fix(ed) this error by adding a third argument to cl_string_canonical,
'corpus':

cl_string_canonical(s_norm, flags, corpus)  (CL.xs, line 302)

I don't know if it is the right argument. Now it compiles but I didn't test the binary. No issues with other CQP software, tested with CWB-core and CWB- perl.

greetz.

Luigi
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list