develooper Front page | perl.perl5.porters | Postings from December 2001

Patches 12545 and 13862 broke Unicode::Map8

Thread Next
From:
andreas.koenig
Date:
December 31, 2001 07:14
Subject:
Patches 12545 and 13862 broke Unicode::Map8
Message ID:
m33d1rbf0x.fsf@anima.de
With perl@12543 one could build a working Unicode::Map8. It generated
this warning though:

  map8x.c: In function `map8_new_binfile':
  map8x.c:166: warning: assignment from incompatible pointer type
  map8x.c:170: warning: passing arg 1 of `PerlIO_read' from incompatible pointer type
  map8x.c:181: warning: passing arg 1 of `PerlIO_read' from incompatible pointer type
  map8x.c:192: warning: passing arg 1 of `PerlIO_close' from incompatible pointer type
  map8x.c: In function `map8_recode8':
  map8x.c:349: warning: passing arg 1 of `PerlIO_printf' from incompatible pointer type

Since 12545 no perl is able to build Unicode::Map8. But the reason why
they fail has changed.

perl@12545 to 13861 compile Unicode::Map8 with one warning more and
fail heavily on make test:

  /usr/local/perl-5.7.2@13861/bin/perl /usr/local/perl-5.7.2@13861/lib/5.7.2/ExtUtils/xsubpp  -typemap /usr/local/perl-5.7.2@13861/lib/5.7.2/ExtUtils/typemap -typemap typemap  Map8.xs > Map8.xsc && mv Map8.xsc Map8.c
  cc -c   -D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE  -g   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/perl-5.7.2@13861/lib/5.7.2/i686-linux-thread-multi/CORE  -DPERL Map8.c
  Map8.xs:101: warning: initialization from incompatible pointer type
  cc -c   -D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE  -g   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/perl-5.7.2@13861/lib/5.7.2/i686-linux-thread-multi/CORE  -DPERL map8x.c
  map8x.c: In function `map8_new_binfile':
  map8x.c:166: warning: assignment from incompatible pointer type
  map8x.c:170: warning: passing arg 1 of `PerlIO_read' from incompatible pointer type
  map8x.c:181: warning: passing arg 1 of `PerlIO_read' from incompatible pointer type
  map8x.c:192: warning: passing arg 1 of `PerlIO_close' from incompatible pointer type
  map8x.c: In function `map8_recode8':
  map8x.c:349: warning: passing arg 1 of `PerlIO_printf' from incompatible pointer type
  [...]
  PERL_DL_NONLAZY=1 /usr/local/perl-5.7.2@13861/bin/perl -Iblib/arch -Iblib/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
  t/callback....ok                                                             
  t/compat......dubious                                                        
          Test returned status 0 (wstat 11, 0xb)
  t/map8........dubious                                                        
          Test returned status 0 (wstat 11, 0xb)
  t/unistr......Unrecognized escape \_ passed through at /usr/local/perl-5.7.2@13861/lib/site_perl/5.7.2/i686-linux-thread-multi/Unicode/String.pm line 209.
  Unrecognized escape \_ passed through at /usr/local/perl-5.7.2@13861/lib/site_perl/5.7.2/i686-linux-thread-multi/Unicode/String.pm line 216.
  t/unistr......dubious
          Test returned status 0 (wstat 11, 0xb)
  Failed Test Stat Wstat Total Fail  Failed  List of Failed
  -------------------------------------------------------------------------------
  t/compat.t     0    11    ??   ??       %  ??
  t/map8.t       0    11    ??   ??       %  ??
  t/unistr.t     0    11    ??   ??       %  ??


perl@13862 to 13943 (my latest) do not compile Unicode::Map8:

  cc -c   -D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE  -g   -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/perl-5.7.2@13943/lib/5.7.2/i686-linux-thread-multi/CORE  -DPERL map8x.c
  map8x.c: In function `map8_new_txtfile':
  map8x.c:144: `my_perl' undeclared (first use in this function)
  map8x.c:144: (Each undeclared identifier is reported only once
  map8x.c:144: for each function it appears in.)
  map8x.c: In function `map8_new_binfile':
  map8x.c:166: warning: assignment from incompatible pointer type
  map8x.c:170: `my_perl' undeclared (first use in this function)
  map8x.c:170: warning: passing arg 2 of `Perl_PerlIO_read' from incompatible pointer type
  map8x.c:181: warning: passing arg 2 of `Perl_PerlIO_read' from incompatible pointer type
  map8x.c:192: warning: passing arg 2 of `Perl_PerlIO_close' from incompatible pointer type
  map8x.c: In function `map8_recode8':
  map8x.c:349: warning: passing arg 1 of `PerlIO_printf' from incompatible pointer type


-- 
andreas

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About