View topic - Vim 6.4 compilation problem

Vim 6.4 compilation problem

For the old QNX2 and QNX4 RTOS

Vim 6.4 compilation problem

Postby osDrummer » Mon Feb 12, 2007 12:43 pm

Hi !
I got vim-6.4.tar.bz2 for 'unix' from vim.org
when I do:
1. ./configure --enable-gui=no
....it's OK, no errors.
2. make
...and got the errors:
vim.h(257) os_qnx.h not found
proto.h(72) os_qnx.pro not found

I saw in src/ but there is only os_unix.h and os_unixx.h files
So, how to compile Vim 6.4 for qnx4.25 ?

PS. I saw gvim on vim.org, but I need console version.

Thanks for any help!
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

RE: Vim 6.4 compilation problem

Postby mario » Mon Feb 12, 2007 12:47 pm

There is a prebuild version on the 3rd-party CD.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Vim 6.4 compilation problem

Postby osDrummer » Mon Feb 12, 2007 1:55 pm

1. Where can I get It?
2. What version of VIM is on the 3rd-party CD?
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

RE: Vim 6.4 compilation problem

Postby booBot » Mon Feb 12, 2007 3:45 pm

I think the "3rd-party CD" is about QNX6...
booBot
Senior Member
 
Posts: 633
Joined: Tue Feb 24, 2004 5:07 pm

RE: Vim 6.4 compilation problem

Postby mario » Mon Feb 12, 2007 4:45 pm

Woops sorry. From memory 6.2 built pretty much out of the box.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Vim 6.4 compilation problem

Postby marc70 » Tue Feb 13, 2007 8:31 am

Third party cd content is available as free downloadable in QNX website as iso image and there is no need to compile vim to use it.
burn a cd with the iso image and using QNX software installer install vim. alternately you can install it using the command qnxinstall -r <vim_filename.qpr> at command prompt.
marc70
Active Member
 
Posts: 31
Joined: Mon Jul 11, 2005 5:20 am

RE: Vim 6.4 compilation problem

Postby osDrummer » Tue Feb 13, 2007 8:42 am

I need VIM for QNX4, not for QNX6. For QNX6 I have package and all works well.
Has anybody prebuild vim for qnx4?
PS. May be vim build for qnx4 is available in the net? Any links?
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

RE: Vim 6.4 compilation problem

Postby michalek » Tue Feb 13, 2007 9:58 am

You need 'vim-6.4-extra.tar.gz' for 'os_qnx.[ch]' files.
michalek
Active Member
 
Posts: 31
Joined: Mon May 10, 2004 7:35 am

Re: RE: Vim 6.4 compilation problem

Postby osDrummer » Tue Feb 13, 2007 1:50 pm

michalek wrote:You need 'vim-6.4-extra.tar.gz' for 'os_qnx.[ch]' files.

Thanks. After download vim-6.4-extra.tar.gz, split with vim-6.4.tar.bz2 and use these recomendations - VIM succesfully compiled! But... :-)
Now I can run vim 6.4 under qnx 4.25. But :

1. After ':e / ' command I have folowing -> "~/" Illegal file nameStack Overflow at 007:00020D31
If I use some like ':e /home/osdrummer', I see the list of files, but navigation fails after 2-3 jumps between dirs and I see the same fatal message.

2. If I mistake in command, like ':sldkflkjf' :-) Vim start to highlight all non-blanked strings with blue...so there is no any color comand work :-(

Any idea?

PS. For build I use and got folow..

./configure --enable-gui=no
./make
./make install

PS2. The 'make' output is...
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 `/tmp/vim64/src'
CC="cc -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g " srcdir=. sh ./osdef.sh
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/buffer.o buffer.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/charset.o charset.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/diff.o diff.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/digraph.o digraph.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/edit.o edit.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/eval.o eval.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ex_cmds.o ex_cmds.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ex_cmds2.o ex_cmds2.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ex_docmd.o ex_docmd.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ex_eval.o ex_eval.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ex_getln.o ex_getln.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/fileio.o fileio.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/fold.o fold.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/getchar.o getchar.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/if_cscope.o if_cscope.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/if_xcmdsrv.o if_xcmdsrv.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/main.o main.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/mark.o mark.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/memfile.o memfile.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/memline.o memline.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/menu.o menu.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/message.o message.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/misc1.o misc1.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/misc2.o misc2.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/move.o move.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/mbyte.o mbyte.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/normal.o normal.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ops.o ops.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/option.o option.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/os_unix.o os_unix.c
creating auto/pathdef.c
(( not supported
make[1]: [auto/pathdef.c] Error 1 (ignored)
gethostname: No such process
make[1]: [auto/pathdef.c] Error 1 (ignored)
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/pathdef.o auto/pathdef.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/quickfix.o quickfix.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/regexp.o regexp.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/screen.o screen.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/search.o search.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/syntax.o syntax.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/tag.o tag.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/term.o term.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/ui.o ui.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/undo.o undo.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/window.o window.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/os_qnx.o os_qnx.c
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g version.c -o objects/version.o
cc -L/usr/local/lib -o vim objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o objects/os_qnx.o objects/version.o -lncurses -lnsl -lsocket -ldir
cc warning: cc: cannot find library 'nsl'
cc warning: cc: cannot find library 'dir'
link.sh: OK, linking works, let's try removing a few libraries.
link.sh: See auto/link.log for details.
usage: sed [-n] script [file ...]
or sed [-n] [-e script] [-f script_file] [file ...]

link.sh: Trying to remove the nsl library...
link.sh: We don't need the nsl library!
link.sh: Trying to remove the socket library...
link.sh: We don't need the socket library!
link.sh: Trying to remove the dir library...
link.sh: We don't need the dir library!
make[2]: Entering directory `/tmp/vim64/src'
creating auto/pathdef.c
(( not supported
make[2]: [auto/pathdef.c] Error 1 (ignored)
gethostname: No such process
cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -o objects/pathdef.o auto/pathdef.c
make[2]: Leaving directory `/tmp/vim64/src'
link.sh: Using auto/link.sed file to remove a few libraries
cc -L/usr/local/lib -o vim objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o objects/os_qnx.o objects/version.o -lncurses
link.sh: Linked fine with a few libraries removed
cd xxd; CC="cc" CFLAGS="-I/usr/local/include -g" \
make -f Makefile
make[2]: Entering directory `/tmp/vim64/src/xxd'
cc -I/usr/local/include -g -DUNIX -o xxd xxd.c
make[2]: Leaving directory `/tmp/vim64/src/xxd'
make[1]: Leaving directory `/tmp/vim64/src'
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

Postby marc70 » Tue Feb 13, 2007 1:51 pm

try this link:

http://www.qnx.com/download/index.html

There is a link for 3rd party software.
you may need to create a login before download.
marc70
Active Member
 
Posts: 31
Joined: Mon Jul 11, 2005 5:20 am

RE: Re: RE: Vim 6.4 compilation problem

Postby osDrummer » Tue Feb 13, 2007 2:21 pm

Here is some info about important parameters...
#sin ver
PROGRAM NAME VERSION DATE
//3/bin/Dev32.ansi Dev32.ansi 4.23H Nov 21 1996
#sin arg
PID USER NAME ARGUMENTS
27 System Dev.ansi -Q -n6
#set
TERM=qnxm
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

Postby osDrummer » Tue Feb 13, 2007 2:51 pm

marc70 wrote:try this link:

http://www.qnx.com/download/index.html

There is a link for 3rd party software.
you may need to create a login before download.

As I said I need Vim version for qnx4. The 3dParty on your link - for QNX 6.
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

Postby booBot » Thu Feb 15, 2007 6:43 pm

I've got some v6 vim for QNX4, but it has some strange mis-behaviour - it starts colorizing the text sometimes. Besides that - it works, I never ever had any SIGSEGV's of other mishaps with it.

e-mail?
booBot
Senior Member
 
Posts: 633
Joined: Tue Feb 24, 2004 5:07 pm

Postby osDrummer » Mon Feb 19, 2007 12:40 pm

Besides my 6.4 build I have vim 6.1 private build which has similar behaviour. For example, after wrong command in command mode all non-blank simbols are highlighted in blue (in my case).
I heard that it's because wrong TERM type (I have TERM=qnxm). And maybe because Dev32.ansi emulation mode (I use QNX emulation)
PS. I tried to change Dev.ansi mode and TERM to 'ansi'....but after that color comand works curiously and VIM somewhere has sigsegv.
osDrummer
Active Member
 
Posts: 14
Joined: Wed Nov 01, 2006 9:37 am

Postby booBot » Mon Feb 19, 2007 1:23 pm

Mine (supposedly v6.1 too) goes all-red...

:)
booBot
Senior Member
 
Posts: 633
Joined: Tue Feb 24, 2004 5:07 pm

Next

Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 4 guests

cron