[389-devel] Problem building 389-ds-base on openSUSE

Noriko Hosoi nhosoi at redhat.com
Thu Nov 12 16:34:20 UTC 2009


On 11/12/2009 08:01 AM, Peter Nixon wrote:
> 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)
>    
These steps extract db_libver.  If you do these manually, what do you see?
db_incdir=/usr/include
db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
db_libver=${db_ver_maj}.${db_ver_min}

Thanks,
--noriko
> 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
>
>    
>
>
> --
> 389-devel mailing list
> 389-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-devel
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20091112/c80e1425/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20091112/c80e1425/attachment.p7s>


More information about the Fedora-directory-devel mailing list