|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-06-02 06:32 UTC] neko at nekochan dot net
Description:
------------
Able to compile up to and including php-5.2.9 without error
and run in a production environment. Attempt to build php-5.2.10RC1
fails in main/streams/cast.c (Argument of type "int" is incompatible
with parameter of type "void **".)
IRIX64 Kazehana 6.5 6.5.30f 07202013 IP35
MIPSpro Compilers: Version 7.4.4m
Actual result:
--------------
/bin/sh /opt/build/php-5.2.10RC1/libtool --silent --preserve-dup-deps
--mode=compile c99 -Imain/streams/ -I/opt/build/php-
5.2.10RC1/main/streams/ -DPHP_ATOM_INC -I/opt/build/php-
5.2.10RC1/include -I/opt/build/php-5.2.10RC1/main -I/opt/build/php-
5.2.10RC1 -I/opt/build/php-5.2.10RC1/ext/date/lib -
I/usr/nekoware/include/libxml2 -I/usr/nekoware/include -
I/usr/nekoware/include/freetype2 -I/opt/build/php-
5.2.10RC1/ext/mbstring/oniguruma -I/opt/build/php-
5.2.10RC1/ext/mbstring/libmbfl -I/opt/build/php-
5.2.10RC1/ext/mbstring/libmbfl/mbfl -
I/usr/nekoware/mysql5/include/mysql -I/usr/nekoware/pgsql/include -
I/opt/build/php-5.2.10RC1/TSRM -I/opt/build/php-5.2.10RC1/Zend -
D_XPG_IV -L/usr/nekoware/lib -L/usr/lib32 -I/usr/include -mips4 -O3 -
I/usr/nekoware/include -I/usr/include -Wl,-rpath -
Wl,/usr/nekoware/lib:/usr/nekoware/mysql5/lib/mysql -
OPT:Olimit=0:roundoff=3 -TARG:platform=IP35:proc=r16000 -c
/opt/build/php-5.2.10RC1/main/streams/cast.c -o main/streams/cast.lo
cc-1164 c99: ERROR File = /opt/build/php-
5.2.10RC1/main/streams/cast.c, Line = 222
Argument of type "int" is incompatible with parameter of type "void
**".
int retcode =
php_stream_cast(newstream, castas | flags, ret, show_err);
^
1 error detected in the compilation of "/opt/build/php-
5.2.10RC1/main/streams/cast.c".
gmake: *** [main/streams/cast.lo] Error 1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
I'm not generally sure about this, but compared to PHP_5_3/HEAD the code looks like this: Index: cast.c =================================================================== RCS file: /repository/php-src/main/streams/cast.c,v retrieving revision 1.12.2.1.2.5 diff -u -r1.12.2.1.2.5 cast.c --- cast.c 19 Apr 2009 17:10:52 -0000 1.12.2.1.2.5 +++ cast.c 2 Jun 2009 12:48:29 -0000 @@ -219,7 +219,7 @@ if (ret != SUCCESS) { php_stream_close(newstream); } else { - int retcode = php_stream_cast(newstream, castas | flags, ret, show_err); + int retcode = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); if (retcode == SUCCESS) rewind(*(FILE**)ret);