php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29579 checking whether IMAP works... no
Submitted: 2004-08-09 03:17 UTC Modified: 2004-08-17 15:53 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: idler at idler dot no-ip dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.8 OS: Slackware 10.0.0 Kernel 2.6.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: idler at idler dot no-ip dot org
New email:
PHP Version: OS:

 

 [2004-08-09 03:17 UTC] idler at idler dot no-ip dot org
Description:
------------
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.

I think this problem appear more than one times. I cannot build my php with imap successfully from the version of 4.3.4 to now.
I've followed the instruction exactly from http://hk2.php.net/manual/en/ref.imap.php.
I've also looked for solutions for this problem from internet and this bug database, but they seem cannot help.

My configure line:
CFLAGS="-O3 -mcpu=pentium3 -march=pentium3" ./configure --prefix=/usr/local --disable-static --with-apxs=/usr/sbin/apxs --sysconfdir=/etc --enable-discard-path --with-config-file-path=/etc/apache --enable-safe-mode --with-openssl --with-mhash --enable-bcmath --with-bz2 --with-pic --enable-calendar --enable-ctype --with-gdbm --with-db4 --enable-dbase --enable-ftp --with-iconv --with-exif --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gmp --with-mysql=/usr --with-xml=shared,/usr --with-gettext=shared,/usr --with-expat-dir=/usr --enable-wddx --with-mm=/usr --enable-trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --with-tsrm-pthreads --enable-shared --disable-debug --with-zlib=/usr --with-tiff-dir=/usr --with-curl --with-db4 --with-dom=/usr --with-zlib-dir --enable-exif --with-freetype-dir=shared,/usr/local --with-kerberos --with-ldap=shared --with-mcrypt --with-mysql-sock --with-pdflib=shared,/usr/local/src/PDFlib-6.0.0-Linux/bind/c --with-tiff-dir=/usr --with-mhash --with-zip --with-swf=shared --enable-zend-multibyte --enable-mbstring --with-imap=/usr/local/src/imap-2004a

Ths last lines of config.log:
(It doesn't provide any special error message, it only say "undefined reference.")
configure:40604: checking for crypt in -lcrypt
configure:41054: checking whether SSL libraries are needed for c-client
configure:41184: gcc -o conftest -O3 -mcpu=pentium3 -march=pentium3  -L/usr/lib -ldb-4.2  -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lc-client
-lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -lz -ldb-4.2 -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl  -lssl -lcrypto -ldl -lcurl -lssl -lcrypto -ldl
-lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/tmp/ccUkdOqm.o(.text+0xa): In function `main':
: undefined reference to `auth_gssapi_valid'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41159 "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:41210: checking whether IMAP works
configure:41243: gcc -o conftest -O3 -mcpu=pentium3 -march=pentium3  -L/usr/lib -ldb-4.2  -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lc-client
-lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -lz -ldb-4.2 -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl  -lssl -lcrypto -ldl -lcurl -lssl -lcrypto -ldl
-lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/tmp/ccqx1Zdw.o(.text+0xa): In function `main':
: undefined reference to `mail_newbody'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41218 "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;
    }




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-17 15:53 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You have some problems with c-client library. Try to reinstall it. Don't forget about additional IMAP related ./configure options: --with-imap-ssl & --with-kerberos. You HAVE to use them if your c-client was built with ssl/kerberos support (I'm almost sure it was).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC