[CWB] Corpus ``XXX'' is undefined

"Andrés Chandía" andres at chandia.net
Tue Jul 17 18:24:31 CEST 2018



But now I have further problems.....


cwb-perl/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
Running Mkbootstrap for CWB::CL ()
chmod 644 "CL.bs"
"/usr/bin/perl"
"/usr/share/perl/5.22/ExtUtils/xsubpp"  -typemap
"/usr/share/perl/5.22/ExtUtils/typemap" -typemap "CL.typemap"  CL.xs
> CL.xsc && mv CL.xsc CL.c
x86_64-linux-gnu-gcc -c 
-I/usr/local/cwb-3.4.14/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-g   -DVERSION=\"3.004012\" -DXS_VERSION=\"3.004012\" -fPIC
"-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE"   CL.c
rm -f
blib/arch/auto/CWB/CL/CL.so
x86_64-linux-gnu-gcc  -shared -L/usr/local/lib
-fstack-protector-strong CL.o  -o blib/arch/auto/CWB/CL/CL.so     \
   -L/usr/local/cwb-3.4.14/lib -lcl -lm -lpcre -lglib-2.0     
\
  
chmod 755 blib/arch/auto/CWB/CL/CL.so
"/usr/bin/perl"
-MExtUtils::Command::MM -e 'cp_nonempty' -- CL.bs blib/arch/auto/CWB/CL/CL.bs 644
Manifying 2 pod documents
root at corptedig-glif:/home/andres/cwb-perl/CWB-CL# make
test
Running Mkbootstrap for CWB::CL ()
chmod 644 "CL.bs"
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM"
"-MTest::Harness" "-e" "undef *Test::Harness::Switches;
test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_load.t ............... 1/2 
#   Failed test 'use CWB::CL;'
#   at t/00_load.t line 4.
#     Tried to use 'CWB::CL'.
#    
Error:  Can't load '/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so' for module
CWB::CL: /home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so: undefined symbol: cl_errno
at /usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm line 187.
#  at t/00_load.t
line 4.
# Compilation failed in require at t/00_load.t line 4.
# BEGIN
failed--compilation aborted at t/00_load.t line 4.

#   Failed test 'use
CWB::CL::Strict;'
#   at t/00_load.t line 5.
#    
Tried to use 'CWB::CL::Strict'.
#     Error:  Attempt to reload
CWB/CL.pm aborted.
# Compilation failed in require at
/home/andres/cwb-perl/CWB-CL/blib/lib/CWB/CL/Strict.pm line 4.
# BEGIN
failed--compilation aborted at /home/andres/cwb-perl/CWB-CL/blib/lib/CWB/CL/Strict.pm line
4.
# Compilation failed in require at t/00_load.t line 5.
# BEGIN
failed--compilation aborted at t/00_load.t line 5.
# Looks like you failed 2 tests of
2.
t/00_load.t ............... Dubious, test returned 2 (wstat 512, 0x200)
Failed
2/2 subtests 
t/01_vss.t ................ Can't load
'/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so' for module CWB::CL:
/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so: undefined symbol: cl_errno at
/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm line 187.
 at t/01_vss.t line
4.
Compilation failed in require at t/01_vss.t line 4.
BEGIN failed--compilation
aborted at t/01_vss.t line 4.
# Looks like your test exited with 2 before it could output
anything.
t/01_vss.t ................ Dubious, test returned 2 (wstat 512, 0x200)
Failed 35/35 subtests 
t/02_utility_functions.t .. Can't load
'/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so' for module CWB::CL:
/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so: undefined symbol: cl_errno at
/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm line 187.
 at
t/02_utility_functions.t line 9.
Compilation failed in require at
t/02_utility_functions.t line 9.
BEGIN failed--compilation aborted at
t/02_utility_functions.t line 9.
# Looks like your test exited with 2 before it could
output anything.
t/02_utility_functions.t .. Dubious, test returned 2 (wstat 512,
0x200)
Failed 18/18 subtests 
t/03_holmes_regexp.t ...... Can't load
'/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so' for module CWB::CL:
/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so: undefined symbol: cl_errno at
/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm line 187.
 at t/03_holmes_regexp.t
line 9.
Compilation failed in require at t/03_holmes_regexp.t line 9.
BEGIN
failed--compilation aborted at t/03_holmes_regexp.t line 9.
# Looks like your test exited
with 2 before it could output anything.
t/03_holmes_regexp.t ...... Dubious, test
returned 2 (wstat 512, 0x200)
Failed 34/34 subtests 
t/10_errors_strict.t ......
Can't load '/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so' for module CWB::CL:
/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so: undefined symbol: cl_errno at
/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm line 187.
 at
/home/andres/cwb-perl/CWB-CL/blib/lib/CWB/CL/Strict.pm line 4.
Compilation failed in
require at /home/andres/cwb-perl/CWB-CL/blib/lib/CWB/CL/Strict.pm line 4.
BEGIN
failed--compilation aborted at /home/andres/cwb-perl/CWB-CL/blib/lib/CWB/CL/Strict.pm line
4.
Compilation failed in require at t/10_errors_strict.t line 4.
BEGIN
failed--compilation aborted at t/10_errors_strict.t line 4.
# Looks like your test exited
with 2 before it could output anything.
t/10_errors_strict.t ...... Dubious, test
returned 2 (wstat 512, 0x200)
Failed 45/45 subtests 
t/11_errors_lax.t .........
Can't load '/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so' for module CWB::CL:
/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so: undefined symbol: cl_errno at
/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm line 187.
 at t/11_errors_lax.t
line 4.
Compilation failed in require at t/11_errors_lax.t line 4.
BEGIN
failed--compilation aborted at t/11_errors_lax.t line 4.
# Looks like your test exited
with 2 before it could output anything.
t/11_errors_lax.t ......... Dubious, test
returned 2 (wstat 512, 0x200)
Failed 62/62 subtests 

Test Summary Report
-------------------
t/00_load.t             (Wstat:
512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status:
2
t/01_vss.t             
(Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors:
Bad plan.  You planned 35 tests but ran 0.
t/02_utility_functions.t (Wstat: 512
Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad
plan.  You planned 18 tests but ran 0.
t/03_holmes_regexp.t   
(Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors:
Bad plan.  You planned 34 tests but ran 0.
t/10_errors_strict.t   
(Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors:
Bad plan.  You planned 45 tests but ran 0.
t/11_errors_lax.t       (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 62
tests but ran 0.
Files=6, Tests=2,  1 wallclock secs ( 0.08 usr  0.01 sys
+  0.44 cusr  0.04 csys =  0.57 CPU)
Result: FAIL
Failed 6/6 test
programs. 2/2 subtests failed.
Makefile:989: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2
root at corptedig-glif:/home/andres/cwb-perl/CWB-CL# ls
/home/andres/cwb-perl/CWB-CL/blib/arch/auto/CWB/CL/CL.so 









El Mar, 17 de Julio de 2018, 18:19, "Andrés Chandía"
escribió:
 
Ok, I fixed


I did install the cutting edge version,  then I copied /usr/local/cwb-3.4.14/bin/* to 
/usr/local/bin/
and voilà!


that did it!




El Mar, 17 de Julio de 2018, 18:08, "Andrés Chandía"
escribió:

I decided to go to the cutting-edge version, but the problem remains the same.....


CWB# make test
PERL_DL_NONLAZY=1 "/usr/bin/perl"
"-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_load.t ............ ok   
t/10_cwb_tools.t ....... ok     
t/11_cwb_file.t
........ ok     
t/12_cwb_tempfile.t .... ok   
t/13_cwb_shell.t ....... ok   
t/14_cwb_registry.t .... ok     
t/20_encode_vss.t ...... 1/6 # VSS corpus encoded in
0.6 seconds
t/20_encode_vss.t ...... ok   
t/21_encode_crlf.t ..... skipped: need
CWB 3.4.14 or newer for CRLF support
t/30_cqp_basic.t ....... ok     
t/31_cqp_queries.t ..... ok     
t/32_cqp_recode.t ...... ok     
t/33_cqp_errors.t ...... 1/23 
#   Failed test 'negative repetition count {-1}'
# 
 at t/33_cqp_errors.t line 26.
CWB::CQP: Child process #28355 terminated unexpectedly --
not safe to continue
# Looks like you planned 23 tests but ran 6.
# Looks like you
failed 1 test of 6 run.
# Looks like your test exited with 255 just after 6.
    (in
cleanup) Can't call method "can_read" on an undefined value at
/home/andres/cwb-perl/CWB/blib/lib/CWB/CQP.pm line 366 during global destruction.
t/33_cqp_errors.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 18/23
subtests 
t/34_cqp_crlf.t ........ skipped: need CWB 3.4.14 or newer for CRLF support
t/40_ceql_parser.t ..... ok     
t/41_ceql_string.t ..... ok     
t/42_ceql_grammar.t .... ok     
t/43_ceql_benchmark.t .. 1/2 # CEQL benchmark: 45.6 ms
(load), 3.17 ms (parse)
t/43_ceql_benchmark.t .. ok   
t/44_ceql_bncweb.t .....
1/180 # 89 ms for 174 queries = 0.51 ms / query
t/44_ceql_bncweb.t ..... ok       

Test Summary Report
-------------------
t/33_cqp_errors.t    (Wstat: 65280
Tests: 6 Failed: 1)
  Failed test:  6
  Non-zero exit status: 255
  Parse
errors: Bad plan.  You planned 23 tests but ran 6.
Files=18, Tests=512,  4 wallclock secs
( 0.25 usr  0.05 sys +  3.31 cusr  0.48 csys =  4.09 CPU)
Result: FAIL
Failed 1/18
test programs. 1/512 subtests failed.
Makefile:920: recipe for target 'test_dynamic'
failed
make: *** [test_dynamic] Error 255






El Mar, 17 de Julio de 2018, 16:33, "Andrés Chandía"
escribió:

Yes, I did ./install-scripts/cwb-install-ubuntu
and I just did it again just in case but then when I do

Perl-CWB-3.0# perl Makefile.PL
Perl-CWB-3.0# make
Perl-CWB-3.0# make test

Problem is still there:


t/33_cqp_errors.t ...... 1/23 
#   Failed test 'negative repetition count {-1}'
#   at t/33_cqp_errors.t line 26.
CWB::CQP: Child process #10898 terminated
unexpectedly -- not safe to continue
# Looks like you planned 23 tests but ran 6.
#
Looks like you failed 1 test of 6 run.
# Looks like your test exited with 255 just after
6.
    (in cleanup) Can't call method "can_read" on an undefined value at
/home/andres/Perl-CWB-3.0/blib/lib/CWB/CQP.pm line 366 during global destruction.
t/33_cqp_errors.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 18/23
subtests 
t/34_cqp_crlf.t ........ skipped: need CWB 3.4.14 or newer for CRLF support
t/40_ceql_parser.t ..... ok     
t/41_ceql_string.t ..... ok     
t/42_ceql_grammar.t .... ok     
t/43_ceql_benchmark.t .. 1/2 # CEQL benchmark: 44.5 ms
(load), 3.37 ms (parse)
t/43_ceql_benchmark.t .. ok   
t/44_ceql_bncweb.t .....
1/180 # 153 ms for 174 queries = 0.88 ms / query
t/44_ceql_bncweb.t ..... ok       

Test Summary Report
-------------------
t/33_cqp_errors.t    (Wstat: 65280
Tests: 6 Failed: 1)
  Failed test:  6
  Non-zero exit status: 255
  Parse
errors: Bad plan.  You planned 23 tests but ran 6.
Files=18, Tests=512,  5 wallclock secs
( 0.23 usr  0.06 sys +  3.43 cusr  0.41 csys =  4.13 CPU)
Result: FAIL
Failed 1/18
test programs. 1/512 subtests failed.
Makefile:920: recipe for target 'test_dynamic'
failed
make: *** [test_dynamic] Error 255





Did you re-compile cqp from source? According to my experience, this   is necessary with
every major update of perl.



_______________________
             andrés chandía
 
Dungupeyem | IECMap | ISECMap | NMT | Corlexim

administrador de:
Parles.upf | IWCH | Amind terapia |
ONG Mapuche koyaktu | Nocando | IAC | CddZ | ISAC | CatCg
P No
imprima innecesariamente. ¡Cuide el medio ambiente!  


_______________________
             andrés chandía
 
Dungupeyem | IECMap | ISECMap | NMT | Corlexim

administrador de:
Parles.upf | IWCH | Amind terapia |
ONG Mapuche koyaktu | Nocando | IAC | CddZ | ISAC | CatCg
P No
imprima innecesariamente. ¡Cuide el medio ambiente!  


_______________________
             andrés chandía
 
Dungupeyem | IECMap | ISECMap | NMT | Corlexim

administrador de:
Parles.upf | IWCH | Amind terapia | ONG Mapuche koyaktu | Nocando | IAC | CddZ | ISAC | CatCg
P No imprima
innecesariamente. ¡Cuide el medio ambiente!  


_______________________

            andrés
chandía
 
Dungupeyem | IECMap | ISECMap | NMT | Corlexim

administrador de:
Parles.upf | IWCH | Amind
terapia | ONG Mapuche koyaktu | Nocando | IAC
| CddZ | ISAC |
CatCg
P No imprima innecesariamente. ¡Cuide el medio ambiente!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20180717/83e6e01f/attachment-0001.html>


More information about the CWB mailing list