Gary Johnson wrote: > On 2015-09-08, Bram Moolenaar wrote: > > Patch 7.4.861 (after 7.4.855) > > Problem: pango_shape_full() is not always available. > > Solution: Add a configure check. > > Files: src/configure.in, src/auto/configure, src/config.h.in, > > src/gui_gtk_x11.c > > Hmm. Something's still not right, but I don't understand > auto-configuration well enough to debug it effectively. > > I updated to this patch and ran > > make distclean > ./configure --prefix=/home/gary/src/vim-7.4 --enable-cscope > --enable-pythoninterp=yes > > The output of the configure command included this: > > checking for pango_shape_full... yes > > so that src/auto/config.h included this: > > /* Define if pango_shape_full() is available. */ > #define HAVE_PANGO_SHAPE_FULL 1 > > As one might expect, the subsequent make failed again with > > /home/gary/src/vim-7.4/vim/src/gui_gtk_x11.c:5067: undefined reference to > `pango_shape_full'
Somehow the compilation succeeds but the linking fails. I suspect the header files included the function even though it wasn't implemented. For me, if I remove the header file (thus the declaration of the function), the compilation fails. I have made a patch to have configure do the linking, then it will detect that it actually works. -- DENNIS: You can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@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 /// -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.