]> granicus.if.org Git - vim/commitdiff
patch 8.1.2370: build problems on VMS v8.1.2370
authorBram Moolenaar <Bram@vim.org>
Sat, 30 Nov 2019 21:38:16 +0000 (22:38 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 30 Nov 2019 21:38:16 +0000 (22:38 +0100)
Problem:    Build problems on VMS.
Solution:   Adjust the build file. (Zoltan Arpadffy)

src/Make_vms.mms
src/os_unix.c
src/os_vms.c
src/version.c

index 7c5a728d4ea9665e15d6461bf2c5f70c8316478a..f635d56027a27e5fc285d563d33b7dd88bd8b640 100644 (file)
@@ -2,9 +2,9 @@
 # Makefile for Vim on OpenVMS
 #
 # Maintainer:   Zoltan Arpadffy <arpadffy@polarhome.com>
-# Last change:  2019 Nov 21
+# Last change:  2019 Nov 30
 #
-# This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
+# This script has been tested on VMS 6.2 to 8.4 on DEC Alpha, VAX and IA64
 # with MMS and MMK
 #
 # The following could be built:
@@ -521,7 +521,9 @@ clean :
 
 # Link the target
 $(TARGET) : $(OBJ)
-       $(LD_DEF) $(LDFLAGS) /exe=$(TARGET) $+ $(ALL_LIBS)
+#     make an OPT file - as the obj file list is too long for one command line
+       -@ DIRECTORY *.OBJ. /BRIEF/COLUMNS=1/NOHEADING/NOTRAILING /SELECT=FILE=(NONODE,NODEVICE,NODIRECTORY,NOVERSION)/OUTPUT=ALL_OBJS_LIST.OPT
+       $(LD_DEF) $(LDFLAGS) /exe=$(TARGET) ALL_OBJS_LIST.OPT/OPT $(ALL_LIBS)
 
 .c.obj :
        $(CC_DEF) $(ALL_CFLAGS) $<
@@ -536,7 +538,7 @@ pathdef.c : check_ccver $(CONFIG_H)
        -@ write pd "char_u *default_vim_dir = (char_u *)"$(VIMLOC)";"
        -@ write pd "char_u *default_vimruntime_dir = (char_u *)"$(VIMRUN)";"
        -@ write pd "char_u *all_cflags = (char_u *)""$(CC_DEF)$(ALL_CFLAGS_VER)"";"
-       -@ write pd "char_u *all_lflags = (char_u *)""$(LD_DEF)$(LDFLAGS) /exe=$(TARGET) *.OBJ $(ALL_LIBS)"";"
+       -@ write pd "char_u *all_lflags = (char_u *)""$(LD_DEF)$(LDFLAGS) /exe=$(TARGET) ALL_OBJS_LIST.OPT/OPT $(ALL_LIBS)"";"
        -@ write pd "char_u *compiler_version = (char_u *) ""''CC_VER'"";"
        -@ write pd "char_u *compiled_user = (char_u *) "$(VIMUSER)";"
        -@ write pd "char_u *compiled_sys  = (char_u *) "$(VIMHOST)";"
@@ -544,8 +546,7 @@ pathdef.c : check_ccver $(CONFIG_H)
        -@ close pd
 
 if_perl.c : if_perl.xs
-       -@ $(PERL) PERL_ROOT:[LIB.ExtUtils]xsubpp -prototypes -typemap -
- PERL_ROOT:[LIB.ExtUtils]typemap if_perl.xs >> $@
+       -@ $(PERL) PERL_ROOT:[LIB.ExtUtils]xsubpp -prototypes -typemap - PERL_ROOT:[LIB.ExtUtils]typemap if_perl.xs >> $@
 
 make_vms.mms :
        -@ write sys$output "The name of the makefile MUST be <MAKE_VMS.MMS> !!!"
@@ -832,7 +833,7 @@ main.obj : main.c vim.h [.auto]config.h feature.h os_unix.h   \
  arabic.c
 map.obj : map.c vim.h [.auto]config.h feature.h os_unix.h   \
  ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
- [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h \
+ [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
 mark.obj : mark.c vim.h [.auto]config.h feature.h os_unix.h   \
  ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
  [.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h
index 6fa0702747fd5cd7e622149cba2dd25cf38b0f73..fd50eb316898e34e4b6241d3fdaec2e50a5b4aac 100644 (file)
@@ -1671,7 +1671,7 @@ ex_xrestore(exarg_T *eap)
         xterm_display_allocated = TRUE;
     }
     smsg(_("restoring display %s"), xterm_display == NULL
-                             ? (char *)mch_getenv("DISPLAY") : xterm_display);
+                   ? (char *)mch_getenv((char_u *)"DISPLAY") : xterm_display);
 
     clear_xterm_clip();
     x11_window = 0;
@@ -6257,7 +6257,7 @@ select_eintr:
                maxfd = ConnectionNumber(xterm_dpy);
 
            /* An event may have already been read but not handled.  In
-            * particulary, XFlush may cause this. */
+            * particularly, XFlush may cause this. */
            xterm_update();
        }
 # endif
index 80e585b228beee09cb8726b782f6d9a19cc0ab59..769377673c76cfa06252f1aaa96721cf9922e030 100644 (file)
@@ -382,7 +382,7 @@ vms_wproc(char *name, int val)
     if (vms_match_num == 0) {
        /* first time through, setup some things */
        if (NULL == vms_fmatch) {
-           vms_fmatch = ALLOC_MULT(char *, EXPL_ALLOC_INC);
+           vms_fmatch = ALLOC_MULT(char_u *, EXPL_ALLOC_INC);
            if (!vms_fmatch)
                return 0;
            vms_match_alloced = EXPL_ALLOC_INC;
@@ -443,7 +443,7 @@ mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, i
     *num_file = 0;                     /* default: no files found      */
     files_alloced = EXPL_ALLOC_INC;
     files_free = EXPL_ALLOC_INC;
-    *file = ALLOC_MULT(char_u **, files_alloced);
+    *file = ALLOC_MULT(char_u *, files_alloced);
     if (*file == NULL)
     {
        *num_file = 0;
index 65f72350404a9c6aabee8cf8779cbe5669948155..f2c26bbc2ccfad15cb69cedd5736246e7ec4cc9d 100644 (file)
@@ -737,6 +737,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2370,
 /**/
     2369,
 /**/