Pawel Slowik wrote:

> Steps to reproduce:
> 1) on Linux,
> 2) run:
> ../configure --disable-netbeans --disable-xsmp --enable-gui=no
> 3) disable FEAT_SESSION:
> patch -p0 < /tmp/vim-disable-session.diff
> 4) compile:
> make
> 
> Result:
> gcc   -L/usr/local/lib -Wl,--as-needed        -o vim objects/arabic.o
[...]
> -lSM -lICE  -lm -lncurses -lelf -lnsl  -lacl -lattr -lgpm -ldl
> objects/buffer.o: In function `do_autochdir':
> /tmp/vim-git/src/buffer.c:1815: undefined reference to `vim_chdirfile'        
>                                           
> collect2: error: ld returned 1 exit status
> link.sh: Linking failed
> Makefile:1949: recipe for target 'vim' failed
> make[1]: *** [vim] Error 1
> make[1]: Leaving directory '/tmp/vim-git/src'
> Makefile:26: recipe for target 'first' failed
> make: *** [first] Error 2
> 
> The do_autochdir function (FEAT_AUTOCHDIR) is defined if:
> FEAT_SUN_WORKSHOP || FEAT_NETBEANS_INTG || FEAT_BIG
> 
> The vim_chdirfile function is defined if:
> FEAT_SUN_WORKSHOP || FEAT_NETBEANS_INTG || FEAT_SESSION || MSWIN
> || FEAT_GUI_MAC || FEAT_GUI_GTK
> 
> I've got it to link by adding FEAT_AUTOCHDIR to vim_chdirfile ifdefs (see
> vim-chdirfile.diff), but I'm not sure if that is the correct way of addressing
> the problem (maybe FEAT_BIG should be added instead?).

Looks like the right solution.  I'll make a patch like that.

-- 
hundred-and-one symptoms of being an internet addict:
140. You'd rather catch a score on the web than watch the game as
     it is being played on tv.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui