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

compiling failed for vim 7.2 with perl 5.10

Expand Messages
  • Cesar Romani
    I m using the Ming compiler on Win XP Pro. Compiling vim 7.2 with perl 5.8 works, ... ... Can t locate ExtUtils/ParseXS.pm in @INC (@INC contains:
    Message 1 of 7 , Aug 29, 2008
    • 0 Attachment
      I'm using the Ming compiler on Win XP Pro.
      Compiling vim 7.2 with perl 5.8 works,
      but when I try to compile vim 7.2 with perl 5.10 it fails:

      ---------
      ...
      Can't locate ExtUtils/ParseXS.pm in @INC (@INC contains:
      /usr/lib/perl5/5.6.1/msys /usr/lib/perl5/5.6.1
      /usr/lib/perl5/site_perl/5.6.1/msys /usr/lib/perl5/site_perl/5.6.1
      /usr/lib/perl5/site_perl .) at C:/perl/lib/ExtUtils/xsubpp line 4.
      BEGIN failed--compilation aborted at C:/perl/lib/ExtUtils/xsubpp line 4.
      make: *** [if_perl.c] Error 2
      ---------

      Many thanks in advance,
      Cesar

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Dan Sharp
      ... Looks like your compile process is using the perl executable in the MSYS-DTK package, which is version 5.6.1. I assume your perl 5.10 is installed in
      Message 2 of 7 , Aug 29, 2008
      • 0 Attachment
        Cesar Romani wrote:
        > I'm using the Ming compiler on Win XP Pro.
        > Compiling vim 7.2 with perl 5.8 works,
        > but when I try to compile vim 7.2 with perl 5.10 it fails:
        >
        > ---------
        > ...
        > Can't locate ExtUtils/ParseXS.pm in @INC (@INC contains:
        > /usr/lib/perl5/5.6.1/msys /usr/lib/perl5/5.6.1
        > /usr/lib/perl5/site_perl/5.6.1/msys /usr/lib/perl5/site_perl/5.6.1
        > /usr/lib/perl5/site_perl .) at C:/perl/lib/ExtUtils/xsubpp line 4.
        > BEGIN failed--compilation aborted at C:/perl/lib/ExtUtils/xsubpp line 4.
        > make: *** [if_perl.c] Error 2
        > ---------
        >
        Looks like your compile process is using the perl executable in the
        MSYS-DTK package, which is version 5.6.1. I assume your perl 5.10 is
        installed in c:\perl, so you need to make sure c:\perl\bin comes before
        c:\msys\1.0\bin (or wherever you installed msys) in your %PATH% variable.

        Dan

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_dev" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Cesar Romani
        ... Thanks a lot for your answer. I changed the order as you indicated but ... ... gcc -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DHAVE_PATHDEF
        Message 3 of 7 , Aug 29, 2008
        • 0 Attachment
          Dan Sharp wrote:
          > Cesar Romani wrote:
          >> I'm using the Ming compiler on Win XP Pro.
          >> Compiling vim 7.2 with perl 5.8 works,
          >> but when I try to compile vim 7.2 with perl 5.10 it fails:
          >>
          >> ---------
          >> ...
          >> Can't locate ExtUtils/ParseXS.pm in @INC (@INC contains:
          >> /usr/lib/perl5/5.6.1/msys /usr/lib/perl5/5.6.1
          >> /usr/lib/perl5/site_perl/5.6.1/msys /usr/lib/perl5/site_perl/5.6.1
          >> /usr/lib/perl5/site_perl .) at C:/perl/lib/ExtUtils/xsubpp line 4.
          >> BEGIN failed--compilation aborted at C:/perl/lib/ExtUtils/xsubpp line 4.
          >> make: *** [if_perl.c] Error 2
          >> ---------
          >>
          > Looks like your compile process is using the perl executable in the
          > MSYS-DTK package, which is version 5.6.1. I assume your perl 5.10 is
          > installed in c:\perl, so you need to make sure c:\perl\bin comes before
          > c:\msys\1.0\bin (or wherever you installed msys) in your %PATH% variable.
          >
          > Dan

          Thanks a lot for your answer. I changed the order as you indicated but
          I'm getting the following error:

          ---------
          ...
          gcc -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DHAVE_PATHDEF
          -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT
          -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD
          -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w
          -march=i386 -Wall -IC:/perl/lib/Core -DFEAT_PERL -LC:/perl/lib/Core
          -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl510.dll\" -DFEAT_PYTHON -I
          c:/python25/include -DDYNAMIC_PYTHON
          -DDYNAMIC_PYTHON_DLL=\"python25.dll\" -O3 -fomit-frame-pointer
          -freg-struct-return -s -mwindows -o gvim.exe gobj/buffer.o
          gobj/charset.o gobj/diff.o gobj/digraph.o gobj/edit.o gobj/eval.o
          gobj/ex_cmds.o gobj/ex_cmds2.o gobj/ex_docmd.o gobj/ex_eval.o
          gobj/ex_getln.o gobj/fileio.o gobj/fold.o gobj/getchar.o gobj/hardcopy.o
          gobj/hashtab.o gobj/main.o gobj/mark.o gobj/memfile.o gobj/memline.o
          gobj/menu.o gobj/message.o gobj/misc1.o gobj/misc2.o gobj/move.o
          gobj/mbyte.o gobj/normal.o gobj/ops.o gobj/option.o gobj/os_win32.o
          gobj/os_mswin.o gobj/pathdef.o gobj/popupmnu.o gobj/quickfix.o
          gobj/regexp.o gobj/screen.o gobj/search.o gobj/spell.o gobj/syntax.o
          gobj/tag.o gobj/term.o gobj/ui.o gobj/undo.o gobj/version.o gobj/vimrc.o
          gobj/window.o gobj/if_perl.o gobj/if_python.o gobj/if_cscope.o
          gobj/netbeans.o gobj/gui.o gobj/gui_w32.o gobj/gui_beval.o
          gobj/os_w32exe.o -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32
          -lcomctl32 -lversion -lwsock32 -lole32 -luuid
          gobj/if_perl.o:if_perl.c:(.text+0x8ff): undefined reference to
          `Perl_sv_free2'
          gobj/if_perl.o:if_perl.c:(.text+0x1106): undefined reference to
          `Perl_sv_free2'
          collect2: ld returned 1 exit status
          make: *** [gvim.exe] Error 1
          ---------

          With Perl 5.8 I don't get any errors and the compiling is flawless.
          Many thanks in advance,
          Cesar


          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_dev" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        • Dan Sharp
          ... I was able to reproduce your problem using ActiveState ActivePerl 5.10. The attached patch adds Perl_sv_free2 to if_perl.xs and fixes the problem for me.
          Message 4 of 7 , Aug 29, 2008
          • 0 Attachment
            Cesar Romani wrote:
            > Dan Sharp wrote:
            > > Cesar Romani wrote:
            > >> I'm using the Ming compiler on Win XP Pro.
            > >> Compiling vim 7.2 with perl 5.8 works,
            > >> but when I try to compile vim 7.2 with perl 5.10 it fails:
            > >>
            >
            > Thanks a lot for your answer. I changed the order as you indicated but
            > I'm getting the following error:
            >
            > ---------
            > ...
            > gobj/if_perl.o:if_perl.c:(.text+0x8ff): undefined reference to
            > `Perl_sv_free2'
            > gobj/if_perl.o:if_perl.c:(.text+0x1106): undefined reference to
            > `Perl_sv_free2'
            > collect2: ld returned 1 exit status
            > make: *** [gvim.exe] Error 1
            > ---------
            >
            > With Perl 5.8 I don't get any errors and the compiling is flawless.
            > Many thanks in advance,
            > Cesar
            >
            I was able to reproduce your problem using ActiveState ActivePerl 5.10.
            The attached patch adds Perl_sv_free2 to if_perl.xs and fixes the
            problem for me. See if it works for you.

            Dan


            --~--~---------~--~----~------------~-------~--~----~
            You received this message from the "vim_dev" maillist.
            For more information, visit http://www.vim.org/maillist.php
            -~----------~----~----~----~------~----~------~--~---
          • Tony Mechelynck
            ... I Have Vim with Perl 5.10, built with gcc but on Linux, and I didn t get that error. Is there any way to get a link listing without recompiling, out of the
            Message 5 of 7 , Aug 29, 2008
            • 0 Attachment
              On 29/08/08 22:21, Cesar Romani wrote:
              > Dan Sharp wrote:
              > > Cesar Romani wrote:
              > >> I'm using the Ming compiler on Win XP Pro.
              > >> Compiling vim 7.2 with perl 5.8 works,
              > >> but when I try to compile vim 7.2 with perl 5.10 it fails:
              > >>
              > >> ---------
              > >> ...
              > >> Can't locate ExtUtils/ParseXS.pm in @INC (@INC contains:
              > >> /usr/lib/perl5/5.6.1/msys /usr/lib/perl5/5.6.1
              > >> /usr/lib/perl5/site_perl/5.6.1/msys /usr/lib/perl5/site_perl/5.6.1
              > >> /usr/lib/perl5/site_perl .) at C:/perl/lib/ExtUtils/xsubpp line 4.
              > >> BEGIN failed--compilation aborted at C:/perl/lib/ExtUtils/xsubpp line 4.
              > >> make: *** [if_perl.c] Error 2
              > >> ---------
              > >>
              > > Looks like your compile process is using the perl executable in the
              > > MSYS-DTK package, which is version 5.6.1. I assume your perl 5.10 is
              > > installed in c:\perl, so you need to make sure c:\perl\bin comes before
              > > c:\msys\1.0\bin (or wherever you installed msys) in your %PATH% variable.
              > >
              > > Dan
              >
              > Thanks a lot for your answer. I changed the order as you indicated but
              > I'm getting the following error:
              >
              > ---------
              > ...
              > gcc -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DHAVE_PATHDEF
              > -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT
              > -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD
              > -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w
              > -march=i386 -Wall -IC:/perl/lib/Core -DFEAT_PERL -LC:/perl/lib/Core
              > -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl510.dll\" -DFEAT_PYTHON -I
              > c:/python25/include -DDYNAMIC_PYTHON
              > -DDYNAMIC_PYTHON_DLL=\"python25.dll\" -O3 -fomit-frame-pointer
              > -freg-struct-return -s -mwindows -o gvim.exe gobj/buffer.o
              > gobj/charset.o gobj/diff.o gobj/digraph.o gobj/edit.o gobj/eval.o
              > gobj/ex_cmds.o gobj/ex_cmds2.o gobj/ex_docmd.o gobj/ex_eval.o
              > gobj/ex_getln.o gobj/fileio.o gobj/fold.o gobj/getchar.o gobj/hardcopy.o
              > gobj/hashtab.o gobj/main.o gobj/mark.o gobj/memfile.o gobj/memline.o
              > gobj/menu.o gobj/message.o gobj/misc1.o gobj/misc2.o gobj/move.o
              > gobj/mbyte.o gobj/normal.o gobj/ops.o gobj/option.o gobj/os_win32.o
              > gobj/os_mswin.o gobj/pathdef.o gobj/popupmnu.o gobj/quickfix.o
              > gobj/regexp.o gobj/screen.o gobj/search.o gobj/spell.o gobj/syntax.o
              > gobj/tag.o gobj/term.o gobj/ui.o gobj/undo.o gobj/version.o gobj/vimrc.o
              > gobj/window.o gobj/if_perl.o gobj/if_python.o gobj/if_cscope.o
              > gobj/netbeans.o gobj/gui.o gobj/gui_w32.o gobj/gui_beval.o
              > gobj/os_w32exe.o -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32
              > -lcomctl32 -lversion -lwsock32 -lole32 -luuid
              > gobj/if_perl.o:if_perl.c:(.text+0x8ff): undefined reference to
              > `Perl_sv_free2'
              > gobj/if_perl.o:if_perl.c:(.text+0x1106): undefined reference to
              > `Perl_sv_free2'
              > collect2: ld returned 1 exit status
              > make: *** [gvim.exe] Error 1
              > ---------
              >
              > With Perl 5.8 I don't get any errors and the compiling is flawless.
              > Many thanks in advance,
              > Cesar

              I Have Vim with Perl 5.10, built with gcc but on Linux, and I didn't get
              that error. Is there any way to get a link listing without recompiling,
              out of the unstripped executable at ~/.build/vim/vim72/src/vim and/or
              the objects at ~/.build/vim/vim72/src/*.o ? If there was, I could search
              for that symbol, see where it was defined (if_perl.xs doesn't use it
              directly).

              -- You have the #if statements for Perl 5.10 at lines 270, 457 and 485
              of if_perl.xs don't you?


              Best regards,
              Tony.
              --
              Howe's Law:
              Everyone has a scheme that will not work.

              --~--~---------~--~----~------------~-------~--~----~
              You received this message from the "vim_dev" maillist.
              For more information, visit http://www.vim.org/maillist.php
              -~----------~----~----~----~------~----~------~--~---
            • Cesar Romani
              ... Thanks a lot, it also works for me. Apparently on Linux works without the patch as Tony pointed out. Moreover I had the #if statements for Perl 5.10 at
              Message 6 of 7 , Aug 29, 2008
              • 0 Attachment
                Dan Sharp wrote:
                > Cesar Romani wrote:
                >> Dan Sharp wrote:
                >> > Cesar Romani wrote:
                >> >> I'm using the Ming compiler on Win XP Pro.
                >> >> Compiling vim 7.2 with perl 5.8 works,
                >> >> but when I try to compile vim 7.2 with perl 5.10 it fails:
                >> >>
                >>
                >> Thanks a lot for your answer. I changed the order as you indicated but
                >> I'm getting the following error:
                >>
                >> ---------
                >> ...
                >> gobj/if_perl.o:if_perl.c:(.text+0x8ff): undefined reference to
                >> `Perl_sv_free2'
                >> gobj/if_perl.o:if_perl.c:(.text+0x1106): undefined reference to
                >> `Perl_sv_free2'
                >> collect2: ld returned 1 exit status
                >> make: *** [gvim.exe] Error 1
                >> ---------
                >>
                >> With Perl 5.8 I don't get any errors and the compiling is flawless.
                >> Many thanks in advance,
                >> Cesar
                >>
                > I was able to reproduce your problem using ActiveState ActivePerl 5.10.
                > The attached patch adds Perl_sv_free2 to if_perl.xs and fixes the
                > problem for me. See if it works for you.
                >
                > Dan

                Thanks a lot, it also works for me. Apparently on Linux works without
                the patch as Tony pointed out. Moreover I had the #if statements for
                Perl 5.10 at lines 270, 457 and 485.

                Best regards,
                Cesar


                --~--~---------~--~----~------------~-------~--~----~
                You received this message from the "vim_dev" maillist.
                For more information, visit http://www.vim.org/maillist.php
                -~----------~----~----~----~------~----~------~--~---
              • Bram Moolenaar
                ... Thanks, I ll include the patch. -- How To Keep A Healthy Level Of Insanity: 1. At lunch time, sit in your parked car with sunglasses on and point a hair
                Message 7 of 7 , Sep 1, 2008
                • 0 Attachment
                  Dan Sharp wrote:

                  > Cesar Romani wrote:
                  > > Dan Sharp wrote:
                  > > > Cesar Romani wrote:
                  > > >> I'm using the Ming compiler on Win XP Pro.
                  > > >> Compiling vim 7.2 with perl 5.8 works,
                  > > >> but when I try to compile vim 7.2 with perl 5.10 it fails:
                  > > >>
                  > >
                  > > Thanks a lot for your answer. I changed the order as you indicated but
                  > > I'm getting the following error:
                  > >
                  > > ---------
                  > > ...
                  > > gobj/if_perl.o:if_perl.c:(.text+0x8ff): undefined reference to
                  > > `Perl_sv_free2'
                  > > gobj/if_perl.o:if_perl.c:(.text+0x1106): undefined reference to
                  > > `Perl_sv_free2'
                  > > collect2: ld returned 1 exit status
                  > > make: *** [gvim.exe] Error 1
                  > > ---------
                  > >
                  > > With Perl 5.8 I don't get any errors and the compiling is flawless.
                  > > Many thanks in advance,
                  > > Cesar
                  > >
                  > I was able to reproduce your problem using ActiveState ActivePerl 5.10.
                  > The attached patch adds Perl_sv_free2 to if_perl.xs and fixes the
                  > problem for me. See if it works for you.

                  Thanks, I'll include the patch.

                  --
                  How To Keep A Healthy Level Of Insanity:
                  1. At lunch time, sit in your parked car with sunglasses on and point
                  a hair dryer at passing cars. See if they slow down.

                  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
                  /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
                  \\\ download, build and distribute -- http://www.A-A-P.org ///
                  \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

                  --~--~---------~--~----~------------~-------~--~----~
                  You received this message from the "vim_dev" maillist.
                  For more information, visit http://www.vim.org/maillist.php
                  -~----------~----~----~----~------~----~------~--~---
                Your message has been successfully submitted and would be delivered to recipients shortly.