Compilation fails with features=small

12 views
Skip to first unread message

David NorthField

unread,
Jul 27, 2012, 11:11:50 PM7/27/12
to vim...@googlegroups.com
Hi, all

Vim 7.3.615 and later compilation fails with "src/normal.c:8006: undefined reference to `current_search'" when you configure --with-features=small.
Is this bug? Any comments on this matter would be appreciated.

thanks,

David

Dominique Pellé

unread,
Jul 28, 2012, 1:29:32 AM7/28/12
to vim...@googlegroups.com
I confirm. Vim small does not compile on Linux.
It happens because the definition of current_search()
is inside 2 nested #ifdef's (FEAT_TEXTOBJ, FEAT_VISUAL):

search.c:

3157 #ifdef FEAT_TEXTOBJ
....
3400 #if defined(FEAT_VISUAL) || defined(PROTO)
3401 /*
3402 * Find next search match under cursor, cursor at end.
3403 * Used while an operator is pending, and in Visual mode.
3404 * TODO: redo only works when used in operator pending mode
3405 */
3406 int
3407 current_search(count, forward)


Whereas where it's called (in normal.c) is only
in between one #ifdef FEAT_VISUAL

Attached patch fixes it by making gn and gN in
between FEAT_VISUAL only.

Regards
-- Dominique
fix-compile-small-7.6.617.patch

David NorthField

unread,
Jul 28, 2012, 3:29:05 AM7/28/12
to vim...@googlegroups.com
2012/7/28 Dominique Pellé <dominiq...@gmail.com>
Now, I could have build my own vim package for Ubuntu box with your patch.
Thanks for your help.

Regards,
David 
 

Bram Moolenaar

unread,
Jul 28, 2012, 8:08:54 AM7/28/12
to Dominique Pellé, vim...@googlegroups.com
Yeah, patch 7.3.616 was wrong. Should have tested that.

--
hundred-and-one symptoms of being an internet addict:
179. You wonder why your household garbage can doesn't have an
"empty recycle bin" button.

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages