You can safely ignore those warnings, which may be caused by differences
of the prototype between libiconv and glibc.
libiconv:
Automatically adjusted according to the libc's counterpart by configure.
extern size_t iconv (iconv_t cd, @ICONV_CONST@ char* * inbuf,
size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
If the detection fails, @ICONV_CONST@ defaults to "const".
glibc:
extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
size_t *__restrict __inbytesleft,
char **__restrict __outbuf,
size_t *__restrict __outbytesleft);
It's also possible to add an extra check for the proto as mutt does.
Moriyoshi
"Andrey Hristov" <[EMAIL PROTECTED]> wrote:
> Hi Moriyoshi,
> I get the following warnings when I compile PHP5 HEAD against libiconv-1.9.1
>
> /bin/sh
> /home/storage/domhome/nik/php5-200309050930/libtool --silent --preserve-dup-
> deps --mode=compile
> gcc -I"/usr/local/include" -Iext/iconv/ -I/home/storage/domhome/nik/php5-200
> 309050930/ext/iconv/ -DPHP_ATOM_INC -I/home/storage/domhome/nik/php5-2003090
> 50930/include -I/home/storage/domhome/nik/php5-200309050930/main -I/home/sto
> rage/domhome/nik/php5-200309050930 -I/home/storage/domhome/nik/php5-20030905
> 0930/Zend -I/usr/local/include -I/home/storage/domhome/nik/php5-20030905093
> 0/TSRM -g -O2 -prefer-pic -c
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c -o
> ext/iconv/iconv.lo
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c: In function
> `_php_iconv_appendl':
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:246: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c: In function
> `php_iconv_string':
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:406: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c: In function
> `_php_iconv_strlen':
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:520: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c: In function
> `_php_iconv_substr':
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:620: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c: In function
> `_php_iconv_strpos':
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:751: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c: In function
> `_php_iconv_mime_encode':
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:985: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /home/storage/domhome/nik/php5-200309050930/ext/iconv/iconv.c:1073: warning:
> passing arg 2 of `libiconv' from incompatible pointer type
> /bin/sh
> /home/storage/domhome/nik/php5-200309050930/libtool --silent --preserve-dup-
> deps --mode=compile gcc -Iext/sockets/ -I/home/storage/domhome/ni
>
> Thanks,
> Andrey
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php