From:             sihar at uninet dot net dot id
Operating system: Slackware 11.0
PHP version:      4.4.4
PHP Bug Type:     Compile Failure
Bug description:  conflicting types for 'utf8_mime2text'

Description:
------------
Every time I try to compile PHP 4.4.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-2006b.tar.Z
Build c-client library first:
cd /usr/local/applications/
tar xzf imap-2006b.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 --disable-static --with-apxs=/usr/sbin/apxs
--enable-discard-path --sysconfdir=/etc --with-config-file-
path=/usr/local/apache/etc --enable-safe-mode --with-openssl --with-mhash
--enable-bcmath --with-bz2 --with-pic --enable-calendar --
enable-ctype --with-gdbm --with-imap-ssl=/usr/local/lib/c-client
--with-imap=/usr/local/lib/c-client --with-mcrypt --with-mime-magic
 --enable-inline-optimization --enable-ftp --with-iconv --with-dom
--with-exif --enable-exif --with-gd --enable-gd-native-ttf --with
-jpeg-dir=/usr --with-png --with-ttf --with-freetype-dir=/usr
--enable-mbstring=all --with-pcre-regex=/usr --with-mysql=shared,/usr 
--with-gettext=shared,/usr --with-expat-dir=/usr --with-mm=/usr
--enable-trans-sid --enable-shmop --enable-sockets --enable-sysvsem 
--enable-sysvshm --enable-memory-limit --with-tsrm-pthreads
--enable-shared --disable-debug --with-zlib=/usr --with-apxs=/usr/local/
apache/sbin/apxs

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


Actual result:
--------------
/tmp/php-4.4.4/ext/imap/php_imap.c:74: error: conflicting types for
'utf8_mime2text'
/usr/local/lib/c-client/include/utf8.h:548: error: previous declaration of
'utf8_mime2text' was here
/tmp/php-4.4.4/ext/imap/php_imap.c:74: error: conflicting types for
'utf8_mime2text'
/usr/local/lib/c-client/include/utf8.h:548: error: previous declaration of
'utf8_mime2text' was here
/tmp/php-4.4.4/ext/mbstring/mbstring.c:152: warning: initialization
discards qualifiers from pointer target type
/tmp/php-4.4.4/ext/mbstring/mbstring.c:153: warning: initialization
discards qualifiers from pointer target type
/tmp/php-4.4.4/ext/mbstring/mbstring.c:154: warning: initialization
discards qualifiers from pointer target type
/tmp/php-4.4.4/ext/mbstring/mbstring.c:155: warning: initialization
discards qualifiers from pointer target type
/tmp/php-4.4.4/ext/mbstring/mbstring.c:156: warning: initialization
discards qualifiers from pointer target type
/tmp/php-4.4.4/ext/mbstring/mbstring.c:157: warning: initialization
discards qualifiers from pointer target type
make: *** [ext/imap/php_imap.lo] Error 1
make: *** Waiting for unfinished jobs....

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

Reply via email to