Installing vim7.2 on Solaris Sparc 2.6 as non-root
Posted
by Tobbe
on Super User
See other posts from Super User
or by Tobbe
Published on 2010-03-15T06:59:23Z
Indexed on
2010/03/15
7:10 UTC
Read the original article
Hit count: 429
I'm trying to install vim to $HOME/bin by compiling the sources.
./configure --prefix=$home/bin
seems to work, but when running make I get:
> make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -I/usr/openwin/include -o objects/buffer.o buffer.c
In file included from buffer.c:28:
vim.h:41: error: syntax error before ':' token
In file included from os_unix.h:29,
from vim.h:245,
from buffer.c:28:
/usr/include/sys/stat.h:251: error: syntax error before "blksize_t"
/usr/include/sys/stat.h:255: error: syntax error before '}' token
/usr/include/sys/stat.h:309: error: syntax error before "blksize_t"
/usr/include/sys/stat.h:310: error: conflicting types for 'st_blocks'
/usr/include/sys/stat.h:252: error: previous declaration of 'st_blocks' was here
/usr/include/sys/stat.h:313: error: syntax error before '}' token
In file included from /opt/local/bin/../lib/gcc/sparc-sun-solaris2.6/3.4.6/include/sys/signal.h:132,
from /usr/include/signal.h:26,
from os_unix.h:163,
from vim.h:245,
from buffer.c:28:
/usr/include/sys/siginfo.h:259: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: syntax error before '}' token
/usr/include/sys/siginfo.h:294: error: syntax error before '}' token
/usr/include/sys/siginfo.h:390: error: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of '__fault' was here
/usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of '__file' was here
/usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of '__prof' was here
/usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl' was here
/usr/include/sys/siginfo.h:426: error: syntax error before '}' token
/usr/include/sys/siginfo.h:428: error: syntax error before '}' token
/usr/include/sys/siginfo.h:432: error: syntax error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: syntax error before '}' token
In file included from /usr/include/signal.h:26,
from os_unix.h:163,
from vim.h:245,
from buffer.c:28:
/opt/local/bin/../lib/gcc/sparc-sun-solaris2.6/3.4.6/include/sys/signal.h:173: error: syntax error before "siginfo_t"
In file included from os_unix.h:163,
from vim.h:245,
from buffer.c:28:
/usr/include/signal.h:111: error: syntax error before "siginfo_t"
/usr/include/signal.h:113: error: syntax error before "siginfo_t"
buffer.c: In function `buflist_new':
buffer.c:1502: error: storage size of 'st' isn't known
buffer.c: In function `buflist_findname':
buffer.c:1989: error: storage size of 'st' isn't known
buffer.c: In function `setfname':
buffer.c:2578: error: storage size of 'st' isn't known
buffer.c: In function `otherfile_buf':
buffer.c:2836: error: storage size of 'st' isn't known
buffer.c: In function `buf_setino':
buffer.c:2874: error: storage size of 'st' isn't known
buffer.c: In function `buf_same_ino':
buffer.c:2894: error: dereferencing pointer to incomplete type
buffer.c:2895: error: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `objects/buffer.o'
Current working directory /home/xluntor/vim72/src
*** Error code 1
make: Fatal error: Command failed for target `first'
How do I fix the make errors? Or is there another way to install vim as non-root?
Thanks in advance
© Super User or respective owner