GNOME Bugzilla – Bug 387287
libgnomedb 2.99.2 does not compile
Last modified: 2007-01-16 17:18:35 UTC
Please describe the problem: During the make phase, I got an undefined reference error to GTK_CELL_LAYOUT. I am using Slackware 10.2. My gtk version is 2.8.20. I googled: "undefined reference" GTK_CELL_LAYOUT libgnomedb and found that someone had had the same problem on MinGW, but when searching gnome's bugzilla, I did not find it reported. Steps to reproduce: $ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --enable-gtk-doc \ i486-slackware-linux $ make Actual results: undefined reference to GTK_CELL_LAYOUT error ends make File: gnome-db-data-source-selector.c Expected results: make should succeed. Does this happen every time? yes. Other information: Here is the patch I used to successfully compile and install libgnomedb: diff -u -r libgnomedb-1.99.1/libgnomedb/gnome-db-data-source-selector.c libgnomedb-1.99.1.patch/libgnomedb/gnome-db-data-source-selector.c --- libgnomedb-1.99.1/libgnomedb/gnome-db-data-source-selector.c 2006-10-12 02:11:13.000000000 -0600 +++ libgnomedb-1.99.1.patch/libgnomedb/gnome-db-data-source-selector.c 2006-12-18 12:55:29.000000000 -0700 @@ -26,6 +26,7 @@ #include <libgda/gda-config.h> #include <libgnomedb/gnome-db-data-source-selector.h> #include <libgnomedb/gnome-db-util.h> +#include <gtk/gtkcelllayout.h> #define PARENT_TYPE GTK_TYPE_COMBO_BOX
Created attachment 78923 [details] [review] patch for GTK_CELL_LAYOUT compile problem In trying to compile 2.99.2, I have found that there are now two files needing to be patched so that GTK_CELL_LAYOUT is not undefined. Here is an updated proposed patch. (See also bug 389821 for further compile problems.)
Updated version info in the summary and version fields.
Committed. Many thanks. Please remember to patch the Changelog in future.