php.net |  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
 [2006-08-28 17:02 UTC] steve dot lu at cycast dot com
Description:
------------
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-kerberos=/usr
--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() {
      mail_newbody();
      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-kerberos=/usr
--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.

Thanks, 
Steve


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-28 17:33 UTC] tony2001@php.net
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?

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC