Summary: | BerkelyDB setup fails in configure script | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Michael Satterwhite <satterwh> |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.0.0b2 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michael Satterwhite
2003-12-20 21:45:41 UTC
This is also a problem on FreeBSD, where the bdb headers reside in /usr/local/include/dbX (where X is the version of bdb, e.g. 2, 3, or 41) and the libraries are in /usr/local/lib and have a name that includes the version number too (e.g. libdb41.so and libdb3.so). The problem with the headers can be fixed with this workaround, the problem with the libraries can't. There seem to be other checks in the configure for the bdb libraries from Python, and they do the checks right. Maybe those can be used? Actually - at least in Linux - the workaround above DOES correct the problem with the libraries. If the $all_libraries variable is omitted in the fix above, the configure fails just as it does if the $all_includes is omitted. Yes, that's correct. The problem is not that the library directory is not included, but that the library has a different name in FreeBSD (e.g. it has to use -ldb41, -ldb4 or -ldb3 instead of -ldb, depending on the version). To compile KDevelop on my FreeBSD machine, I now just replace -ldb with -ldb41 in kdevelop.m4.in and lib/catalog/Makefile.am, in addition to the fix you propose. snip from the website: Here is an example of a configure for systems that may have more than one db.h or whose libdb is called something else (like libdb3) a typical example of such systems is FreeBSD: $ ./configure --prefix=$KDEDIR --with-db-libdir=/usr/local/lib --with-db-includedir=/usr/local/include --with-db-lib=db3 So I think this one is fixed in KDevelop HEAD. adymo fix it on HEAD in yet another "more powerfull way" (tm) KDevelop HEAD includes it's own copy of BerkleyDB. |