|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56319 Compile error imlib2.c
Submitted: 2005-02-22 07:44 UTC Modified: 2013-07-30 02:55 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: Assigned: gardron (profile)
Status: Closed Package: imlib2 (PECL)
PHP Version: Irrelevant OS: IRIX 6.5.27m
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2005-02-22 07:44 UTC]
Using latest mipspro cc compiler 7.4.2m dont compile imlib2.c.

Reproduce code:
cc -I. -I/usr2/MIPS/imlib2-0.1.00_build -DPHP_ATOM_INC -I/usr2/MIPS/imlib2-0.1.00_build/include -I/usr2/MIPS/imlib2-0.1.00_build/main -I/usr2/MIPS/imlib2-0.1.00_build -I/usr/nekoware/php5/include/php -I/usr/nekoware/php5/include/php/main -I/usr/nekoware/php5/include/php/Zend -I/usr/nekoware/php5/include/php/TSRM -I/usr/local/include -I/usr/nekoware/include -DHAVE_CONFIG_H -O3 -mips4 -I/usr/nekoware/include -OPT:Olimit=0:roundoff=3 -TARG:platform=IP27:proc=r10000 -c /usr2/MIPS/imlib2-0.1.00_build/imlib2.c  -DPIC -o imlib2.lo
cc-1241 cc: ERROR File = /usr2/MIPS/imlib2-0.1.00_build/imlib2.c, Line = 647
  A declaration cannot appear after an executable statement in a block.

        double ng;

cc-1241 cc: ERROR File = /usr2/MIPS/imlib2-0.1.00_build/imlib2.c, Line = 679
  A declaration cannot appear after an executable statement in a block.

        double nc;

Moving the declaration above the statement solve all this  errors. A patch can be found under


Expected result:
No Compiler error

Actual result:
Compiler error


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-23 11:59 UTC] gareth at fission dot org dot uk
Thanks Joerg.

Patch is applied. I'll push a release out later on with the fix.
 [2013-07-30 02:55 UTC]
-Status: Assigned +Status: Closed
 [2013-07-30 02:55 UTC]
According to comment, it seems this is closed. If not, please reopen.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Sep 28 22:03:37 2021 UTC