Another Patch for Perl 5.6 to try out
- I previously wrote:
> Bernhard Rosenkraenzer complained that he could not compile Vim with PerlWell, now I got another solution, which only adds one line in if_perl.xs. It
> 5.6. The problem appears to be in the Makefile, where a check for the
> version number doesn't work with the latest Perl version.
> The patch below fixes the problem for Bernhard and me, but I'm not sure if
> this breaks it for other versions of Perl. If you have Perl installed,
> please try this out and let me know if Vim compiles or not.
is supposed to work for all Perl versions. Since this is shorter and simpler,
I would prefer this patch over the previous solutions. This was suggested by
Add one line in if_perl.xs:
diff -r -u -N vim-5.6.old/src/if_perl.xs vim-5.6/src/if_perl.xs
--- vim-5.6.old/src/if_perl.xs Wed Mar 10 21:09:06 1999
+++ vim-5.6/src/if_perl.xs Tue Apr 18 21:17:11 2000
@@ -34,6 +34,7 @@
# undef MIN
And the Makefile should contain this for if_perl.c:
$(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
$(PERLLIB)/ExtUtils/typemap if_perl.xs > $@
Remove the other lines that are there and change the ">>" to ">".
Let me know if this works, especially if you have Perl 5.003_05 or 5.004.
hundred-and-one symptoms of being an internet addict:
104. When people ask about the Presidential Election you ask "Which country?"
/-/-- Bram Moolenaar --- Bram@... --- http://www.moolenaar.net --\-\
\-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/