From:             idler at idler dot no-ip dot org
Operating system: Slackware 10.0.0 Kernel 2.6.7
PHP version:      4.3.8
PHP Bug Type:     Compile Failure
Bug description:  checking whether IMAP works... no

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;
    }




-- 
Edit bug report at http://bugs.php.net/?id=29579&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29579&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29579&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29579&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29579&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29579&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29579&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29579&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29579&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29579&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29579&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29579&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29579&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29579&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29579&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29579&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29579&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29579&r=float

Reply via email to