php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31263 Warning when building the source
Submitted: 2004-12-23 04:33 UTC Modified: 2005-01-12 19:32 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: alexfung3 at yahoo dot com dot hk Assigned:
Status: Wont fix Package: Compile Warning
PHP Version: 5CVS-2004-12-23 (dev) OS: Solaris 9 x86
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-23 04:33 UTC] alexfung3 at yahoo dot com dot hk
Description:
------------
Hi All,

I can compile successfully "configure --with-apxs2=/usr/local/apache2/bin/apxs"  But I get warning when I build it.  The warning is..

/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `_php_iconv_appendl':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:254: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `php_iconv_string':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:414: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `_php_iconv_strlen':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:528: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `_php_iconv_substr':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:628: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `_php_iconv_strpos':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:759: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `_php_iconv_mime_encode':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:1012: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:1112: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c: In function `php_iconv_stream_filter_append_bucket':
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:2365: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/ext/iconv/iconv.c:2444: warning: passing arg 2 of `iconv' from incompatible pointer type
/tmp/php/php5-STABLE-200412230130/main/php_scandir.c: In function `php_scandir':
/tmp/php/php5-STABLE-200412230130/main/php_scandir.c:116: warning: passing arg 4 of `qsort' from incompatible pointer type
(It is safe to ignore warnings about tempnam and tmpnam).

I'm not sure whether it is a bug or not.  But could anyone tell me can I ignore all the warnings?

Thanks very much for your time

Expected result:
----------------
Build successful without any warning.

Actual result:
--------------
Build successful with warnings.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-11 06:56 UTC] moriyoshi@php.net
Those warns are concerned with the prototype differences 
across platforms and so you can safely ignore them.


 [2005-01-12 12:50 UTC] alexfung3 at yahoo dot com dot hk
Thanks for your help
 [2005-01-12 16:26 UTC] alexfung3 at yahoo dot com dot hk
Thanks for your help
 [2005-01-12 19:32 UTC] tony2001@php.net
The report was marked as "won't fix", please don't change it's status until you want to reopen it.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 24 20:01:26 2019 UTC