cvs: xfce4-panel compile error
Brian J. Tarricone
bjt23 at cornell.edu
Tue Apr 6 08:07:47 CEST 2004
heh, you actually left off the important part of the output which is:
controls.c:577: error: syntax error before "control_items"
controls.c:577: warning: type defaults to `int' in declaration of
`control_items'
the problem is that, with gtk 2.4, GtkItemFactory is considered
deprecated, in favor of the new GtkAction menu stuff.
--enable-debug=yes causes GTK_DISABLE_DEPRECATED to be defined, and so
you get an error if you try to use any deprecated gtk stuff. the
annoying thing is that porting the code will require #ifdefs for gtk 2.4
and gtk < 2.4, since we want to allow gtk 2.2 and 2.0 users to still use
xfce4. personally i don't think it's worth it to do the work, though on
the other hand --enable-debug can be quite useful. anyway, as a
workaround, open up panel/Makefile, find references to
"-DGTK_DISABLE_DEPRECATED", and remove them.
-brian
Jesse Wagner wrote:
>w/ --enable-debug=yes I get this error. Using gtk 2.4.
>
>controls.c:581: warning: excess elements in scalar initializer
>controls.c:581: warning: (near initialization for `control_items[3]')
>controls.c:581: warning: excess elements in scalar initializer
>controls.c:581: warning: (near initialization for `control_items[3]')
>controls.c:582: warning: braces around scalar initializer
>controls.c:582: warning: (near initialization for `control_items[4]')
>controls.c:582: warning: initialization makes integer from pointer
>without a cast
>controls.c:582: warning: excess elements in scalar initializer
>controls.c:582: warning: (near initialization for `control_items[4]')
>controls.c:582: warning: excess elements in scalar initializer
>controls.c:582: warning: (near initialization for `control_items[4]')
>controls.c:582: warning: excess elements in scalar initializer
>controls.c:582: warning: (near initialization for `control_items[4]')
>controls.c:582: warning: excess elements in scalar initializer
>controls.c:582: warning: (near initialization for `control_items[4]')
>controls.c:583: warning: data definition has no type or storage class
>controls.c:587: warning: `translate_menu' defined but not used
>make[2]: *** [xfce4_panel-controls.o] Error 1
>make[2]: Leaving directory
>`/home/gabriel/tmp/compile/xfce4/xfce4-panel/panel'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/gabriel/tmp/compile/xfce4/xfce4-panel
>
>
>
More information about the Xfce4-dev
mailing list