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

Re: vim 6.4 compile error --enable-tclinterp

Expand Messages
  • Pieter Lenaerts
    I used the gentoo patch for configure.in in the auto/configure script this is how I m patching the 6.4 release when users want tcl support: 2187c2187
    Message 1 of 5 , Nov 4, 2005
    • 0 Attachment
      I used the gentoo patch for configure.in in the auto/configure script

      this is how I'm patching the 6.4 release when users want tcl support:

      2187c2187
      < TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' '
      '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d
      '\012'`
      ---
      > TCL_DEFS=`echo $TCL_DEFS | sed -e 's/-\([[^D]]\|
      D[[^_]]\)[[^ \\\\]]\+\(\\\\.[[^ \\\\]]*\)*//g' | tr -s ' '`


      Op ma, 17-10-2005 te 19:06 +0100, schreef Ciaran McCreesh:
      > On Mon, 17 Oct 2005 19:42:26 +0200 Bram Moolenaar <Bram@...>
      > wrote:
      > | > i got a compile error when compiling vim 6.4 with tcl support.
      > | > interesting part of compile log at bottom. full log attached.
      > | >
      > | > any suggestions?
      > |
      > | I recognize the problem. I am quite sure this problem was fixed in
      > | before the 6.4 release. Are you sure you updated the auto/configure
      > | file? Around line 2187 it should look like:
      >
      > Hrm, we had a similar problem on Gentoo on some systems. There's a
      > really really nasty fix I've been using listed in [1], but I'm pretty
      > sure it will break with non GNU sed...
      >
      > [1]: https://bugs.gentoo.org/show_bug.cgi?id=86709#c4
    • Bram Moolenaar
      ... I guess the problem is caused by the backslashes. GNU sed might choke on them. I think a solution is doubling them: diff -u -r1.20 configure ... +++
      Message 2 of 5 , Nov 23, 2005
      • 0 Attachment
        Pieter Lenaerts wrote:

        > I used the gentoo patch for configure.in in the auto/configure script
        >
        > this is how I'm patching the 6.4 release when users want tcl support:
        >
        > 2187c2187
        > < TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' '
        > '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d
        > '\012'`
        > ---
        > > TCL_DEFS=`echo $TCL_DEFS | sed -e 's/-\([[^D]]\|
        > D[[^_]]\)[[^ \\\\]]\+\(\\\\.[[^ \\\\]]*\)*//g' | tr -s ' '`

        I guess the problem is caused by the backslashes. GNU sed might choke
        on them. I think a solution is doubling them:


        diff -u -r1.20 configure
        --- auto/configure 11 Oct 2005 20:31:17 -0000 1.20
        +++ auto/configure 23 Nov 2005 19:25:44 -0000
        -- @@ -4516,7 +4516,7 @@
        echo "${ECHO_T}$try/tclConfig.sh" >&6
        . $try/tclConfig.sh
        TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
        - TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
        + TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\ /\\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
        break
        fi
        done


        Let me know if this works, then I'll make a patch for Vim 6.4.

        --
        hundred-and-one symptoms of being an internet addict:
        180. You maintain more than six e-mail addresses.

        /// 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://www.ICCF.nl ///
      Your message has been successfully submitted and would be delivered to recipients shortly.