Summary: Help needed in compiling vim 6.3 with gcc 3.4.1 on Solar is 8

From: Perrier Kent (Kent.Perrier@HCAhealthcare.com)
Date: Thu Aug 05 2004 - 09:03:10 EDT


Original problem:

>
> Here is how I am attempting to configure vim:
>
> env CC=/usr/local/bin/gcc ./configure --prefix=/usr/local/
> --disable-shared
> \
> --enable-static --localstatedir=/var --disable-nls --with-x=no
> --enable-gui=no
>
> which runs fine. Make fails in the first file thusly:
>
> CC="gcc -Iproto -DHAVE_CONFIG_H -g -O2 " srcdir=.
> sh ./osdef.sh
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -o
> objects/buffer.o
> buffer.c
> In file included from buffer.c:29:
> vim.h:40: error: parse error before ':' token
> In file included from os_unix.h:21,
> from vim.h:195,
> from buffer.c:29:
> /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/include/stdio.h:
> 241: error:
> parse error before "__gnuc_va_list"
> make: *** [objects/buffer.o] Error 1
>

Thanks to Luc Suryo I have vim compiled and working.

I needed to change my CFLAGS and LDFLAGS to enable 64 bit:

CC=gcc
CFLAGS="-O2 -m64 -I/usr/local/include"
LDFLAG="-s -m64 -R/usr/local/lib -L/usr/local/lib"

Now its compiled fine. Thanks!

Note: My posting to this list does not give random Sun VARs the right to
cold call me asking about becoming a vendor.

-- 
Kent Perrier
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:13 EDT