ID:               37948
 User updated by:  rele at gmx dot de
 Reported By:      rele at gmx dot de
-Status:           Feedback
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: SuSE Linux Enterprise Server 9
 PHP Version:      5.1.4
 New Comment:

Thank you, the changed utf8_mime2text() declaration allowed the build
to complete successfully.


Keep up the good work,
René


Previous Comments:
------------------------------------------------------------------------

[2006-06-28 19:54:07] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



------------------------------------------------------------------------

[2006-06-28 14:31:56] rele at gmx dot de

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 this bug report at http://bugs.php.net/?id=37948&edit=1

Reply via email to