<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 11/12/2009 08:01 AM, Peter Nixon wrote:
<blockquote cite="mid:200911121801.48802.listuser@peternixon.net"
 type="cite">
  <pre wrap="">Hi Guys

I have been attempting to build 389-ds-base 1.2.4 on openSUSE and have found 
the configure script makes some assumptions about Berkley DB that are not 
valid on SUSE.

The configure script fails with the following error:

configure: checking for db...
checking for --with-db... no
checking for db.h... using /usr/include/db.h
checking for db_create in -ldb-.... no
configure: error: /usr/include/db.h is version . but libdb-. not found
error: Bad exit status from /var/tmp/rpm-tmp.83160 (%build)
  </pre>
</blockquote>
These steps extract db_libver.  If you do these manually, what do you
see?<br>
db_incdir=/usr/include<br>
db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`<br>
db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`<br>
db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`<br>
db_libver=${db_ver_maj}.${db_ver_min}<br>
<br>
Thanks,<br>
--noriko<br>
<blockquote cite="mid:200911121801.48802.listuser@peternixon.net"
 type="cite">
  <pre wrap="">
On openSUSE the db packages are the following:

# rpm -ql libdb-4_5
/usr/lib/libdb-4.5.so

# rpm -ql libdb-4_5-devel
/usr/include/db.h
/usr/include/db4
/usr/include/db4/db.h
/usr/include/db4/db_185.h
/usr/include/db_185.h
/usr/lib/libdb-4.5.a
/usr/lib/libdb-4.so
/usr/lib/libdb.a
/usr/lib/libdb.so

# cat /usr/include/db.h
#include <db4/db.h>

# cat /etc/SuSE-release
openSUSE 11.2 (i586)
VERSION = 11.2

The attached patch solves this problem for me, but is almost certain to break 
things on Fedora. Hopefully someone with better m4 foo than I can fix it 
up...

Regards

  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
389-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-devel@redhat.com">389-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-directory-devel">https://www.redhat.com/mailman/listinfo/fedora-directory-devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>