From: bnies at bluewin dot ch Operating system: SunOS adnpool02 5.9 Generic_1122 PHP version: 5.1.6 PHP Bug Type: Compile Failure Bug description: Compilation of php_imap.c fails
Description: ------------ Compilation fails at php_imap.ch due to too many assignment mismatch errors, mostly pointer to char and unsigned char. Operating System ---------------- SunOS adnpool02 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V240 Compiler -------- Sun Studio 11 Compiler, cc: Sun C 5.8 2005/10/13 Compilation Options ------------------- PATH="/share/app/sun/studio/11/bin:/share/app/gnu/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin" CC=cc CFLAGS=-O CXX=CC CXXFLAGS=-O2 CPPFLAGS="-I/opt/adnwebmail/include" LDFLAGS="-R/opt/adnwebmail/lib -L/opt/adnwebmail/lib" LD_OPTIONS=$LDFLAGS unset LD_LIBRARY_PATH export PATH CC CFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS LD_OPTIONS alias make=gmake mkdir /opt/adnwebmail mkdir /etc/opt/adnwebmail mkdir /var/opt/adnwebmail ### OPENSSL gtar -C /tmp -xvpzf openssl-0.9.8d.tar.gz cd /tmp/openssl-0.9.8d ./config --prefix=/opt/adnwebmail \ --openssldir=/opt/adnwebmail/openssl shared \ -R/opt/adnwebmail/lib -L/opt/adnwebmail/lib gmake gmake install cd - ### OPENLDAP gtar -C /tmp -xvpzf openldap-2.3.27.tgz cd /tmp/openldap-2.3.27 ./configure --prefix=/opt/adnwebmail \ --sysconfdir=/etc/opt/adnwebmail \ --disable-slapd --disable-slurpd \ --localstatedir=/var/opt/adnwebmail \ --with-tls gmake depend gmake gmake install cd - ### APACHE gtar -C /tmp -xvzf httpd-2.2.3.tar.gz cd /tmp/httpd-2.2.3 ./configure --prefix=/var/opt/adnwebmail \ --exec-prefix=/opt/adnwebmail \ --includedir=/opt/adnwebmail/include \ --infodir=/opt/adnwebmail/info \ --mandir=/opt/adnwebmail/man \ --sysconfdir=/etc/opt/adnwebmail \ --datadir=/var/opt/adnwebmail \ --enable-ssl --with-ssl=/opt/adnwebmail \ --enable-so gmake gmake install cd - ### UW-IMAP gtar -C /tmp -xvzf imap-2006a.tar.Z cd /tmp/imap-2006a gmake soc SSLDIR=/opt/adnwebmail cp c-client/*.h /opt/adnwebmail/include cp c-client/c-client.a /opt/adnwebmail/lib/libc-client.a cd - ### LIBXML gtar -C /tmp -xvzf libxml2-2.6.26.tar.gz cd /tmp/libxml2-2.6.26 ./configure --prefix=/opt/adnwebmail \ --datadir=/var/opt/adnwebmail \ --sysconfdir=/etc/opt/adnwebmail gmake gmake install cd - ### PHP gtar -C /tmp -xvzf php-5.1.6.tar.gz cd /tmp/php-5.1.6 ./configure --prefix=/opt/adnwebmail \ --with-apxs2=/opt/adnwebmail/bin/apxs \ --with-ldap=/opt/adnwebmail \ --with-imap=/opt/adnwebmail \ --with-imap-ssl=/opt/adnwebmail \ --with-ssl=/opt/adnwebmail \ --with-libxml-dir=/opt/adnwebmail \ --with-config-file-path=/etc/opt/adnwebmail \ --enable-safe-mode gmake Actual result: -------------- [EMAIL PROTECTED]:/tmp/php-5.1.6> gmake /bin/sh /tmp/php-5.1.6/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/imap/ -I/tmp/php-5.1.6/ext/imap/ -DPHP_ATOM_INC -I/tmp/php-5.1.6/include -I/tmp/php-5.1.6/main -I/tmp/php-5.1.6 -I/opt/adnwebmail/include/libxml2 -I/tmp/php-5.1.6/ext/date/lib -I/opt/adnwebmail/include -I/tmp/php-5.1.6/TSRM -I/tmp/php-5.1.6/Zend -I/opt/adnwebmail/include -D_POSIX_PTHREAD_SEMANTICS -I/usr/include -O -c /tmp/php-5.1.6/ext/imap/php_imap.c -o ext/imap/php_imap.lo "/tmp/php-5.1.6/ext/imap/php_imap.c", line 78: identifier redeclared: utf8_mime2text current : function(pointer to struct mail_sizedtext {pointer to unsigned char data, unsigned long size}, pointer to struct mail_sizedtext {pointer to unsigned char data, unsigned long size}) returning long previous: function(pointer to struct mail_sizedtext {pointer to unsigned char data, unsigned long size}, pointer to struct mail_sizedtext {pointer to unsigned char data, unsigned long size}, long) returning long : "/opt/adnwebmail/include/utf8.h", line 548 "/tmp/php-5.1.6/ext/imap/php_imap.c", line 1002: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 1358: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 322 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 1401: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 342 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 1446: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 322 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 1683: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 322 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 1725: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 342 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2013: warning: assignment type mismatch: pointer to char "=" pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2179: warning: assignment type mismatch: pointer to char "=" pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2179: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2343: warning: assignment type mismatch: pointer to char "=" pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2462: warning: assignment type mismatch: pointer to char "=" pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2731: warning: argument #3 is incompatible with prototype: prototype: pointer to unsigned char : "/opt/adnwebmail/include/mail.h", line 1668 argument : pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2849: warning: argument #2 is incompatible with prototype: prototype: pointer to unsigned char : "/opt/adnwebmail/include/mail.h", line 1739 argument : pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2850: warning: argument #2 is incompatible with prototype: prototype: pointer to unsigned char : "/opt/adnwebmail/include/mail.h", line 1738 argument : pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2878: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 342 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 2946: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3076: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3080: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3189: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3193: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3291: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3304: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3462: warning: statement not reached "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3606: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 322 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3633: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 322 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3659: warning: assignment type mismatch: pointer to char "=" pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3868: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 342 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 3869: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h", line 342 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4315: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4315: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4324: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4324: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4341: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4341: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4350: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4350: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4362: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4362: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4369: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4369: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4388: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4388: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4397: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4397: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4407: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4407: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4414: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4414: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4452: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4452: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4462: warning: assignment type mismatch: pointer to unsigned char "=" pointer to char "/tmp/php-5.1.6/ext/imap/php_imap.c", line 4462: warning: argument #1 is incompatible with prototype: prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 70 argument : pointer to unsigned char cc: acomp failed for /tmp/php-5.1.6/ext/imap/php_imap.c gmake: *** [ext/imap/php_imap.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=39045&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39045&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39045&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39045&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39045&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39045&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39045&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39045&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39045&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39045&r=support Expected behavior: http://bugs.php.net/fix.php?id=39045&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39045&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39045&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39045&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39045&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39045&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39045&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39045&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39045&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39045&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39045&r=mysqlcfg