[imp] Errors making PHP --with-imap --with-cyrus
Gary Weinreb
gweinreb@rocksolidsystems.com
Tue, 03 Sep 2002 16:15:25 -0400
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