[imp] Errors making PHP --with-imap --with-cyrus

Ilya mail@krel.org
Tue, 3 Sep 2002 17:59:52 -0400


I was able to compile php with --with-cyrus on my freebsd box, however any 
calls to cyrus functions cause apache to dump core.
there is no reason to use --with-cyrus though, imap() functions give you the 
same functionality.
besides i dont think cyrus() in php was ever updated ro run with sasl2(), and 
you have to run sasl2 with 2.1.5

my setup is similar to yours, and I made a cyrsql driver for managing users 
from horde, works good on my side. take a look at horde list if you would like 
to set it up.

Quoting Jeremy Freeman <jfreeman@sporg.com>:

> You don't need to use --with-cyrus
> 
> The UW-IMAP c-client will work fine with the Cyrus IMAP server.
> 
> --
> Jeremy
> 
> Gary Weinreb wrote:
> > Hey folks,
> >
> > I'm having trouble making PHP 4.2.2 --with-imap, and --with-cyrus.
> > Make fails with errors relating to multiple definitions between cyrus &
> > c-client, see pertinent results below:
> >
> > /usr/local/lib/libc-client.a(osdep.o): In function `fatal':
> > /usr/src/redhat/SOURCES/imap-2002.RC2/c-client/ftl_unix.c:27: multiple
> > definition of `fatal'
> >
> /usr/src/php/php-4.2.2/ext/cyrus/.libs/libcyrus.al(cyrus.lo):/usr/src/php/php-
4.2.2/ext/cyrus/cyrus.c:110:
> > first defined here
> > /usr/bin/ld: Warning: size of symbol `fatal' changed from 35 to 44 in
> > osdep.o
> > /usr/local/lib/libcyrus.a(xmalloc.o): In function `fs_get':
> > /usr/src/redhat/SOURCES/cyrus-imapd-2.1.5/lib/xmalloc.c:106: multiple
> > definition of `fs_get'
> >
> /usr/local/lib/libc-client.a(osdep.o):/usr/src/redhat/SOURCES/imap-2002.RC2/c-
client/fs_unix.c:27:
> > first defined here
> > /usr/bin/ld: Warning: size of symbol `fs_get' changed from 102 to 38 in
> > xmalloc.o
> > /usr/local/lib/libcyrus.a(xmalloc.o): In function `fs_give':
> > /usr/src/redhat/SOURCES/cyrus-imapd-2.1.5/lib/xmalloc.c:116: multiple
> > definition of `fs_give'
> >
> /usr/local/lib/libc-client.a(osdep.o):/usr/src/redhat/SOURCES/imap-2002.RC2/c-
client/fs_unix.c:57:
> > first defined here
> > /usr/bin/ld: Warning: size of symbol `fs_give' changed from 70 to 28 in
> > xmalloc.o
> > collect2: ld returned 1 exit status
> > make[1]: *** [libphp4.la] Error 1
> > make[1]: Leaving directory `/usr/src/php/php-4.2.2'
> > make: *** [all-recursive] Error 1
> >
> > My config.nice:
> >
> > #! /bin/sh
> > #
> > # Created by configure
> > './configure' \
> > '--with-mysql' \
> > '--with-mcal=/usr/local/mcal' \
> > '--with-xslt' \
> > '--with-xml' \
> > '--with-dom' \
> > '--with-zlib-dir=/usr/include' \
> > '--with-gettext' \
> > '--enable-ftp' \
> > '--with-mcrypt' \
> > '--with-imap' \
> > '--with-cyrus' \
> > '--with-apxs'
> >
> > My setup is:
> >
> > Redhat 7.2
> > Apache 1.3.23
> > PHP 4.2.2
> > imap-2002-RC4
> > cyrus imapd 2.1.5
> > cyrus sasl 2.1.6
> > Postfix 1.1.11
> >
> > This is for a Horde/IMP CVS installation, though of course, I'm not
> > quite there yet...
> > It was working with UW-imap, Horde 2.1, IMP 3.1, etc. but I thought I'd
> > get current...
> >
> > Anyone have any ideas or advice?
> >
> > Also does anyone have any advice regarding the most practical
> > configuration for cyrus behind IMP?
> > I've got the saslauthd to pam_mysql authentication part working against
> > the horde_users table, but I'm not certain about the mailbox structures
> > and other options...
> >
> > Thanks,
> > Gary
> >
> >
> 
> 
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org