Compiling vim on Solaris
The following notes detail my attempts to compile vim 6.3 on Sparc Solaris 2.6, Solaris
7, and
Solaris 8 systems using the gcc
compiler.
Solaris 2.6
I cannot successfully compile vim
6.3 on a Solaris 2.6 system. Sunfreeware
has a vim package for this
platform; you will also need to download and install the Sunfreeware glib and gtk+ packages to use the
Sunfreeware vim package.
Solaris 7
vim 6.3 compiles successfully using
the standard ./configure;make;make
install procedure on 32-bit Solaris 7 systems using the gcc compiler.
isainfo -bv
32-bit sparc applications
isainfo -kv
32-bit sparc kernel modules
Solaris 8
I received the following errors when compiling vim on a 64-bit Solaris 8 system:
Starting make in the src
directory.
If there are problems, cd to the
src directory and run make there
cd src && make first
make[1]: Entering directory
`/home/snetadm/vim/vim63/src'
gcc -c -I. -Iproto
-DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -I/usr/dt/include -g
-O2 -o objects/buffer.o
buffer.c
In file included from buffer.c:29:
vim.h:40: parse error before ':'
token
In file included from
os_unix.h:21,
from vim.h:195,
from buffer.c:29:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/include/stdio.h:241:
parse error before "__gnuc_va_list"
make[1]: *** [objects/buffer.o]
Error 1
make[1]: Leaving directory
`/home/snetadm/vim/vim63/src'
make: *** [first] Error 2
isainfo -bv
64-bit sparcv9 applications
isainfo -kv
64-bit sparcv9 kernel modules
To successfully compile vim
on a 64-bit Solaris 8 system, use the -m64 flag with gcc to generate code for a 64-bit
environment:
CC="gcc -m64" ./configure
make
make install
Back to brandonhutchinson.com.
Last modified: 12/28/2004