php.net |  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
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: joerg@php.net 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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 35 = ?
Subscribe to this entry?

 
 [2005-02-22 07:44 UTC] joerg@php.net
Description:
------------
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 http://www.irixworld.net/imlib2-0.1.00_irix_patch

regards
Joerg


Expected result:
----------------
No Compiler error

Actual result:
--------------
Compiler error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] yohgaki@php.net
-Status: Assigned +Status: Closed
 [2013-07-30 02:55 UTC] yohgaki@php.net
According to comment, it seems this is closed. If not, please reopen.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC