[Koha] Text::Unaccent perl module make test error

Victor Pang victorp at netmedia.com.sg
Wed Jul 24 23:53:22 NZST 2013


I still have no clues where is the problem. I believe the "incompatible
pointer types" is the culprit but I am not familiar with the C language to
modify unac.c code (as well as Unaccent.xs). Can anyone please help? I am
left with this required module Text::Unaccent to run Koha.

sc20130316a:Text-Unaccent-1.08 seradmin$ make
cp Unaccent.pm blib/lib/Text/Unaccent.pm
/usr/bin/perl /System/Library/Perl/5.12/ExtUtils/xsubpp  -typemap
/System/Library/Perl/5.12/ExtUtils/typemap  Unaccent.xs > Unaccent.xsc && mv
Unaccent.xsc Unaccent.c
clang -c  -I. -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN
-fno-strict-aliasing -fstack-protector -I/usr/local/include -Os  
-DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" 
"-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" 
-DHAVE_CONFIG_H Unaccent.c
Unaccent.xs:71:20: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
                               &buffer, &buffer_length) == 0) {
                                        ^~~~~~~~~~~~~~
./unac.h:96:23: note: passing argument to parameter 'out_length' here
                char** out, size_t* out_length);
                                    ^
Unaccent.xs:88:19: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
                                     &buffer, &buffer_length) == 0) {
                                              ^~~~~~~~~~~~~~
./unac.h:79:23: note: passing argument to parameter 'out_length' here
                char** out, size_t* out_length);
                                    ^
2 warnings generated.
Unaccent.xs:71:20: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
                               &buffer, &buffer_length) == 0) {
                                        ^~~~~~~~~~~~~~
./unac.h:96:23: note: passing argument to parameter 'out_length' here
                char** out, size_t* out_length);
                                    ^
Unaccent.xs:88:19: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
                                     &buffer, &buffer_length) == 0) {
                                              ^~~~~~~~~~~~~~
./unac.h:79:23: note: passing argument to parameter 'out_length' here
                char** out, size_t* out_length);
                                    ^
2 warnings generated.
clang -c  -I. -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN
-fno-strict-aliasing -fstack-protector -I/usr/local/include -Os  
-DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" 
"-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" 
-DHAVE_CONFIG_H unac.c
unac.c:13888:59: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
    if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) <
0) {
                                                          ^~~~~~~~~~~~~
unac.c:13773:27: note: passing argument to parameter 'out_lengthp' here
                   char** outp, size_t* out_lengthp)
                                        ^
unac.c:13892:63: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
  ...utf16_length, &utf16_unaccented, &utf16_unaccented_length);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
unac.c:13673:30: note: passing argument to parameter 'out_lengthp' here
                      char** outp, size_t* out_lengthp)
                                           ^
2 warnings generated.
unac.c:13888:59: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
    if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) <
0) {
                                                          ^~~~~~~~~~~~~
unac.c:13773:27: note: passing argument to parameter 'out_lengthp' here
                   char** outp, size_t* out_lengthp)
                                        ^
unac.c:13892:63: warning: incompatible pointer types passing 'int *' to
      parameter of type 'size_t *' (aka 'unsigned long *')
      [-Wincompatible-pointer-types]
  ...utf16_length, &utf16_unaccented, &utf16_unaccented_length);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
unac.c:13673:30: note: passing argument to parameter 'out_lengthp' here
                      char** outp, size_t* out_lengthp)
                                           ^
2 warnings generated.
Running Mkbootstrap for Text::Unaccent ()
chmod 644 Unaccent.bs
rm -f blib/arch/auto/Text/Unaccent/Unaccent.bundle
LD_RUN_PATH="/usr/lib" clang -mmacosx-version-min=10.8  -arch i386 -arch
x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector
Unaccent.o unac.o  -o blib/arch/auto/Text/Unaccent/Unaccent.bundle 	\
	   -liconv  	\
	  
chmod 755 blib/arch/auto/Text/Unaccent/Unaccent.bundle
cp Unaccent.bs blib/arch/auto/Text/Unaccent/Unaccent.bs
chmod 644 blib/arch/auto/Text/Unaccent/Unaccent.bs
Manifying blib/man3/Text::Unaccent.3pm
sc20130316a:Text-Unaccent-1.08 seradmin$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/unac.t .. Failed 4/4 subtests 

Test Summary Report
-------------------
t/unac.t (Wstat: 11 Tests: 0 Failed: 0)
  Non-zero wait status: 11
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
Files=1, Tests=0,  0 wallclock secs ( 0.01 usr  0.01 sys +  0.01 cusr  0.00
csys =  0.03 CPU)
Result: FAIL
Failed 1/1 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 255




--
View this message in context: http://koha.1045719.n5.nabble.com/Text-Unaccent-perl-module-make-test-error-tp5762276p5762456.html
Sent from the Koha-general mailing list archive at Nabble.com.


More information about the Koha mailing list