|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38633 unable to configure with IMAP and GD support simultaneously
Submitted: 2006-08-28 17:02 UTC Modified: 2006-08-28 18:21 UTC
From: steve dot lu at cycast dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.1.5 OS: MacOSX10.3.9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: steve dot lu at cycast dot com
New email:
PHP Version: OS:


 [2006-08-28 17:02 UTC] steve dot lu at cycast dot com
When I run this configure script, it fails.

./configure --prefix=/user/libphp5-install --with-jpeg-dir=/user/libjpeg-install --with-png-dir=/user/libpng-install --with-freetype-dir=/user/freetype-install
--with-imap=/user/imap-2004g --with-imap-ssl=/usr/openssl --with-openssl=/usr/openssl --with-zlib-dir=/usr/zlib-install --with-gd

The console output says:

checking for IMAP support... yes
checking for IMAP Kerberos support... no
checking for IMAP SSL support... /Scodigo/openssl
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... no
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... (cached) yes
checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

The config.log says:

configure:48375: checking whether build with IMAP works
configure:48413: gcc -o conftest -I/usr/include -g -O2  -no-cpp-precomp -L/usr/lib  -L/Scodigo/libxml2-install/lib -L/Scodigo/libxml2-install/lib -L/Scodigo/openssl/lib -L/Scodigo/openssl/lib -L/Scodigo/zlib-install/lib -L/Scodigo/zlib-install/lib -L/Users/stevelu/Documents/PHP-10.3.9/sw/curl-install/lib -L/Users/stevelu/Documents/PHP-10.3.9/sw/curl-install/lib -L/Scodigo/curl-install/lib -L/Scodigo/curl-install/lib -L/Scodigo/libjpeg-install/lib -L/Scodigo/libjpeg-install/lib -L/Scodigo/libpng-install/lib -L/Scodigo/libpng-install/lib -L/Scodigo/freetype-install/lib -L/Scodigo/freetype-install/lib -L/Scodigo/imap-2004g/lib -L/Scodigo/imap-2004g/lib conftest.c -lc-client   -lssl -lcrypto -lpam -lfreetype -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm  -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
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() {
      return 0;

Notice that there is no link error, it just failed without giving any reason.

However, if I run this configure script:

./configure --prefix=/user/libphp5-install --with-jpeg-dir=/user/libjpeg-install --with-png-dir=/user/libpng-install --with-freetype-dir=/user/freetype-install
--with-imap=/user/imap-2004g --with-imap-ssl=/usr/openssl --with-openssl=/usr/openssl --with-zlib-dir=/usr/zlib-install

Without bundled GD support, everything ran fine.
So does this configure script with GD but without IMAP:

./configure --prefix=/user/libphp5-install --with-jpeg-dir=/user/libjpeg-install --with-png-dir=/user/libpng-install --with-freetype-dir=/user/freetype-install
--with-openssl=/usr/openssl --with-zlib-dir=/usr/zlib-install --with-gd

This seems to suggest there is some sort of conflict between GD and IMAP support in the configure script.

Looking into configure script does not tell me anything immediately.  

Please help.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-28 17:33 UTC]
Not PHP problem.
 [2006-08-28 18:21 UTC] steve dot lu at cycast dot com
It would be nice to find out what fails in the configure script so I can replicate the problem and thus narrow down to  the true culprit.  Is there anyone who is familiar with the configure script can give me few pointers?

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 04:05:45 2022 UTC