ID:               39045
 User updated by:  bnies at bluewin dot ch
 Reported By:      bnies at bluewin dot ch
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: SunOS adnpool02 5.9 Generic_1122
 PHP Version:      5.1.6
 New Comment:

Whole stuff compiled with GCC 3.4.1 and GNU stuff:

PATH="/share/app/gnu/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin"
CC=gcc
CFLAGS=-O3 -fPIC -Wall
CXX=g++
CXXFLAGS=-O3 -fPIC -Wall
CPPFLAGS="-I/opt/adnwebmail/include"
LDFLAGS="-R/opt/adnwebmail/lib -L/opt/adnwebmail/lib
-R/opt/adnwebmail/lib/sparcv9 -L/opt/adnwebmail/lib/sparcv9"
LD_OPTIONS=$LDFLAGS

[EMAIL PROTECTED]:/tmp/php-5.1.6> gmake
/bin/sh /tmp/php-5.1.6/libtool --silent --preserve-dup-deps
--mode=compile gcc  -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:78: error: conflicting types for
'utf8_mime2text'
/opt/adnwebmail/include/utf8.h:548: error: previous declaration of
'utf8_mime2text' was here
/tmp/php-5.1.6/ext/imap/php_imap.c:78: error: conflicting types for
'utf8_mime2text'
/opt/adnwebmail/include/utf8.h:548: error: previous declaration of
'utf8_mime2text' was here
gmake: *** [ext/imap/php_imap.lo] Error 1


Obviously the compiler ist not the problem, its the code with improper
declarations and typecasts.


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

[2006-10-05 09:37:39] [EMAIL PROTECTED]

Please use GNU utils (gcc, GNU ld, GNU binutils etc.).

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

[2006-10-05 09:34:14] bnies at bluewin dot ch

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

Reply via email to