Hi there -
Has anyone successfully compiled Vim 7.0 on OS X 10.5.5 using the
--disable-darwin and --enable-gui=no options? I'm running into some kind of
weird issues with a system header.
I'm downloading 7.0.243 from the sourceforge svn repository (I'm using 7.0
instead of 7.2 because I have a patch that's only for 7.0). For now, I'm
not patching the source - just trying to get a text-only (non-gui) version
up and running. I'm using the following configure line:
./configure \
--disable-darwin \
--prefix=/opt/vim-7.0.243 \
--enable-pythoninterp \
--enable-gui=no \
--with-tlib=ncurses \
--disable-gpm \
--enable-multibyte
Which works just fine. Next, I change into the src/ directory and run make
(using Apple's 4.0.1 gcc compilers, from the Xcode tools), and I immediately
get this error:
mkdir objects
CC="gcc -Iproto -DHAVE_CONFIG_H -I/usr/X11/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
" srcdir=. sh ./osdef.sh
gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O -I/usr/X11/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-o objects/buffer.o buffer.c
In file included from os_unix.h:28,
from vim.h:242,
from buffer.c:28:
/usr/include/sys/types.h:135: error: two or more data types in declaration
specifiers
make: *** [objects/buffer.o] Error 1
And the line in /usr/include/sys/types.h that creates the issue is:
134 #ifndef _INO_T
135 typedef __darwin_ino_t ino_t; /* inode number */
136 #define _INO_T
137 #endif
If I remove the --disable-darwin option in my configure line, I have a
problem with the same file (/usr/include/types.h) at the same place. It
seems like there's a Darwin issue here, despite the --disable-darwin flag.
But I'm feeling a little clueless, as I don't have much C++ experience (I
have a vague idea of what this error means but no idea how I might go about
fixing it). I've also tried Fink's 4.3 gcc, and I run into the same issue.
Might this be related to Any information or help would be greatly
appreciated. Please let me know if there's any additional information that
would be helpful.
Charles
==========
Out of damp and gloomy days, out of solitude, out of loveless words directed
at us, conclusions grow up in us like fungus: one morning they are there, we
know not how, and they gaze upon us, morose and gray. Woe to the thinker who
is not the gardener but only the soil of the plants that grow in him.
- Friedrich Nietzsche
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---