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

Errors compiling GUI Vim on OS X

Expand Messages
  • Benjamin Esham
    Greetings! I am trying to compile a GUI version of the latest (cvs) Vim. I m using the Makefile, Info.plist, etc. from http://macvim.swdev.org/OSX, and used
    Message 1 of 1 , Sep 1 4:34 PM
    • 0 Attachment
      Greetings! I am trying to compile a GUI version of the latest (cvs)
      Vim. I'm
      using the Makefile, Info.plist, etc. from http://macvim.swdev.org/OSX,
      and used
      CVS to get the latest source (6.2.071 right now). However, I'm getting
      a bunch
      of "first use in this function"-type errors [see below]. These persist
      even
      after I dumped my entire src/ directory, re-checked it out from cvs, and
      replaced the Makefiles and such. I also tried setting IME=no in the
      `make'
      command, and looking at the patches from 6.2.014* to 6.2.071 to see if
      I could
      find any relevant changes, but to no avail. I'm running OS X.2.6.
      Does anyone
      have any suggestions for getting Vim to compile? Many thanks.

      * I built a version of 6.2.014 a while ago, so I know that any problems
      must be
      being caused by patches > 14.

      Here's the last part of the output of the `make' command:

      cc -arch ppc -fno-common -fpascal-strings -Wall -Wno-unknown-pragmas
      -mdynamic-no-pic -pipe -O2 -DMACOS_X_UNIX -DFEAT_PERL -DFEAT_PYTHON
      -DFEAT_MACOS_TSM -DUSE_MCH_GETTEXT -DHAVE_PATHDEF -I. -Iproto
      -I/Developer/Headers/FlatCarbon -I/System/Library/Perl/darwin/CORE
      -I/sw/include/python2.2 --load-pch ObjXU/vim_Prefix.pfe -c os_macosx.c
      -o ObjXU/os_macosx.o
      In file included from os_macosx.c:16:
      os_unix.c: In function `mch_get_shellsize':
      os_unix.c:3052: warning: implicit declaration of function `ioctl'
      os_macosx.c: At top level:
      os_macosx.c:273: parse error before "iconv_open"
      os_macosx.c:274: warning: return type defaults to `int'
      os_macosx.c: In function `iconv_open':
      os_macosx.c:276: `iconv_t' undeclared (first use in this function)
      os_macosx.c:276: (Each undeclared identifier is reported only once
      os_macosx.c:276: for each function it appears in.)
      os_macosx.c:276: parse error before "cd"
      os_macosx.c:286: `cd' undeclared (first use in this function)
      os_macosx.c:286: parse error before "alloc"
      os_macosx.c:324: warning: implicit declaration of function `iconv_close'
      os_macosx.c: At top level:
      os_macosx.c:335: parse error before "cd"
      os_macosx.c: In function `null_conv':
      os_macosx.c:338: `inbuf' undeclared (first use in this function)
      os_macosx.c:339: `outbuf' undeclared (first use in this function)
      os_macosx.c:343: `inbytesleft' undeclared (first use in this function)
      os_macosx.c:344: `outbytesleft' undeclared (first use in this function)
      os_macosx.c: At top level:
      os_macosx.c:372: parse error before "cd"
      os_macosx.c: In function `iconv':
      os_macosx.c:381: `cd' undeclared (first use in this function)
      os_macosx.c:387: `inbuf' undeclared (first use in this function)
      os_macosx.c:387: `inbytesleft' undeclared (first use in this function)
      os_macosx.c:387: `outbuf' undeclared (first use in this function)
      os_macosx.c:387: `outbytesleft' undeclared (first use in this function)
      os_macosx.c:497: `EILSEQ' undeclared (first use in this function)
      os_macosx.c: At top level:
      os_macosx.c:512: parse error before "cd"
      os_macosx.c: In function `iconv_close':
      os_macosx.c:514: `cd' undeclared (first use in this function)
      make: *** [ObjXU/os_macosx.o] Error 1

      --
      Benjamin D. Esham { http://bdesham.net
      bdesham@... } AIM: bdesham 1 2 8
      Wikipedia, the Free Encyclopedia - wikipedia.org
    Your message has been successfully submitted and would be delivered to recipients shortly.