#37333 [Fbk-Opn]: incompatibility with libiconv and other progs

2006-05-06 Thread werner at seneweb dot com
 ID:   37333
 User updated by:  werner at seneweb dot com
 Reported By:  werner at seneweb dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Slackware 10.2
 PHP Version:  5.1.4
 New Comment:

Yes, and I also tried it with install other versions 
libiconv 1.9.1 , 1.9.2 , .tgz  and with .tar.gz 
re-compiling too,  but all them gave the same kind of error 
messages.   Currently I resolved it, compiling php 5.1.4 
with ./configure --without-iconv --without-libiconv ...  
then its compiling/installing/running without problems.  
All this indicates, that it is the programming interface to 
libiconv inside php 5 what is wrong (probably, the correct 
types of the parameters in the libiconv call) and should be 
re-programmed.


Previous Comments:


[2006-05-06 09:05:29] [EMAIL PROTECTED]

Doesn't Slackware have libiconv bundled into the glibc?



[2006-05-05 18:18:38] werner at seneweb dot com

Here are the configure options i used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr
--with-zlib --with-libxml --with-gd --enable-soap --enable-sockets
--with-mm=/usr/local --with-pear --with-xsl --with-bz2 --with-openssl
--with-kerberos --enable-sysvmsg --enable-ftp --enable-fastcgi
--enable-libgcc --with-db4



[2006-05-05 18:06:17] werner at seneweb dot com

Description:

Incompatibility with libiconv.

This is also not becoming better when changing the version 
of libiconv and/or compiling it from the source code.

Error messages annexed.

Actual result:
--
/usr/local/src/php-5.1.4/ext/openssl/openssl.c: In function 
`php_openssl_x509_from_zval':
/usr/local/src/php-5.1.4/ext/openssl/openssl.c:776: 
warning: passing arg 1 of `PEM_ASN1_read_bio' from 
incompatible pointer type
/usr/local/src/php-5.1.4/ext/date/lib/tm2unixtime.c: In 
function `do_years':
/usr/local/src/php-5.1.4/ext/date/lib/tm2unixtime.c:143: 
warning: integer constant is too large for long type
/usr/local/src/php-5.1.4/ext/dba/dba_db4.c: In function 
`dba_open_db4':
/usr/local/src/php-5.1.4/ext/dba/dba_db4.c:99: warning: 
passing arg 2 of pointer to function from incompatible 
pointer type
/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c: In 
function `do_convert':
/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c:365: 
warning: passing arg 2 of `libiconv' from incompatible 
pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_appendl':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:254: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_strlen':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:528: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_substr':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:641: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_strpos':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:772: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_mime_encode':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1021: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1121: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`php_iconv_stream_filter_append_bucket':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2379: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2458: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/standard/datetime.c: In 
function `zif_strptime':
/usr/local/src/php-5.1.4/ext/standard/datetime.c:104: 
warning: assignment makes pointer from integer without a 
cast
conflicts: 5 shift/reduce
/usr/local/src/php-5.1.4/Zend/zend_ini_scanner.l, line 
174: warning, rule cannot be matched
ext/gd/libgd/.libs/gdkanji.o(.text+0x68): In function 
`do_convert':
/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c:350: 
undefined reference to `libiconv_open'
ext/gd/libgd/.libs/gdkanji.o(.text+0xa5):/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c:365:

undefined reference to `libiconv'
ext/gd/libgd/.libs/gdkanji.o(.text+0xb4):/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c:381:

undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x15f): In function 
`_php_iconv_appendl':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:254: undefined 
reference to `libiconv'

#37333 [Fbk-Opn]: incompatibility with libiconv and other progs

2006-05-06 Thread werner at seneweb dot com
 ID:   37333
 User updated by:  werner at seneweb dot com
 Reported By:  werner at seneweb dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Slackware 10.2
 PHP Version:  5.1.4
 New Comment:

Yes, naturally I unstalled libiconv before I tried another 
version, without sucess, then cames the same error 
messages.

As said, meanwhile I resolved for my own use the broblem, 
by including --without-iconv --without-libiconv  into 
the ./configure  instruction.


Previous Comments:


[2006-05-06 14:38:13] [EMAIL PROTECTED]

All linuxes I know of come with libiconv bundled into the glibc code.
I'm not sure about Slackware, but please try to uninstall GNU libiconv
at all, it should work fine with the bundled one.



[2006-05-06 14:24:53] werner at seneweb dot com

Yes, and I also tried it with install other versions 
libiconv 1.9.1 , 1.9.2 , .tgz  and with .tar.gz 
re-compiling too,  but all them gave the same kind of error 
messages.   Currently I resolved it, compiling php 5.1.4 
with ./configure --without-iconv --without-libiconv ...  
then its compiling/installing/running without problems.  
All this indicates, that it is the programming interface to 
libiconv inside php 5 what is wrong (probably, the correct 
types of the parameters in the libiconv call) and should be 
re-programmed.



[2006-05-06 09:05:29] [EMAIL PROTECTED]

Doesn't Slackware have libiconv bundled into the glibc?



[2006-05-05 18:18:38] werner at seneweb dot com

Here are the configure options i used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr
--with-zlib --with-libxml --with-gd --enable-soap --enable-sockets
--with-mm=/usr/local --with-pear --with-xsl --with-bz2 --with-openssl
--with-kerberos --enable-sysvmsg --enable-ftp --enable-fastcgi
--enable-libgcc --with-db4



[2006-05-05 18:06:17] werner at seneweb dot com

Description:

Incompatibility with libiconv.

This is also not becoming better when changing the version 
of libiconv and/or compiling it from the source code.

Error messages annexed.

Actual result:
--
/usr/local/src/php-5.1.4/ext/openssl/openssl.c: In function 
`php_openssl_x509_from_zval':
/usr/local/src/php-5.1.4/ext/openssl/openssl.c:776: 
warning: passing arg 1 of `PEM_ASN1_read_bio' from 
incompatible pointer type
/usr/local/src/php-5.1.4/ext/date/lib/tm2unixtime.c: In 
function `do_years':
/usr/local/src/php-5.1.4/ext/date/lib/tm2unixtime.c:143: 
warning: integer constant is too large for long type
/usr/local/src/php-5.1.4/ext/dba/dba_db4.c: In function 
`dba_open_db4':
/usr/local/src/php-5.1.4/ext/dba/dba_db4.c:99: warning: 
passing arg 2 of pointer to function from incompatible 
pointer type
/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c: In 
function `do_convert':
/usr/local/src/php-5.1.4/ext/gd/libgd/gdkanji.c:365: 
warning: passing arg 2 of `libiconv' from incompatible 
pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_appendl':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:254: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_strlen':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:528: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_substr':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:641: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_strpos':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:772: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`_php_iconv_mime_encode':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1021: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1121: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c: In function 
`php_iconv_stream_filter_append_bucket':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2379: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2458: warning: 
passing arg 2 of `libiconv' from incompatible pointer type
/usr/local/src/php-5.1.4/ext/standard/datetime.c: In 
function `zif_strptime':
/usr/local/src/php-5.1.4/ext/standard/datetime.c:104: 
warning: assignment makes pointer from integer without a 
cast
conflicts: 5 shift/reduce