From: mrj001 at shaw dot ca
Operating system: Slackware 12.1
PHP version: 5.2.6
PHP Bug Type: *Compile Issues
Bug description: configure fails to fail
Description:
------------
Configure is failing as follows:
checking for IMAP support... yes
checking for IMAP Kerberos support... no
checking for IMAP SSL support... /usr
checking for utf8_mime2text signature... new
checking for U8T_CANONICAL... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is
missing. This should not happen. Check config.log for additional
information.
make: *** No targets specified and no makefile found. Stop.
Here is the end portion of config.log:
configure:46967: checking for IMAP support
configure:47014: checking for IMAP Kerberos support
configure:47040: checking for IMAP SSL support
configure:47437:19: error: /mail.h: No such file or directory
configure:47456: checking for utf8_mime2text signature
configure:47474: gcc -c -I conftest.c 1>&5
gcc: no input files
configure: failed program was:
#line 47461 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <c-client.h>
int main() {
SIZEDTEXT *src, *dst;
utf8_mime2text(src, dst);
; return 0; }
configure:47503: checking for U8T_CANONICAL
configure:47519: gcc -c -I conftest.c 1>&5
gcc: no input files
configure: failed program was:
#line 47508 "configure"
#include "confdefs.h"
#include <c-client.h>
int main() {
int i = U8T_CANONICAL;
; return 0; }
The first error is a missing "/mail.h". IMAP_INC_DIR is "" at line 47437
of configure. Shouldn't this cause configure to fail at this point?
The second error is a missing c-client.h file. This means that the test
for utf8_mime2text cannot possibly compile. Therefore, its results cannot
be meaningful. Therefore, utf8_mime2text does NOT have a new signature as
claimed when configure finally fails.
The third "error" which claims "this cannot happen" is bogus because of
the prior errors.
Reproduce code:
---------------
my configure line:
./configure --prefix=/usr \
$* \
--prefix=/usr \
--sysconfdir=/etc \
--disable-safe-mode \
--enable-apc \
--enable-apc-mmap \
--enable-memory-limit \
--enable-suhosin \
--disable-magic-quotes \
--enable-zend-multibyte \
--enable-mbregex \
--enable-tokenizer=shared \
--with-config-file-scan-dir=/etc/php \
--with-config-file-path=/etc/httpd \
--with-mod_charset \
--with-layout=PHP \
--enable-sigchild \
--enable-xml \
--with-libxml-dir=/usr \
--enable-simplexml \
--enable-spl \
--enable-filter \
--disable-debug \
--with-openssl=shared \
--with-pcre-regex=/usr \
--with-zlib=shared,/usr \
--enable-bcmath=shared \
--with-bz2=shared,/usr \
--enable-calendar=shared \
--enable-ctype=shared \
--with-curl=shared \
--with-curlwrappers \
--enable-dba=shared \
--with-gdbm=/usr \
--with-db4=/usr \
--enable-dbase=shared \
--enable-exif=shared \
--enable-ftp=shared \
--with-gd=shared \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr \
--with-freetype-dir=/usr \
--with-t1lib=/usr \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-gettext=shared,/usr \
--with-gmp=shared,/usr \
--with-iconv=shared \
--with-imap-ssl=/usr \
--with-imap=$IMAPLIBDIR \
--with-ldap=shared \
--enable-mbstring=shared \
--with-hash \
--with-mhash=shared,/usr \
--with-mysql=shared,/usr \
--with-mysqli=shared,/usr/bin/mysql_config \
--enable-pdo=shared \
--with-pdo-mysql=shared,/usr \
--with-pdo-sqlite=shared \
--with-pspell=shared,/usr \
--with-mm=/usr \
--enable-shmop=shared \
--with-snmp=shared,/usr \
--enable-soap=shared \
--enable-sockets \
--with-sqlite=shared \
--enable-sqlite-utf8 \
--with-regex=php \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx=shared \
--with-xsl=shared,/usr \
--enable-zip=shared \
--with-tsrm-pthreads \
--enable-shared=yes \
--enable-static=no \
--with-gnu-ld \
--with-pic \
--build=$ARCH-slackware-linux
This is copied directly from the Slackware 12.1 php.Slackbuild script,
This is the version found on Slackware's ftp site under the patches
subdirectory for php 5.2.6.
Expected result:
----------------
Configure should probably have failed on the first error. It should
definitely have failed on the second.
Actual result:
--------------
configure continued to run after two errors that should have stopped it.
--
Edit bug report at http://bugs.php.net/?id=46390&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46390&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46390&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46390&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46390&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46390&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46390&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46390&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46390&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46390&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46390&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46390&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46390&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46390&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46390&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46390&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46390&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46390&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46390&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46390&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46390&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46390&r=mysqlcfg