VIM 6.4

Has anyone successfully compiled vim 6.4 under QNX 4.25? First pass
here has trouble with signal handlers and a missing manifest SA_STACK.

Lawrence R. Sweet wrote:

Has anyone successfully compiled vim 6.4 under QNX 4.25? First pass
here has trouble with signal handlers and a missing manifest SA_STACK.

I had some luck. Here’s what I did (hopefully I don’t miss any steps):

  1. gunzip/untar vim-6.4-extra, rt1, rt2, src1, src2.
  2. cd vim64 && ./configure --enable-gui=no
    –prefix=/home/ryallen/viminstall
  3. edit src/auto/config.h to comment out the line (this will fix the
    signal handler error):
    #define HAVE_SIGALTSTACK 1

I had some problems with languages that I didn’t care to deal with, and
some problems with the install. I didn’t care about languages so here’s
what I did:

  1. edit src/Makefile to change the line:
    all: $(VIMTARGET) $(TOOLS) languages
    to be:
    all: $(VIMTARGET) $(TOOLS)
  2. edit src/Makefile to change the line:
    install_normal: installvim installtools install-languages
    install-icons
    to be:
    install_normal: installvim installtools

And finally, for some reason shell “if” commands are returning 1 when
false, which breaks the make because make thinks an error occurs. So
you can combat this by replacing lines:
fi
with:
fi && echo

I had to do this in three parts in the Makefile. Once in installmacros:
(after the cvs= line); and in two spots in installtools: (after the if
test, and again after the cvs= line).

Finally end it off with:
6. make
7. make install

It’s only a bit of a hack, but the result is a (seemingly) working vim
6.4 conveniently installed to /home/ryallen/viminstall/ (just for easy
isolation of vim from the rest of the system).


Ryan J. Allen
ryallen@qnx.com

Ryan J. Allen wrote:

Lawrence R. Sweet wrote:
Has anyone successfully compiled vim 6.4 under QNX 4.25? First pass
here has trouble with signal handlers and a missing manifest SA_STACK.

I had some luck. Here’s what I did (hopefully I don’t miss any steps):

  1. gunzip/untar vim-6.4-extra, rt1, rt2, src1, src2.
  2. cd vim64 && ./configure --enable-gui=no
    –prefix=/home/ryallen/viminstall
  3. edit src/auto/config.h to comment out the line (this will fix the
    signal handler error):
    #define HAVE_SIGALTSTACK 1

I had some problems with languages that I didn’t care to deal with, and
some problems with the install. I didn’t care about languages so here’s
what I did:

  1. edit src/Makefile to change the line:
    all: $(VIMTARGET) $(TOOLS) languages
    to be:
    all: $(VIMTARGET) $(TOOLS)
  2. edit src/Makefile to change the line:
    install_normal: installvim installtools install-languages
    install-icons
    to be:
    install_normal: installvim installtools

And finally, for some reason shell “if” commands are returning 1 when
false, which breaks the make because make thinks an error occurs. So
you can combat this by replacing lines:
fi
with:
fi && echo

I had to do this in three parts in the Makefile. Once in installmacros:
(after the cvs= line); and in two spots in installtools: (after the if
test, and again after the cvs= line).

Finally end it off with:
6. make
7. make install

It’s only a bit of a hack, but the result is a (seemingly) working vim
6.4 conveniently installed to /home/ryallen/viminstall/ (just for easy
isolation of vim from the rest of the system).

Thanks Ryan. That will definetly save me some time :slight_smile:

Larry