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

linking failure when attempting to build with python3 on version 7.3.967

Expand Messages
  • Xavier de Gaye
    The error message: objects/if_python3.o: In function `set_option_value_for : if_python3.c:(.text+0x1704): undefined reference to `win_find_tabpage collect2:
    Message 1 of 2 , May 18, 2013
    • 0 Attachment
      The error message:

      objects/if_python3.o: In function `set_option_value_for':
      if_python3.c:(.text+0x1704): undefined reference to `win_find_tabpage'
      collect2: ld returned 1 exit status
      link.sh: Linking failed

      Note that the undefined reference is actually in if_py_both.h, and not in
      if_python3.c as stated above.

      A proposed patch:

      =================================================
      diff --git a/src/window.c b/src/window.c
      --- a/src/window.c
      +++ b/src/window.c
      @@ -4058,7 +4058,8 @@
      }
      #endif

      -#if (defined(FEAT_WINDOWS) && defined(FEAT_PYTHON)) || defined(PROTO)
      +#if (defined(FEAT_WINDOWS) && \
      + (defined(FEAT_PYTHON) || defined(FEAT_PYTHON3))) || defined(PROTO)
      /*
      * Find the tabpage for window "win".
      */
      =================================================

      --
      Xavier

      Les Chemins de Lokoti: http://lokoti.alwaysdata.net

      --
      --
      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

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Bram Moolenaar
      ... Thanks! -- To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to
      Message 2 of 2 , May 18, 2013
      • 0 Attachment
        Xavier de Gaye wrote:

        > The error message:
        >
        > objects/if_python3.o: In function `set_option_value_for':
        > if_python3.c:(.text+0x1704): undefined reference to `win_find_tabpage'
        > collect2: ld returned 1 exit status
        > link.sh: Linking failed
        >
        > Note that the undefined reference is actually in if_py_both.h, and not in
        > if_python3.c as stated above.
        >
        > A proposed patch:

        Thanks!


        --
        To the optimist, the glass is half full.
        To the pessimist, the glass is half empty.
        To the engineer, the glass is twice as big as it needs to be.

        /// 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

        ---
        You received this message because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.