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

vim 6.4 compile error --enable-tclinterp

Expand Messages
  • Pieter Lenaerts
    hi all, 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? thx
    Message 1 of 5 , Oct 17, 2005
    • 0 Attachment
      hi all,

      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?

      thx
      pieter


      --enable-tclinterp results in:

      CC="gcc -Iproto -DHAVE_CONFIG_H -O -march=pentium3 -mmmx -mfpmath=sse -msse-pipe -DPIC -fPIC -O3 -I/usr/include long " srcdir=. sh ./osdef.sh
      creating auto/pathdef.c
      C -fPIC -O3" \
      /usr/bin/make -f Makefile
      gcc: long: No such file or directory
      make[2]: Entering directory `/usr/src/vim64/src/xxd'
      gcc -O -march=pentium3 -mmmx -mfpmath=sse -msse -pipe -DPIC -fPIC -O3 -s -L/us/local/lib -DUNIX -o xxd xxd.c
      make[2]: Leaving directory `/usr/src/vim64/src/xxd'
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -O -march=pentium3 -mmmx -mfpmath=sse -mse -pipe -DPIC -fPIC -O3 -I/usr/include long -o objects/buffer.o buffer.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -O -march=pentium3 -mmmx -mfpmath=sse -mse -pipe -DPIC -fPIC -O3 -I/usr/include long -o objects/charset.o charset.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -O -march=pentium3 -mmmx -mfpmath=sse -mse -pipe -DPIC -fPIC -O3 -I/usr/include long -o objects/diff.o diff.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -O -march=pentium3 -mmmx -mfpmath=sse -mse -pipe -DPIC -fPIC -O3 -I/usr/include long -o objects/digraph.o digraph.c
      gcc: long: No such file or directory
      gcc: long: No such file or directory
      gcc: long: No such file or directory
      gcc: long: No such file or directory
      make[1]: *** [objects/digraph.o] Error 1
      make[1]: *** Waiting for unfinished jobs....
      make[1]: *** [objects/charset.o] Error 1
      make[1]: *** [objects/buffer.o] Error 1
      make: *** [first] Error 2


      --
      Pieter Lenaerts
      maintainer of editors and wm's - Sourcemage GNU/linux
      http://www.sourcemage.org

      e-type@...
      MSN: pieter_b52@...
      jabber: e-type@...
      irc: irc.freenode.net #sourcemage
    • Bram Moolenaar
      ... 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
      Message 2 of 5 , Oct 17, 2005
      • 0 Attachment
        Pieter Lenaerts 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:

        . $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'`
        break


        --
        hundred-and-one symptoms of being an internet addict:
        48. You get a tatoo that says "This body best viewed with Netscape 3.1 or
        higher."

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
        \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
      • Ciaran McCreesh
        On Mon, 17 Oct 2005 19:42:26 +0200 Bram Moolenaar ... Hrm, we had a similar problem on Gentoo on some systems. There s a really really
        Message 3 of 5 , Oct 17, 2005
        • 0 Attachment
          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
          --
          Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
          Mail : ciaranm at gentoo.org
          Web : http://dev.gentoo.org/~ciaranm
        • 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 4 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 5 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.