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

recompiling with cscope on mac os x

Expand Messages
  • Stephane Huaulme
    I ve been trying to get vim to compile with the cscope feature, but so far no luck. first I tried to uncomment this line in the makefile CONF_OPT_CSCOPE =
    Message 1 of 3 , May 2 7:04 AM
    • 0 Attachment
      I've been trying to get vim to compile with the cscope feature, but so
      far no luck. first I tried to uncomment this line in the makefile

      CONF_OPT_CSCOPE = --enable-cscope

      but that doesn't appear to enable the feature (I still see it as turned
      off when I do: :ver in vim).
      eventually, I enable this in src/feature.h

      # define FEAT_CSCOPE

      but I get the following compilation error:

      [sh-etoile-fw:dev/vim/src] stephane% make
      CC="gcc -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce "
      srcdir=. sh ./osdef.sh
      os_unix.h:53: warning: could not use precompiled header
      '/usr/include/unistd-gcc3.p', because:
      os_unix.h:53: warning: macro 'select' defined by osdef0.c conflicts
      with precomp
      os_unix.h:57: warning: could not use precompiled header
      '/usr/include/libc-gcc3.p', because:
      os_unix.h:57: warning: macro 'select' defined by osdef0.c conflicts
      with precomp
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
      -o objects/buffer.o buffer.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
      -o objects/charset.o charset.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
      -o objects/diff.o diff.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
      -o objects/digraph.o digraph.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
      -o objects/edit.o edit.c
      gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
      -o objects/eval.o eval.c
      eval.c: In function `f_visualmode':
      eval.c:6847: structure has no member named `b_visual_mode_eval'
      eval.c:6856: structure has no member named `b_visual_mode_eval'
      make: *** [objects/eval.o] Error 1


      any suggestions?

      thanks

      stephane
    • Stephane Huaulme
      I eventually used ./configure --enable-cscope and it yields the same results. it looks like the problem is affecting 6.2a (TOT CVS) only. 6.1 is working fine
      Message 2 of 3 , May 2 7:58 AM
      • 0 Attachment
        I eventually used

        ./configure --enable-cscope

        and it yields the same results. it looks like the problem is affecting
        6.2a (TOT CVS) only.
        6.1 is working fine

        stephane



        On Friday, May 2, 2003, at 09:04 AM, Stephane Huaulme wrote:

        > I've been trying to get vim to compile with the cscope feature, but so
        > far no luck. first I tried to uncomment this line in the makefile
        >
        > CONF_OPT_CSCOPE = --enable-cscope
        >
        > but that doesn't appear to enable the feature (I still see it as
        > turned off when I do: :ver in vim).
        > eventually, I enable this in src/feature.h
        >
        > # define FEAT_CSCOPE
        >
        > but I get the following compilation error:
        >
        > [sh-etoile-fw:dev/vim/src] stephane% make
        > CC="gcc -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > " srcdir=. sh ./osdef.sh
        > os_unix.h:53: warning: could not use precompiled header
        > '/usr/include/unistd-gcc3.p', because:
        > os_unix.h:53: warning: macro 'select' defined by osdef0.c conflicts
        > with precomp
        > os_unix.h:57: warning: could not use precompiled header
        > '/usr/include/libc-gcc3.p', because:
        > os_unix.h:57: warning: macro 'select' defined by osdef0.c conflicts
        > with precomp
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > -o objects/buffer.o buffer.c
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > -o objects/charset.o charset.c
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > -o objects/diff.o diff.c
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > -o objects/digraph.o digraph.c
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > -o objects/edit.o edit.c
        > gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
        > -o objects/eval.o eval.c
        > eval.c: In function `f_visualmode':
        > eval.c:6847: structure has no member named `b_visual_mode_eval'
        > eval.c:6856: structure has no member named `b_visual_mode_eval'
        > make: *** [objects/eval.o] Error 1
        >
        >
        > any suggestions?
        >
        > thanks
        >
        > stephane
        >
      • Bram Moolenaar
        ... First of all, try make distclean . If you change configure arguments you may need to clean up things first. The problem in eval.c is caused by using the
        Message 3 of 3 , May 2 11:24 AM
        • 0 Attachment
          Stephane Huaulme wrote:

          > I eventually used
          >
          > ./configure --enable-cscope
          >
          > and it yields the same results. it looks like the problem is affecting
          > 6.2a (TOT CVS) only.
          > 6.1 is working fine

          First of all, try "make distclean". If you change configure arguments
          you may need to clean up things first.

          The problem in eval.c is caused by using the +eval feature without the
          +visual feature. A strange combination, which is why nobody noticed
          this before. Patch for this:

          *** eval.c~ Wed Apr 30 21:19:04 2003
          --- eval.c Fri May 2 19:56:41 2003
          ***************
          *** 6847,6852 ****
          --- 6847,6853 ----
          VAR argvars;
          VAR retvar;
          {
          + #ifdef FEAT_VISUAL
          char_u str[2];

          retvar->var_type = VAR_STRING;
          ***************
          *** 6860,6865 ****
          --- 6861,6869 ----
          || (argvars[0].var_type == VAR_STRING
          && *get_var_string(&argvars[0]) != NUL))
          curbuf->b_visual_mode_eval = NUL;
          + #else
          + retvar->var_val.var_number = 0; /* return anything, it won't work anyway */
          + #endif
          }

          /*

          --
          hundred-and-one symptoms of being an internet addict:
          146. You experience ACTUAL physical withdrawal symptoms when away
          from your 'puter and the net.

          /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
          /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
          \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
          \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
        Your message has been successfully submitted and would be delivered to recipients shortly.