Hi

I wrote a script to try building various configuration of Vim and
it found that this configuration does not build successfully:

$ ./configure --with-features=tiny --enable-gui=motif --enable-workshop
...
$ make
...
objects/fileio.o: In function `read_string_decrypt':
/home/pel/sb/vim/src/fileio.c:3062: undefined reference to `read_string'

objects/workshop.o: In function `load_window':
/home/pel/sb/vim/src/workshop.c:1310: undefined reference to `win_enter'

Attached patch fixes it.

-- Dominique

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r b7cb69ab616d src/fileio.c
--- a/src/fileio.c	Sun Jun 13 05:20:42 2010 +0200
+++ b/src/fileio.c	Sun Jun 20 01:05:01 2010 +0200
@@ -3047,6 +3047,7 @@
 #endif
 }
 
+#ifdef FEAT_PERSISTENT_UNDO
 /*
  * Read a string of length "len" from "fd".
  * When 'key' is set decrypt the bytes.
@@ -3066,7 +3067,7 @@
 #endif
     return ptr;
 }
-
+#endif
 
 #ifdef UNIX
     static void
diff -r b7cb69ab616d src/workshop.c
--- a/src/workshop.c	Sun Jun 13 05:20:42 2010 +0200
+++ b/src/workshop.c	Sun Jun 20 01:05:01 2010 +0200
@@ -1304,13 +1304,15 @@
     }
     else
     {
+#ifdef FEAT_WINDOWS
 	/* buf is in a window */
 	if (win != curwin)
 	{
 	    win_enter(win, False);
-	    /* wsdebug("load_window: window endter %s\n",
+	    /* wsdebug("load_window: window enter %s\n",
 		    win->w_buffer->b_sfname); */
 	}
+#endif
 	if (lnum > 0 && win->w_cursor.lnum != lnum)
 	{
 	    warp_to_pc(lnum);

Raspunde prin e-mail lui