php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59010 Fails to compile
Submitted: 2009-12-27 08:52 UTC Modified: 2017-01-10 08:34 UTC
Votes:2
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: linus at folkdatorn dot se Assigned: kalle (profile)
Status: Closed Package: oggvorbis (PECL)
PHP Version: 5.3.0 OS: Ubuntu Linux 9.10
Private report: No CVE-ID: None
 [2009-12-27 08:52 UTC] linus at folkdatorn dot se
Description:
------------
The packages can't compile on newer gcc because you can't 
have an label inside a switch without any statements.

Line 202-204:

default:
/* Do nothing with other types */
}


To fix this we can just insert a ; to make an empty 
statement.

default:
; // fix for gcc 4.3+
/* Do nothing with other types */
}


I'm not sure that it is gcc 4.3. I'm using gcc 4.4.1.

Reproduce code:
---------------
phpize
./configure
make

Expected result:
----------------
The make command will run without any errors.

Actual result:
--------------
oggvorbis.c: In function ?php_oggvorbis_init_writestream?:
oggvorbis.c:202: error: label at end of compound statement

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 08:34 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 17:01:30 2024 UTC