After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 387287 - libgnomedb 2.99.2 does not compile
libgnomedb 2.99.2 does not compile
Status: RESOLVED FIXED
Product: libgnomedb
Classification: Deprecated
Component: general
2.99.x
Other All
: Normal normal
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-18 21:05 UTC by Mark Johnson
Modified: 2007-01-16 17:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for GTK_CELL_LAYOUT compile problem (1021 bytes, patch)
2006-12-26 20:04 UTC, Mark Johnson
none Details | Review

Description Mark Johnson 2006-12-18 21:05:14 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
Comment 1 Mark Johnson 2006-12-26 20:04:39 UTC
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.)
Comment 2 Mark Johnson 2006-12-26 20:06:29 UTC
Updated version info in the summary and version fields.
Comment 3 Murray Cumming 2007-01-16 17:18:35 UTC
Committed. Many thanks.

Please remember to patch the Changelog in future.