Loading ...
Sorry, an error occurred while loading the content.
 

Re: Building on Windows 7 - Perl crashes

Expand Messages
  • Bram Moolenaar
    ... Thanks! I ll try it out tomorrow. -- From the classified section of a city newspaper: Dog for sale: eats anything and is fond of children. /// Bram
    Message 1 of 12 , Aug 7, 2012
      Raymond Ko wrote:

      > After some careful re-reading, I might have been too hasty in posting
      > that link. It was for Perl 5.6 and Linux. Just thought it might be
      > relevant since it seems to use the same way to retrieve errors.
      >
      > A more relevant post I found is this:
      > http://sourceforge.net/mailarchive/forum.php?thread_name=20111121203748.GA2514%40whitehatsec.com&forum_name=swig-devel
      > , which seems to exactly describe this problem. And indeed, using
      > ActiveState Perl 5.12 works for print "hello" without crashing and can
      > report errors. From the comments in the post, they offer a workaround,
      > which I have based the following patch on. It is somewhat ugly as I
      > had to use the preprocessor to check for MS VC is being used (since
      > MinGW doesn't need fixing). I am not sure if the error messages
      > obtained differ from PL_errgv method, although through my one test,
      > they appear to be the same.
      >
      > IMO, I think this stems from ActiveState's choice to use the woefully
      > outdated VC6 to compile Perl to ensure maximum compatibility on all
      > Windows systems. Using VC6 links to the VC6 runtime (msvcrt.dll).
      > Since we are using newer versions of MSVC, it is using different
      > version of the C++ Runtime Library, which might be causing conflicts.
      > It is that or some other ABI incompatibility I think.
      >
      > I also tried using Strawberry Perl, although that wouldn't compile.
      >
      > Based of all this I think the following options are:
      > 1. Use ActiveState Perl 5.12 and say that is the official version of
      > Windows binaries.
      > 2. Use the patch and just fix it for MS VC and Perl >= 5.14
      > 3. Use a variant of the patch and always use perl_get_sv(). I don't
      > know if this is available or equivalent in older versions, or what the
      > ramifications are.
      > 4. Find a Windows Perl maintainer to investigate the root cause and
      > recommended fix, as none of this stuff is my forte.

      Thanks! I'll try it out tomorrow.


      --
      From the classified section of a city newspaper:
      Dog for sale: eats anything and is fond of children.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.