On 04/08/2014 10:37 AM, Klaus Hochlehnert wrote:
Hi,
I tried to make spice-gtk 0.24 on Ubuntu 12.04 and got this error:
CCLD chezdav
./.libs/libphodav.a(libphodav_la-phodav-server.o): In function `parse_propfind':
/usr/src/spice-gtk-0.24/gtk/phodav/libphodav/phodav-server.c:862: undefined reference to `g_clear_pointer'
./.libs/libphodav.a(libphodav_la-phodav-server.o): In function `phodav_server_dispose':
/usr/src/spice-gtk-0.24/gtk/phodav/libphodav/phodav-server.c:321: undefined reference to `g_clear_pointer'
/usr/src/spice-gtk-0.24/gtk/phodav/libphodav/phodav-server.c:322: undefined reference to `g_clear_pointer'
/usr/src/spice-gtk-0.24/gtk/phodav/libphodav/phodav-server.c:323: undefined reference to `g_clear_pointer'
/usr/src/spice-gtk-0.24/gtk/phodav/libphodav/phodav-server.c:324: undefined reference to `g_clear_pointer'
collect2: ld returned 1 exit status
make[6]: *** [chezdav] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/src/spice-gtk-0.24/gtk/phodav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/spice-gtk-0.24/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/spice-gtk-0.24/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/spice-gtk-0.24'
make: *** [all] Error 2
Any idea what might be missing?
g_clear_pointer was introduced in glib 2.34.
Likely, your glib is older than 2.34.
https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-clear-pointer
Try to define it yourself, for example as done in
spice-gtk/gtk/glib-compat.h
http://cgit.freedesktop.org/spice/spice-gtk/tree/gtk/glib-compat.h
Uri.
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel