Michael G Schwern wrote:
On Mon, Jul 28, 2003 at 07:08:51PM +0200, Stas Bekman wrote:

The latest MakeMaker's xsubpp_version (from MM_Unix.pm) fails with the
latest maint perl-5.8.1 (works with 5.8.0). It generates a test .xs files which the latest maint perl doesn't like. Here is the generated file:


temp000
-------

MODULE = fred PACKAGE = fred

int
fred(a)
       int     a;

Here is the error:

perl -le 'qx[perl5.8.1 /home/stas/perl/5.8.1-ithread/lib/5.8.1/ExtUtils/xsubpp temp000]; print "failed" if $?'
Error: No INPUT definition for type 'int', typekind 'T_IV' found in temp000, line 5
Error: No OUTPUT definition for type 'int', typekind 'T_IV' found in temp000, line 5
Please specify prototyping behavior for temp000 (see perlxs manual)
failed


adding '-typemap
/home/stas/perl/5.8.1-ithread/lib/5.8.1/ExtUtils/typemap'
solves the problem, however I'll leave to Michael to decide how the
best to code that.


What directory did you run this from?  xsubpp doesn't know the real location
of your installed typemap file, it just fumbles around in directories above
it looking around.  Its MakeMaker that figures that bit out.

That why I didn't submit the patch ;) my manual "fix" did resolve the problem, but of course it was hardcoded.


As your other email suggested to completely kill that feature, this issue may become moot. However it was introduced after 5.8.0.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to