[CWB] Problems with CWB::CL and SVN Head

Alberto Simões ambs at di.uminho.pt
Thu Oct 28 17:10:56 CEST 2010


Hello

SVN Head of Open Cwb uses the following:

[root at natura Perl-CWB-CL-3.0]# cwb-config --ldflags
-L/usr/local/lib -lcl -lm -lpcre `pkg-config --libs glib-2.0`

These backticks are not being processed correctly for CWB::CL

[root at natura Perl-CWB-CL-3.0]# perl Makefile.PL
Checking for CL library ... ok
Unrecognized argument in LIBS ignored: '`pkg-config'
Unrecognized argument in LIBS ignored: '--libs'
Unrecognized argument in LIBS ignored: 'glib-2.0`'
Writing Makefile for CWB::CL

Tried to correct cwb-config to output the correct libraries, Makefile.PL 
works as planned, but compilation fails:

CL.xs: In function ‘XS_CWB__CL_cl_normalize’:
CL.xs:302: error: too few arguments to function ‘cl_string_canonical’

Changing this line to:
      cl_string_canonical(s_norm, cl_corpus_charset(corpus), flags);

it compiles, and all tests runs correctly.

Cheers

Cheers
Alberto
-- 
Alberto Simões


More information about the CWB mailing list