Re: gnome-libs-1.4.1.1 compile problems



On Tue, Sep 04, 2001 at 09:06:48PM -0500 or thereabouts, ebi7 wrote:
> When trying to compile I get this:
> 
> gnome-metadata.c: In function `init':
> gnome-metadata.c:176: warning: implicit declaration of function `dbopen'
> gnome-metadata.c:177: warning: assignment makes pointer from integer
> without a cast
> gnome-metadata.c: In function `metadata_set':
> gnome-metadata.c:302: warning: passing arg 2 of pointer to function from
> incompa tible pointer type
> gnome-metadata.c:302: too few arguments to function
> 
> Anyone know how to fix this?


You don't say what package you're trying to compile and on what system.
But this works on RH 7.x for gnome-libs-1.2.12 and Slackware 8.0 for
gnome-libs-whatever the version that comes there is. 
 
./configure --prefer-db1 

You'll find in it ./configure --help; and it seems to get needed if
you have db3(-devel) installed. 

http://bugzilla.gnome.org/show_bug.cgi?id=50935
http://bugzilla.gnome.org/show_bug.cgi?id=51192
http://bugzilla.gnome.org/show_bug.cgi?id=53418
http://bugzilla.gnome.org/show_bug.cgi?id=60037

Frank Belew made a patch which he hopes will make this configure
option unnecessary. I have attached it and will put it in Bugzilla
under http://bugzilla.gnome.org/show_bug.cgi?id=50935. If it works
(or doesn't work) for people, _please_ follow up in Bugzilla: it
would be so nice to get this bug closed. 

Telsa
Index: libgnome/gnome-metadata.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnome/Attic/gnome-metadata.c,v
retrieving revision 1.47.4.1
diff -u -r1.47.4.1 gnome-metadata.c
--- libgnome/gnome-metadata.c	1999/12/15 04:49:59	1.47.4.1
+++ libgnome/gnome-metadata.c	2001/08/28 22:18:41
@@ -66,10 +66,10 @@
 #ifdef HAVE_DB_185_H
 # include <db_185.h>
 #else
-# ifdef HAVE_DB_H
-#  include <db.h>
-# else
+# ifdef HAVE_DB1_DB_H
 #  include <db1/db.h>
+# else
+#  include <db.h>
 # endif
 #endif
 #endif
Index: libgnome/gnome-dump.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnome/Attic/gnome-dump.c,v
retrieving revision 1.8
diff -u -r1.8 gnome-dump.c
--- libgnome/gnome-dump.c	1999/09/07 19:04:45	1.8
+++ libgnome/gnome-dump.c	2001/08/28 22:18:41
@@ -41,10 +41,10 @@
 #ifdef HAVE_DB_185_H
 # include <db_185.h>
 #else
-# ifdef HAVE_DB_H
-#  include <db.h>
-# else
+# ifdef HAVE_DB1_DB_H
 #  include <db1/db.h>
+# else
+#  include <db.h>
 # endif
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]