| Summary: | net-mail/cyrus-imapd does not compile with db-4.5 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Haldir |
| Component: | New packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | askwar, dirk, flo, Florian.Steinel, jesco.freund, markus, net-mail+disabled, oliveralbers, sbriesen, sven.koehler, tsabi-gentoo, wrobel |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 178750 | ||
| Attachments: |
p1.patch
cyrus-imapd-2.2.12-r4.ebuild p2.patch cyrus-imap-2.2.12-r4.patch |
||
|
Description
Haldir
2007-03-15 20:42:02 UTC
On the cyrus mailing list, a patch to remove the deprecated stuff from lib/cyrusdb_berkeley.c has been reported (see http://www.irbs.net/internet/info-cyrus/0612/0137.html). Maybe this helps fixing the problem. the suggested patch worked for me :) soon i will upload an ebuild with the actualized patch :) Created attachment 115481 [details, diff]
p1.patch
Created attachment 115483 [details]
cyrus-imapd-2.2.12-r4.ebuild
Comment on attachment 115483 [details]
cyrus-imapd-2.2.12-r4.ebuild
modified ebuild file to include the p1.patch
Comment on attachment 115481 [details, diff]
p1.patch
the db-patch
Really sorry for the mass mailing. This patch works for me well. tsabi (In reply to comment #7) > This patch works for me well. Many thanks for your patch! But it only worked "partly" for me. ;-( That means: Compilation against 4.5.x was successfull but imapd is linked against 4.3.x :-/ May 1 15:19:26 hostname imapd/master[24543]: about to exec /usr/lib/cyrus/imapd May 1 15:19:27 hostname imapd/imaps[24543]: incorrect version of Berkeley db: compiled against 4.5.20, linked against 4.3.29 May 1 15:19:27 hostname imapd/imaps[24543]: Fatal error: wrong db version I think that there is a problem regarding the bdb version (especially the version for the linkage ("-ldb-4.5" instead of "-ldb-4.3") detection within the cyrus-imapd build-environment, because db.h say's: cat /usr/include/db.h| grep VERSION: #define DB_VERSION_MAJOR 4 #define DB_VERSION_MINOR 5 #define DB_VERSION_PATCH 20 #define DB_VERSION_STRING "Berkeley DB 4.5.20: (September 20, 2006)" #define DB_MULTIVERSION 0x0000008 /* Multiversion concurrency control. */ ... Installed libraries are: ls -al /usr/lib/libdb-* lrwxrwxrwx 1 root root 11 Mar 7 10:20 /usr/lib/libdb-1.so -> libdb1.so.2 -rw-r--r-- 1 root root 721132 Feb 12 23:05 /usr/lib/libdb-3.2.a -rw-r--r-- 1 root root 639 Feb 12 23:05 /usr/lib/libdb-3.2.la -rwxr-xr-x 1 root root 525676 Feb 12 23:05 /usr/lib/libdb-3.2.so lrwxrwxrwx 1 root root 12 Mar 7 10:20 /usr/lib/libdb-3.so -> libdb-3.2.so -rw-r--r-- 1 root root 1053448 Feb 12 23:08 /usr/lib/libdb-4.1.a -rw-r--r-- 1 root root 713 Feb 12 23:08 /usr/lib/libdb-4.1.la -rwxr-xr-x 1 root root 784896 Feb 12 23:08 /usr/lib/libdb-4.1.so -rw-r--r-- 1 root root 1176288 Feb 12 23:12 /usr/lib/libdb-4.2.a -rw-r--r-- 1 root root 791 Feb 12 23:12 /usr/lib/libdb-4.2.la -rwxr-xr-x 1 root root 870764 Feb 12 23:12 /usr/lib/libdb-4.2.so -rw-r--r-- 1 root root 1242166 Oct 18 2006 /usr/lib/libdb-4.3.a -rw-r--r-- 1 root root 799 Oct 18 2006 /usr/lib/libdb-4.3.la -rwxr-xr-x 1 root root 928036 Oct 18 2006 /usr/lib/libdb-4.3.so -rw-r--r-- 1 root root 1522388 Mar 7 10:20 /usr/lib/libdb-4.5.a -rw-r--r-- 1 root root 800 Mar 7 10:20 /usr/lib/libdb-4.5.la -rwxr-xr-x 1 root root 1146484 Mar 7 10:20 /usr/lib/libdb-4.5.so Nevertheless config.log reports: cat config.log | grep db configure:7557: checking db.h usability configure:7598: checking db.h presence configure:7661: checking for db.h configure:7722: i686-pc-linux-gnu-gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer -pipe conftest.c -lresolv -ldb-4.4 >&5 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb-4.4 | #include <db.h> | db_create(NULL, NULL, 0); configure:7722: i686-pc-linux-gnu-gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer -pipe conftest.c -lresolv -ldb4.4 >&5 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb4.4 | #include <db.h> | db_create(NULL, NULL, 0); configure:7722: i686-pc-linux-gnu-gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer -pipe conftest.c -lresolv -ldb44 >&5 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb44 | #include <db.h> | db_create(NULL, NULL, 0); ... ac_cv_header_db_h=yes BDB_LIB=' -ldb-4.3' CYRUSDB_OBJS='cyrusdb_flat.o cyrusdb_skiplist.o cyrusdb_quotalegacy.o cyrusdb_berkeley.o' IMAP_LIBS=' -lsasl2 -lresolv -lssl -lcrypto -lfl -lresolv -ldb-4.3' LIBS='-lresolv -lssl -lcrypto -lfl -lresolv -ldb-4.3' Have you patched some other files, too? Could it be gentoo-specific problem, because of gentoo's library filesystem layout?! I'm a bit confused... ;-) Created attachment 117853 [details, diff] p2.patch (In reply to comment #8) Ok, now it's completly "fixed". just anserwing myself... > Have you patched some other files, too? yes, uplinks (cyrus-imapd's) berkley-db-version detection m4 macro does not know that db-4.5 is already available. Here is a patch attached that corrects -ldb-4.5 linkage. Thus this second patch has to be applied within the ebuild, Tóth Csaba's ebuild has to be updated, too. Created attachment 117854 [details, diff]
cyrus-imap-2.2.12-r4.patch
This is the patch for the above ebuild itself. It just executes "epatch" with my previously attached p2.patch.
Comment on attachment 117853 [details, diff]
p2.patch
-ldb-4.5 linkage-patch (BDB_LIB version detection)
*** Bug 180172 has been marked as a duplicate of this bug. *** (In reply to comment #11) > (From update of attachment 117853 [details, diff] [edit]) > -ldb-4.5 linkage-patch (BDB_LIB version detection) net-mail, that patch looks sane to me. Could we get that in a stable version (or stable a new one) to push sys-libs/db forward? *** Bug 182547 has been marked as a duplicate of this bug. *** since nobody seems to care about this, I've commited the patch for -r4 *** Bug 184680 has been marked as a duplicate of this bug. *** |