LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2007, 10:14 PM   #1
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Rep: Reputation: 15
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?
 
Old 04-22-2007, 10:22 PM   #2
b166
Member
 
Registered: Apr 2007
Location: Ft Lauderdale, FL
Distribution: Ubuntu, RHEL, CentOS, Fedora
Posts: 33

Rep: Reputation: 15
What distro are you running, RHEL 4? Also can you copy the end of your config.log here?
 
Old 04-22-2007, 10:43 PM   #3
Jake_B
LQ Newbie
 
Registered: Mar 2004
Distribution: RHEL
Posts: 27

Original Poster
Rep: Reputation: 15
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.

Last edited by Jake_B; 04-22-2007 at 10:45 PM.
 
Old 04-22-2007, 10:54 PM   #4
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Compiling PHP with IMAP Functions Jake_B Linux - General 1 11-04-2006 06:27 AM
PHP with imap problems brooky Linux - Newbie 0 04-06-2004 03:33 PM
Problems compiling php with imap, ssl... support tveiga Linux - Software 1 01-16-2004 09:06 PM
PHP compilation problems with imap netw3rm Slackware 2 11-27-2003 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration