[CWB] CWB::CL compilation issue
Hardie, Andrew
a.hardie at lancaster.ac.uk
Thu Aug 11 16:40:54 CEST 2011
PS - it's worth noting, however, that the parts of the v3.0 Perl module that *don't* need to link against libraries from the core will work happily with later versions of CQP, the utilities, etc, as the external interface is not radically different, just the build setup.
-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Hardie, Andrew
Sent: 11 August 2011 15:38
To: Open source development of the Corpus WorkBench
Subject: RE: [CWB] CWB::CL compilation issue
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
More information about the CWB
mailing list