xfwm4 build problems on CVS HEAD

Olivier Fourdan fourdan at xfce.org
Fri May 14 22:35:51 CEST 2004


Don,

Don't set G_DISABLE_DEPRECATED, GDK_DISABLE_DEPRECATED and so on.

Cheers,
Olivier.

On Fri, 2004-05-14 at 21:37, Don Christensen wrote:
> I'm not sure if I should use the -dev list for this or not, but
> I would like to report some compile issues I am having with xfwm4
> in case they are related to gtk2 2.2.x.  If this code is just not
> stable at this point, then I will continue to watch for updates
> and building when they come along (and this report can be ignored).
> 
> The most important issue (for me, anyway) is the undefined references
> in the first snippet below.
> 
> Sorry about the formatting, I hope it isn't too much of a pain.
> Also, please let me know if reports of this type are useful or
> not.  When I get a little unburied at work, I plan to do some
> more rigorous testing of non-Xinerama multihead and reporting
> the problems I find.
> 
> Thanks,
> -Don
> 
> Red Hat Enterprise Linux AS release 3 (Taroon Update 1)
> 
> gtk2-2.2.4-4.0
> gtk2-devel-2.2.4-4.0
> 
> % gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-24)
> 
> 
> 
> gcc -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_
> DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -o xfwm4 xfwm
> 4-client.o xfwm4-events.o xfwm4-focus.o xfwm4-frame.o xfwm4-hints.o xfwm4-keyboard
> .o xfwm4-main.o xfwm4-menu.o xfwm4-misc.o xfwm4-mypixmap.o xfwm4-mywindow.o xfwm4-
> netwm.o xfwm4-parserc.o xfwm4-placement.o xfwm4-poswin.o xfwm4-session.o xfwm4-set
> tings.o xfwm4-spinning_cursor.o xfwm4-stacking.o xfwm4-startup_notification.o xfwm
> 4-tabwin.o xfwm4-transients.o xfwm4-workspaces.o -Wl,--export-dynamic  -L/usr/X11R
> 6/lib -lXext -L/opt/xfce4/lib /opt/xfce4/lib/libxfce4mcs-client.so /opt/xfce4/lib/
> libxfcegui4.so -lstartup-notification-1 -lgtk-x11-2.0 /opt/xfce4/lib/libxfce4util.
> so -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpang
> o-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lSM -lICE -lX11 -lXpm -lXrandr
> -lXrender
> xfwm4-main.o(.text+0x419): In function `initialize':
> /home/djc/xfce/xfce4/xfwm4/src/main.c:275: undefined reference to `gtk_widget_push
> _visual'
> xfwm4-mypixmap.o(.text+0xe6): In function `myPixmapCompose':
> /home/djc/xfce/xfce4/xfwm4/src/mypixmap.c:77: undefined reference to `gdk_rgb_get_
> cmap'
> collect2: ld returned 1 exit status
> make[2]: *** [xfwm4] Error 1
> make[2]: Target `all' not remade because of errors.
> make[2]: Leaving directory `/home/djc/xfce/xfce4/xfwm4/src'
> 
> 
> 
> 
> 
> make[2]: Entering directory `/home/djc/xfce/xfce4/xfwm4/src'
> ...
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/startup-notification-1.0 -I/
> usr/X11R6/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/g
> lib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce
> 4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/us
> r/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inc
> lude/atk-1.0 -I/usr/X11R6/include -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/sh
> are/locale\" -DDATADIR=\"/opt/xfce4/share\" -DPACKAGE_DATADIR=\"/opt/xfce4/share/x
> fwm4\" -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISAB
> LE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT xfwm4-
> main.o -MD -MP -MF ".deps/xfwm4-main.Tpo" -c -o xfwm4-main.o `test -f 'main.c' ||
> echo './'`main.c; \
> then mv -f ".deps/xfwm4-main.Tpo" ".deps/xfwm4-main.Po"; else rm -f ".deps/xfwm4-m
> ain.Tpo"; exit 1; fi
> In file included from main.c:32:
> /opt/xfce4/include/xfce4/libxfce4util/util.h:31:2: warning: #warning "Don't includ
> e <libxfce4util/util.h> directly, include <libxfce4util/libxfce4util.h> instead."
> main.c: In function `initialize':
> main.c:267: warning: implicit declaration of function `gdk_rgb_init'
> main.c:275: warning: implicit declaration of function `gtk_widget_push_visual'
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/startup-notification-1.0 -I/
> usr/X11R6/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/g
> lib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce
> 4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/us
> r/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inc
> lude/atk-1.0 -I/usr/X11R6/include -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/sh
> are/locale\" -DDATADIR=\"/opt/xfce4/share\" -DPACKAGE_DATADIR=\"/opt/xfce4/share/x
> fwm4\" -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISAB
> LE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT xfwm4-
> mypixmap.o -MD -MP -MF ".deps/xfwm4-mypixmap.Tpo" -c -o xfwm4-mypixmap.o `test -f
> 'mypixmap.c' || echo './'`mypixmap.c; \
> then mv -f ".deps/xfwm4-mypixmap.Tpo" ".deps/xfwm4-mypixmap.Po"; else rm -f ".deps
> /xfwm4-mypixmap.Tpo"; exit 1; fi
> mypixmap.c: In function `myPixmapCompose':
> mypixmap.c:77: warning: implicit declaration of function `gdk_rgb_get_cmap'
> mypixmap.c:78: warning: passing arg 3 of `gdk_pixbuf_get_from_drawable' makes poin
> ter from integer without a cast
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/startup-notification-1.0 -I/
> usr/X11R6/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/g
> lib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce
> 4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/us
> r/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inc
> lude/atk-1.0 -I/usr/X11R6/include -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/sh
> are/locale\" -DDATADIR=\"/opt/xfce4/share\" -DPACKAGE_DATADIR=\"/opt/xfce4/share/x
> fwm4\" -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISAB
> LE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT xfwm4-
> placement.o -MD -MP -MF ".deps/xfwm4-placement.Tpo" -c -o xfwm4-placement.o `test
> -f 'placement.c' || echo './'`placement.c; \
> then mv -f ".deps/xfwm4-placement.Tpo" ".deps/xfwm4-placement.Po"; else rm -f ".de
> ps/xfwm4-placement.Tpo"; exit 1; fi
> placement.c: In function `clientInitPosition':
> placement.c:385: warning: unused variable `top'
> placement.c:385: warning: `left' might be used uninitialized in this function
> placement.c:385: warning: `right' might be used uninitialized in this function
> placement.c:385: warning: `bottom' might be used uninitialized in this function
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/startup-notification-1.0 -I/
> usr/X11R6/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/g
> lib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce
> 4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/us
> r/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inc
> lude/atk-1.0 -I/usr/X11R6/include -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/sh
> are/locale\" -DDATADIR=\"/opt/xfce4/share\" -DPACKAGE_DATADIR=\"/opt/xfce4/share/x
> fwm4\" -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISAB
> LE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT xfwm4-
> settings.o -MD -MP -MF ".deps/xfwm4-settings.Tpo" -c -o xfwm4-settings.o `test -f
> 'settings.c' || echo './'`settings.c; \
> then mv -f ".deps/xfwm4-settings.Tpo" ".deps/xfwm4-settings.Po"; else rm -f ".deps
> /xfwm4-settings.Tpo"; exit 1; fi
> In file included from settings.c:31:
> /opt/xfce4/include/xfce4/libxfce4util/util.h:31:2: warning: #warning "Don't includ
> e <libxfce4util/util.h> directly, include <libxfce4util/libxfce4util.h> instead."
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/startup-notification-1.0 -I/
> usr/X11R6/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/g
> lib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/opt/xfce4/include/xfce
> 4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/us
> r/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inc
> lude/atk-1.0 -I/usr/X11R6/include -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/sh
> are/locale\" -DDATADIR=\"/opt/xfce4/share\" -DPACKAGE_DATADIR=\"/opt/xfce4/share/x
> fwm4\" -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISAB
> LE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT xfwm4-
> tabwin.o -MD -MP -MF ".deps/xfwm4-tabwin.Tpo" -c -o xfwm4-tabwin.o `test -f 'tabwi
> n.c' || echo './'`tabwin.c; \
> then mv -f ".deps/xfwm4-tabwin.Tpo" ".deps/xfwm4-tabwin.Po"; else rm -f ".deps/xfw
> m4-tabwin.Tpo"; exit 1; fi
> tabwin.c: In function `tabwinCreate':
> tabwin.c:47: warning: implicit declaration of function `inline_icon_at_size'
> tabwin.c:47: warning: assignment makes pointer from integer without a cast
> tabwin.c:70: warning: implicit declaration of function `create_header'
> tabwin.c:70: warning: assignment makes pointer from integer without a cast
> 
> 
> 
> make[2]: Entering directory `/home/djc/xfce/xfce4/xfwm4/mcs-plugin'
> ...
>   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/X11R6/include -I/opt
> /xfce4/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X1
> 1R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/i
> nclude -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -
> I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/opt/xfce4/include/xfce4 -I/us
> r/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/p
> ango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/incl
> ude -I/usr/include/atk-1.0 -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/share/loc
> ale\" -DSYSCONFDIR=\"/opt/xfce4/etc\" -DDATADIR=\"/opt/xfce4/share/xfwm4\" -g -O2
> -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
> -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT workspaces_plugin_la
> -margins.lo -MD -MP -MF .deps/workspaces_plugin_la-margins.Tpo -c margins.c  -fPIC
>   -DPIC -o .libs/workspaces_plugin_la-margins.o
> In file included from margins.c:35:
> /opt/xfce4/include/xfce4/libxfce4util/util.h:31:2: warning: #warning "Don't includ
> e <libxfce4util/util.h> directly, include <libxfce4util/libxfce4util.h> instead."
> margins.c: In function `add_margins_page':
> margins.c:140: warning: implicit declaration of function `inline_icon_at_size'
> margins.c:140: warning: assignment makes pointer from integer without a cast
> 
>   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/X11R6/include -I/opt
> /xfce4/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X1
> 1R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/i
> nclude -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -
> I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/opt/xfce4/include/xfce4 -I/us
> r/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/p
> ango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/incl
> ude -I/usr/include/atk-1.0 -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/share/loc
> ale\" -DSYSCONFDIR=\"/opt/xfce4/etc\" -DDATADIR=\"/opt/xfce4/share/xfwm4\" -g -O2
> -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
> -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT workspaces_plugin_la
> -workspaces.lo -MD -MP -MF .deps/workspaces_plugin_la-workspaces.Tpo -c workspaces
> .c  -fPIC -DPIC -o .libs/workspaces_plugin_la-workspaces.o
> workspaces.c: In function `edit_name_dialog':
> workspaces.c:354: warning: implicit declaration of function `create_header'
> workspaces.c:354: warning: assignment makes pointer from integer without a cast
> 
>   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/X11R6/include -I/opt
> /xfce4/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X1
> 1R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/i
> nclude -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -
> I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/opt/xfce4/include/xfce4 -I/us
> r/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/p
> ango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/incl
> ude -I/usr/include/atk-1.0 -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/share/loc
> ale\" -DSYSCONFDIR=\"/opt/xfce4/etc\" -DDATADIR=\"/opt/xfce4/share/xfwm4\" -g -O2
> -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
> -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT workspaces_plugin_la
> -plugin.lo -MD -MP -MF .deps/workspaces_plugin_la-plugin.Tpo -c plugin.c  -fPIC -D
> PIC -o .libs/workspaces_plugin_la-plugin.o
> In file included from plugin.c:43:
> /opt/xfce4/include/xfce4/libxfce4util/util.h:31:2: warning: #warning "Don't includ
> e <libxfce4util/util.h> directly, include <libxfce4util/libxfce4util.h> instead."
> plugin.c: In function `mcs_plugin_init':
> plugin.c:115: warning: implicit declaration of function `inline_icon_at_size'
> plugin.c:116: warning: assignment makes pointer from integer without a cast
> plugin.c: In function `run_dialog':
> plugin.c:154: warning: assignment makes pointer from integer without a cast
> plugin.c:157: warning: implicit declaration of function `create_header'
> plugin.c:157: warning: assignment makes pointer from integer without a cast
> 
>   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/X11R6/include -I/opt
> /xfce4/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X1
> 1R6/include -I/opt/xfce4/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/i
> nclude -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -
> I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/opt/xfce4/include/xfce4 -I/us
> r/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/p
> ango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/incl
> ude -I/usr/include/atk-1.0 -I../common -DPACKAGE_LOCALE_DIR=\"/opt/xfce4/share/loc
> ale\" -DSYSCONFDIR=\"/opt/xfce4/etc\" -DDATADIR=\"/opt/xfce4/share\" -DPACKAGE_DAT
> ADIR=\"/opt/xfce4/share/xfwm4\" -g -O2 -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISAB
> LE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISA
> BLE_DEPRECATED -MT xfwm4_plugin_la-xfwm4_plugin.lo -MD -MP -MF .deps/xfwm4_plugin_
> la-xfwm4_plugin.Tpo -c xfwm4_plugin.c  -fPIC -DPIC -o .libs/xfwm4_plugin_la-xfwm4_
> plugin.o
> In file included from xfwm4_plugin.c:41:
> /opt/xfce4/include/xfce4/libxfce4util/util.h:31:2: warning: #warning "Don't includ
> e <libxfce4util/util.h> directly, include <libxfce4util/libxfce4util.h> instead."
> xfwm4_plugin.c: In function `cb_dialog_response':
> xfwm4_plugin.c:1238: warning: implicit declaration of function `exec_command'
> xfwm4_plugin.c: In function `create_dialog':
> xfwm4_plugin.c:1278: warning: implicit declaration of function `inline_icon_at_siz
> e'
> xfwm4_plugin.c:1278: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1287: warning: implicit declaration of function `create_header'
> xfwm4_plugin.c:1287: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1471: warning: implicit declaration of function `small_label'
> xfwm4_plugin.c:1471: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1479: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1568: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1576: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1637: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c:1645: warning: assignment makes pointer from integer without a cast
> xfwm4_plugin.c: In function `mcs_plugin_init':
> xfwm4_plugin.c:1848: warning: assignment makes pointer from integer without a cast
> /usr/include/glib-2.0/glib/gutils.h: At top level:
> xfwm4_plugin.c:233: warning: `glib22_str_has_suffix' defined but not used
> 
-- 
 - Olivier Fourdan - fourdan at xfce.org - http://www.xfce.org - 




More information about the Xfce4-dev mailing list