#37333 [Opn->Fbk]: incompatibility with libiconv and other progs
| From: | tony2001@php.net | Date: | Sat, 06 May 2006 14:38:13 +0000 |
| Subject: | #37333 [Opn->Fbk]: incompatibility with libiconv and other progs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96726@lists.php.net to get a copy of this message | ||
ID: 37333
Updated by: tony2001@php.net
Reported By: werner at seneweb dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Slackware 10.2
PHP Version: 5.1.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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] tony2001@php.net
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'
ext/iconv/.libs/iconv.o(.text+0x22b):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:291:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x2da): In function
`php_iconv_string':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:347: undefined
reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x312):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:356:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x333):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:369:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x356):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:380:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x3be): In function
`_php_iconv_strlen':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:505: undefined
reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x424):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:528:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x44e):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:562:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x4da): In function
`_php_iconv_strpos':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:747: undefined
reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x545):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:772:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x5dd):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:886:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x78a): In function
`_php_iconv_mime_decode':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1247: undefined
reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x84a):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1716:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x85f):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1719:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0xb20):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1358:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0xb33):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1361:
undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x1124): In function
`zif_iconv_substr':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:618: undefined
reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x11cb):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:641:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1214):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:698:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x122a):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:702:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x13e5):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:649:
undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x195d): In function
`zif_iconv_mime_encode':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:936: undefined
reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x197d):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:950:
undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x1bad):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1209:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x1bc8):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1212:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x1d26):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1021:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1d59):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1053:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1d85):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1069:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x2041):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1121:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x206e):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1152:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x22c6):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:1196:
more undefined references to `libiconv' follow
ext/iconv/.libs/iconv.o(.text+0x2f9d): In function
`php_iconv_stream_filter_dtor':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2307: undefined
reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x30a3): In function
`php_iconv_stream_filter_append_bucket':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2457: undefined
reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x30e6):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2457:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x31b0):/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2379:
undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x34de): In function
`php_iconv_stream_filter_factory_create':
/usr/local/src/php-5.1.4/ext/iconv/iconv.c:2333: undefined
reference to `libiconv_open'
collect2: ld returned 1 exit status
make: [sapi/cli/php] Error 1 (ignored)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37333&edit=1