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 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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joerg@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Dec 12 01:01:28 2024 UTC