VIM 7.1 compilation error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

VIM 7.1 compilation error

Kim Do-hyoung Keedi
Hi, :-)

I am faced by the difficulity during compiling the new version of vim
7.1. I think I already have dev packages(gtk2-dev, gnome2-dev,
xft-dev, ...) but my system could not compile `gui_gtk_x11.c'


Any helpful suggestions appreciated. :-)

Regards,
keedi

----

I changed src/Makefile just uncomment below items and remain others
default:
CONF_OPT_GUI = --enable-gui=gnome2
CONF_OPT_PERL = --enable-perlinterp
CONF_OPT_CSCOPE = --enable-cscope
CONF_OPT_MULTIBYTE = --enable-multibyte
CONF_OPT_INPUT = --enable-hangulinput
CONF_OPT_OUTPUT = --enable-fontset
CONF_OPT_FEAT = --with-features=huge

Environment:
OS: Ubuntu Linux Edgy, 2.6.17-11-generic
LANG: ko_KR.UTF-8

compile error message:
gui_gtk_x11.c: In function ‘gui_mch_init_check’:
gui_gtk_x11.c:1586: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘sm_client_die’:
gui_gtk_x11.c:2339: warning: pointer targets in passing argument 2 of
‘vim_strncpy’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_get_fontset’:
gui_gtk_x11.c:4610: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_get_font’:
gui_gtk_x11.c:5221: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_set_fontset’:
gui_gtk_x11.c:5348: error: ‘gui_T’ has no member named ‘current_font’
gui_gtk_x11.c: In function ‘gui_mch_free_fontset’:
gui_gtk_x11.c:5374: warning: passing argument 1 of ‘gdk_font_unref’ from
incompatible pointer type
make: *** [objects/gui_gtk_x11.o] Error 1


Reply | Threaded
Open this post in threaded view
|

Re: VIM 7.1 compilation error

Kiwon Um
Hi guy.
I've also had the similar problem.

gui_gtk_x11.c: In function ‘gui_mch_set_fontset’:
gui_gtk_x11.c:5348: error: ‘gui_T’ has no member named ‘current_font’
gui_gtk_x11.c: In function ‘gui_mch_free_fontset’:
gui_gtk_x11.c:5374: warning: passing argument 1 of ‘gdk_font_unref’ from
incompatible pointer type
make: *** [objects/gui_gtk_x11.o] Error 1

Turning off the '--enable-hangulinput' option might temporally resolve that.
Now I'm also finding a way to settle the matter completely even turning on it.
But no one has seemed to know it, poor...
keedi wrote
Hi, :-)

I am faced by the difficulity during compiling the new version of vim
7.1. I think I already have dev packages(gtk2-dev, gnome2-dev,
xft-dev, ...) but my system could not compile `gui_gtk_x11.c'


Any helpful suggestions appreciated. :-)

Regards,
keedi

----

I changed src/Makefile just uncomment below items and remain others
default:
CONF_OPT_GUI = --enable-gui=gnome2
CONF_OPT_PERL = --enable-perlinterp
CONF_OPT_CSCOPE = --enable-cscope
CONF_OPT_MULTIBYTE = --enable-multibyte
CONF_OPT_INPUT = --enable-hangulinput
CONF_OPT_OUTPUT = --enable-fontset
CONF_OPT_FEAT = --with-features=huge

Environment:
OS: Ubuntu Linux Edgy, 2.6.17-11-generic
LANG: ko_KR.UTF-8

compile error message:
gui_gtk_x11.c: In function ‘gui_mch_init_check’:
gui_gtk_x11.c:1586: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘sm_client_die’:
gui_gtk_x11.c:2339: warning: pointer targets in passing argument 2 of
‘vim_strncpy’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_get_fontset’:
gui_gtk_x11.c:4610: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_get_font’:
gui_gtk_x11.c:5221: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_set_fontset’:
gui_gtk_x11.c:5348: error: ‘gui_T’ has no member named ‘current_font’
gui_gtk_x11.c: In function ‘gui_mch_free_fontset’:
gui_gtk_x11.c:5374: warning: passing argument 1 of ‘gdk_font_unref’ from
incompatible pointer type
make: *** [objects/gui_gtk_x11.o] Error 1

Reply | Threaded
Open this post in threaded view
|

Re: VIM 7.1 compilation error

Edward L. Fox

Hi Kiwon and Keedi,

> [...]
> gui_gtk_x11.c: In function 'gui_mch_set_fontset':
> gui_gtk_x11.c:5348: error: 'gui_T' has no member named 'current_font'
> gui_gtk_x11.c: In function 'gui_mch_free_fontset':
> gui_gtk_x11.c:5374: warning: passing argument 1 of 'gdk_font_unref' from
> incompatible pointer type
> make: *** [objects/gui_gtk_x11.o] Error 1
>
> Turning off the '--enable-hangulinput' option might temporally resolve that.
> Now I'm also finding a way to settle the matter completely even turning on
> it.
> But no one has seemed to know it, poor...:-(

Try this patch:

Index: src/gui_gtk_x11.c
===================================================================
--- src/gui_gtk_x11.c   (revision 396)
+++ src/gui_gtk_x11.c   (working copy)
@@ -5347,7 +5347,7 @@
     void
 gui_mch_set_fontset(GuiFontset fontset)
 {
-    gui.current_font = fontset;
+    gui.fontset = fontset;
 }
 #endif

> [...]

By the way, please always use bottom-posting or interlaced-posting in
this mailing list. Bram hates top-posting.


Regards,


Edward L. Fox

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---