LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problems building php with IMAP (https://www.linuxquestions.org/questions/linux-server-73/problems-building-php-with-imap-548185/)

Jake_B 04-22-2007 10:14 PM

Problems building php with IMAP
 
I'm having problems building php (v5.1.5) with IMAP (--with-imap). Here's my configuration:
Quote:

./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-imap --with-imap-ssl --with-kerberos --with-curl
The key here is --with-imap. When I drop it out, php configures fine. Even with the --with-imap-ssl, it goes just fine, but add the --with-imap, and things don't happen. Here's the error message:
Code:

checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... (cached) yes
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

Any ideas?

b166 04-22-2007 10:22 PM

What distro are you running, RHEL 4? Also can you copy the end of your config.log here?

Jake_B 04-22-2007 10:43 PM

Quote:

Originally Posted by b166
What distro are you running, RHEL 4? Also can you copy the end of your config.log here?

RHEL3. Yes, I know it's not good to stray from the RPM model, but there was no RPM for php5 when I first installed php5 (which I *needed*), and I'm not really wanting to upset something that is more or less working (maybe when I migrate to CentOS, I'll do things "the right way").

Here's the last part of config.log:
Code:

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 -lcurl -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 -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -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/lib/libcurl.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;
    }

I don't really know how to read this, but I do see something about curl in there. I actually had this problem even without -with-curl.

vxc69 04-22-2007 10:54 PM

Jake_B, you should take a look at this: http://www.tuxyturvy.com/blog/index....-on-RHEL3.html

According to this guy, the reason there is no PHP5 for RHEL3 is because of some easily solvable dependency issues (like the IMAP libraries, libc-client, was used to be called imap-devel).

He's re-built PHP5 CentOS rpms for RHEL3 and you can find them on the link. Maybe this would make things easier.


vxc


All times are GMT -5. The time now is 12:32 PM.