Okay, so I made it out.  I noticed that the ___db185_open missing symbol 
was not referenced in the mc code, therefore it was being unresolved by 
the gnome metadata code in gnome-libs, which was the library that I duct 
taped by adding a -ldb.  So I figured I better look back at that patch, 
and it turns out I made a mistake.  I put -ldb when linking a test 
program, not the library itself.  So all subsequent references to 
gnome-metadata primitives produced this link error.  So basically I 
rebuilt gnome-libs with -ldb while linking libgnome itself, and the 
gnome libs test program and mc were both happy.  I have two comments 
about stuff that does seem to be broken.

Problem 1:  I was reminded while doing a gratuitious "fink rebuild db3" 
that the db package actually seems messed up.  Do that with db 3.3.11-6 
and then build gnome-libs 1.4.1.4-3.  Breakage:

checking for dbopen... yes
checking for db.h... no
checking for db_185.h... no
checking for db1/db.h... yes

okay so far, barf on compile.  It looks like it's using the wrong 
headers.  I know there's a FAQ on this, BTW.  Continuing:

[localhost:/sw/src] root# ls -l /sw/include/db1/db.h
-r--r--r--  1 root  wheel  57225 Jul 12 23:22 /sw/include/db1/db.h

[localhost:/sw/src] root# ls -l /sw/include/db3/db.h
-r--r--r--  1 root  wheel  57225 Jul 12 23:22 /sw/include/db3/db.h

Hmm, looks like if I went sniffing in the db1 directory I would not be 
expecting to be finding a db3 header.  So blindly let's try this:

[localhost:/sw/src] cp /sw/include/db1/db_185.h /sw/include/db1/db.h

Bang.  It works.  Looks to me either the db3 package needs rearranging, 
the gnome-libs package needs a better configure script, or both.  But 
I'm not an expert as to which.  Decide for yourself.

Problem 2: libgnome's nonexistant -ldb.  Add this to the 1.4.1.4-3 patch:

diff -uN gnome-libs-1.4.1.4.old/libgnome/Makefile.in gnome-
libs-1.4.1.4.new/lib\
gnome/Makefile.in
--- gnome-libs-1.4.1.4.old/libgnome/Makefile.in Thu Jan 24 18:58:07 2002
+++ gnome-libs-1.4.1.4.new/libgnome/Makefile.in        Fri Jul 12 
03:49:28 2002
@@ -234,7 +234,7 @@
  EXTRA_DIST = parse-path.cP $(man_MANS)

  libgnome_la_LDFLAGS = -version-info 36:3:4 #-rpath $(libdir)
-libgnome_la_LIBADD = $(GLIB_LIBS) -lm
+libgnome_la_LIBADD = $(GLIB_LIBS) -lm -ldb

  bin_PROGRAMS = dns-helper gnome-dump-metadata gnome-moz-remote \
        gconfigger gnome-gen-mimedb


Okay, that's it.  Sorry to be a pest today.  Thanks for those of you who 
helped.


Jeff Henrikson



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to