develooper Front page | perl.perl5.porters | Postings from September 1999

Re: xsubpp change breaks B, DB_File, POSIX builds

Thread Next
From:
Ilya Zakharevich
Date:
September 26, 1999 13:53
Subject:
Re: xsubpp change breaks B, DB_File, POSIX builds
Message ID:
19990926165230.A26933@monk.mps.ohio-state.edu
On Sun, Sep 26, 1999 at 03:36:55PM +0300, Jarkko Hietaniemi wrote:
> 
> First the errors caused by your xsubpp change, then the xsubpp as it
> now lives in the repository.
> 
> ../../miniperl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp  -typemap ../../lib/ExtUtils/typemap -typemap typemap B.xs > B.xsc && mv B.xsc B.c
> cc -c  -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -O4      -DVERSION=\"a5\"  -DXS_VERSION=\"a5\"  -I../..  B.c
> cc: Error: B.c, line 1113: Invalid declarator.
>         OP *    ;
> ----------------^

It was a misprint.  In fact xsubpp is not in the dependence list of
the extension's C files, so my testings did not detect this.  Should
not MakeMaker put xsubpp as a dependence?

I needed

  pfind ext '/^(.*)\.xs$/' '$a = "$1.c"; unlink $a; print "$a\n"'

to initialize the actual testing...

Ilya

--- ./lib/ExtUtils/xsubpp~	Sun Sep 26 01:31:34 1999
+++ ./lib/ExtUtils/xsubpp	Sun Sep 26 16:40:08 1999
@@ -390,7 +390,7 @@ sub INPUT_handler {
 	  if ($name_printed) {
 	    print ";\n";
 	  } else {
-	    print "\t$var_name_after;\n";
+	    print "\t$var_name;\n";
 	  }
 	} elsif ($var_init =~ /\S/) {
 	    &output_init($var_type, $var_num, $var_name, $var_init, $name_printed);

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