[CWB] CWB::CL compilation issue

Andreas Madsack andreas.madsack at ims.uni-stuttgart.de
Thu Aug 11 16:58:35 CEST 2011


Hi Andrew,

thanks !!!

With the patch the CWB::CL (from the website, so 3.0) seems to work
(the tests and dickens.perl) with CWBv3.2 from trunk.
There is no change for the version from trunk.

Regards,
Andreas.

On Thu, Aug 11, 2011 at 4:37 PM, Hardie, Andrew
<a.hardie at lancaster.ac.uk> wrote:
> Hi Andreas,
>
> This is a known issue and arises from the fact that you are trying to mix CWB/Perl v3.0 with CWBv3.2. The call to include Glib was added to v3.2 of CWB, and the Perl modules aren't yet up to date with it.
>
> So, I suggest you build CWB::CL against the CWB3.0 code (from the branch in the trunk).
>
> See also this message and the thread that followed:
>
> http://liste.sslmit.unibo.it/pipermail/cwb/2011-January/000626.html
>
> best
>
> Andrew.
>
> -----Original Message-----
> From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Andreas Madsack
> Sent: 11 August 2011 15:25
> To: cwb at sslmit.unibo.it
> Subject: [CWB] CWB::CL compilation issue
>
> Hi,
>
> we tried to comile cwb from trunk ... everything worked except CWB::CL
>
> $ perl Makefile.PL
> Checking for CL library ... ok
> Checking if your kit is complete...
> Looks good
> 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
>
> $ make
> cp lib/CWB/CL.pm blib/lib/CWB/CL.pm
> cp lib/CWB/CL/Strict.pm blib/lib/CWB/CL/Strict.pm
> /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap
> /usr/share/perl5/ExtUtils/typemap -typemap CL.typemap  CL.xs > CL.xsc
> && mv CL.xsc CL.c
> gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
> -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
> -mtune=generic   -DVERSION=\"2.002102\" -DXS_VERSION=\"2.002102\"
> -fPIC "-I/usr/lib64/perl5/CORE"   CL.c
> CL.c: In function ‘XS_CWB__CL_cl_make_set’:
> CL.c:473:2: warning: unused variable ‘targ’
> CL.c:472:9: warning: unused variable ‘RETVAL’
> CL.c: In function ‘XS_CWB__CL_cl_set_intersection’:
> CL.c:523:2: warning: unused variable ‘targ’
> CL.c:522:9: warning: unused variable ‘RETVAL’
> CL.xs: In function ‘XS_CWB__CL_cl_normalize’:
> CL.xs:302:11: error: too few arguments to function ‘cl_string_canonical’
> /usr/include/cwb/cl.h:740:6: note: declared here
> CL.xs:285:12: warning: unused variable ‘id’
> CL.c: In function ‘XS_CWB__CL_cl_idlist2cpos’:
> CL.xs:615:35: warning: unused variable ‘errors’
> CL.xs:615:12: warning: unused variable ‘id’
> CL.c: At top level:
> CL.xs:39:1: warning: ‘not_here’ defined but not used
> CL.c: In function ‘constant’:
> CL.xs:141:1: warning: control reaches end of non-void function
> make: *** [CL.o] Error 1
>
> using:
> This is perl 5, version 12, subversion 3 (v5.12.3) built for
> x86_64-linux-thread-multi
> on Fedora 14 and 15
>
> Regards,
> Andreas.
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
>


More information about the CWB mailing list