From:             rele at gmx dot de
Operating system: SuSE Linux Enterprise Server 9
PHP version:      5.1.4
PHP Bug Type:     Compile Failure
Bug description:  IMAP extension: utf8_mime2text() has wrong parameters

Description:
------------
Every time I try to compile PHP 5.1.4 with IMAP support under SLES9, it
fails because of the wrong parameter count of utf8_mime2text() in
php_imap.c:78 compared to utf8.h:538.
I have tried with imap-2004g.tar.Z and the current imap-2006.DEV.tar.Z.

Build c-client library first:
cd /usr/local/applications/
tar xzf imap-2006.DEV.tar.Z
mv imap-*/ imap/
make slx all SSLTYPE=none IP=4
md include
md lib
cp src/c-client/*.h include/
cp c-client/c-client.a lib/libc-client.a
cp c-client/osdep.h include/
cp c-client/env_unix.h include/
cp c-client/linkage.h include/


Reproduce code:
---------------
./configure --prefix=/usr/local/applications/lamp2/php
--with-imap=/usr/local/applications/lamp2/imap
--with-apxs2=/usr/local/applications/lamp2/httpd/bin/apxs
--with-mysqli=/usr/local/applications/lamp2/mysql/bin/mysql_config
--with-mysql=/usr/local/applications/lamp2/mysql --with-zlib-dir=/usr/lib/
--enable-versioning --enable-track-vars=yes --enable-url-includes
--enable-sysvshm=yes --enable-sysvsem=yes --enable-ftp --enable-calendar
--with-config-file-path=/usr/local/applications/lamp2/php --with-gd
--with-xmlrpc --with-curl=/usr/local/applications/lamp2/curl --with-bz2
--enable-shmop --with-tidy=/usr/local/applications/lamp2/tidy
--with-libxml-dir=/usr/local/applications/lamp2/libxml2
--with-openssl=/usr/local/applications/lamp2/openssl
--with-ldap=/usr/local/applications/lamp2/openldap --with-pdo-sqlite
--enable-pdo --enable-bcmath --enable-mbstring
--with-xsl=/usr/local/applications/lamp2/libxsl --enable-shared
--disable-static

Expected result:
----------------
Successful build (not aborted).


Only if I change line 538 in
/usr/local/applications/lamp2/imap/include/utf8.h
from
  long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags);
to
  long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst);
the build runs successfully.

Actual result:
--------------
/tmp/lamp2/sources/php/php-5.1.4/ext/imap/php_imap.c:78: error:
conflicting types for `utf8_mime2text'
/usr/local/applications/lamp2/imap/include/utf8.h:538: error: previous
declaration of `utf8_mime2text'
make: *** [ext/imap/php_imap.lo] Error 1


-- 
Edit bug report at http://bugs.php.net/?id=37948&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37948&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37948&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37948&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37948&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37948&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37948&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37948&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37948&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37948&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37948&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37948&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37948&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37948&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37948&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37948&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37948&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37948&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37948&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37948&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37948&r=mysqlcfg

Reply via email to