php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48448 Compile failure under IRIX 6.5.30 building cast.c
Submitted: 2009-06-02 06:32 UTC Modified: 2009-06-03 08:59 UTC
From: neko at nekochan dot net Assigned: kalle (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.2.10RC1 OS: IRIX 6.5.30
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: neko at nekochan dot net
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-02 12:49 UTC] kalle@php.net
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);


 [2009-06-02 17:13 UTC] neko at nekochan dot net
This patch does indeed clear the compile issue.
 [2009-06-03 08:59 UTC] kalle@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in the next 5.2.x release
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC