Forum Moderators: bakedjake

Message Too Old, No Replies

Problems Getting PHP to Compile with Imap Functions

PHP Imap Functions

         

jbottero

3:56 am on Oct 26, 2006 (gmt 0)

10+ Year Member


Greetings…

I hope you all don’t dismiss this as drive-by pestering (well, maybe it is, but maybe you’ll indulge me…), but I’m having some problems. My system is a typical “LAMP” machine. RHEL3, Apache/2.0.46, PHP v. 5.1.4.

I would very much like to recompile my PHP with IMAP functions, but I’m having problems. This requires UW’s C-Client Library. Since most of my underlying “stuff” is from RPMs, I chose this path because it seemed the path of least resistance, and also because compiling the library from source looked kind of scary to me. So…

I loaded these RPMs:

libc-client-2002e-14.i386.rpm
libc-client-devel-2002e-8.i386.rpm

There is something newer, but they have dependencies I don’t care to work out because everything else is working smoothly. Why upset things…

I’m using these PHP configuration options:

./configure --libdir=/usr/lib --prefix=/usr --with-gettext --enable-mbstring=all --with-freetype-dir=/usr --with-zlib --with-gd --with-mysql --with-gettext --enable-force-cgi-redirect --enable-track-vars --with-ldap --disable-cgi --with-png-dir=/usr --with-jpeg-dir=/usr --enable-gd-native-ttf --enable-gd-imgstrttf --with-ttf --with-openssl --with-png --with-apxs2filter=/usr/sbin/apxs --with-kerberos –with-imap-ssl –with-imap

Now, I get some errors, all having to do with imap. It tells me:


checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

Config.log is a long file, but here’s the part that I think is important to my problem:

------------

configure:45557: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm 1>&5
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/kerberos/lib/libgssapi_krb5.so, may conflict with libcom_err.so.2
configure:45790: checking if iconv supports errno
configure:45825: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm 1>&5
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/kerberos/lib/libgssapi_krb5.so, may conflict with libcom_err.so.2
configure:45857: checking if your cpp allows macro usage in include lines
configure:45869: gcc -c -I/usr/include -g -O2 conftest.c 1>&5
configure:46213: checking for IMAP support
configure:46259: checking for IMAP Kerberos support
configure:46284: checking for IMAP SSL support
configure:46818: checking for pam_start in -lpam
configure:46837: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lpam -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm 1>&5
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/kerberos/lib/libgssapi_krb5.so, may conflict with libcom_err.so.2
configure:46991: checking for crypt in -lcrypt
configure:48348: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lc-client -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz 1>&5
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/kerberos/lib/libgssapi_krb5.so, may conflict with libcom_err.so.2
/usr/lib/libc-client.so: undefined reference to `krb5_kt_close'
/usr/lib/libc-client.so: undefined reference to `krb5_kt_start_seq_get'
collect2: ld returned 1 exit status
configure: failed program was:
#line 48321 "configure"
#include "confdefs.h"


void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}

char auth_gssapi_valid();
int main() {
auth_gssapi_valid();
return 0;
}

configure:48375: checking whether build with IMAP works
configure:48413: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lc-client -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz 1>&5
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/kerberos/lib/libgssapi_krb5.so, may conflict with libcom_err.so.2
/usr/lib/libc-client.so: undefined reference to `krb5_kt_close'
/usr/lib/libc-client.so: undefined reference to `krb5_kt_start_seq_get'
collect2: ld returned 1 exit status
configure: failed program was:
#line 48386 "configure"
#include "confdefs.h"


void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}

char mail_newbody();
int main() {
mail_newbody();
return 0;
}

------------

At this point, I’m in way over my head. I don’t understand the configuration process deeply enough to fathom what’s going on here. Does anyone see anything that stands out as the source of my problem getting things lined up right to configure PHP with IMAP functions?

Thank you all ahead of time…

-- Jake

jamie

12:21 pm on Oct 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi jake,

the error is this

/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/kerberos/lib/libgssapi_krb5.so, may conflict with libcom_err.so.2

try searching for "warning: libcom_err.so.3" you should find other people with the same problem, this will point you in the right direction. don't be afraid to come back here with other questions which develop from that.

good luck

oh and welcome to webmasterworld! ;)