php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27975 Compilation of ext/ming fails
Submitted: 2004-04-13 09:09 UTC Modified: 2004-04-13 14:22 UTC
From: hannes at phpug dot ch Assigned:
Status: Closed Package: Ming related
PHP Version: 5CVS-2004-04-13 (dev) OS: Linux 2.6.5
Private report: No CVE-ID: None
 [2004-04-13 09:09 UTC] hannes at phpug dot ch
Description:
------------
Compiling the latest snapshot (php5-200404131030) seems to fail when configuring it with "--with-ming".
`make` produces a bunch of warnings and parse errors.

Actual result:
--------------
make ...
... -I/tmp/php5-200404131030/TSRM  -g -O2  -prefer-pic -c /tmp/php5-200404131030 /ext/ming/ming.c -o ext/ming/ming.lo
/tmp/php5-200404131030/ext/ming/ming.c:73: error: parse error before "getFontCha racter"
/tmp/php5-200404131030/ext/ming/ming.c:73: warning: data definition has no type or storage class
/tmp/php5-200404131030/ext/ming/ming.c:1313: error: parse error before "getFontC haracter"
/tmp/php5-200404131030/ext/ming/ming.c: In function `getFontCharacter':
/tmp/php5-200404131030/ext/ming/ming.c:1320: error: `SWFFontCharacter' undeclare d (first use in this function)
/tmp/php5-200404131030/ext/ming/ming.c:1320: error: (Each undeclared identifier is reported only once
/tmp/php5-200404131030/ext/ming/ming.c:1320: error: for each function it appears  in.)
/tmp/php5-200404131030/ext/ming/ming.c:1320: error: parse error before "font"
/tmp/php5-200404131030/ext/ming/ming.c: In function `zif_swfmovie_importChar':
/tmp/php5-200404131030/ext/ming/ming.c:2336: warning: assignment makes pointer f rom integer without a cast
/tmp/php5-200404131030/ext/ming/ming.c: In function `zif_swfmovie_importFont':
/tmp/php5-200404131030/ext/ming/ming.c:2353: error: `SWFFontCharacter' undeclare d (first use in this function)
/tmp/php5-200404131030/ext/ming/ming.c:2353: error: parse error before "res"
/tmp/php5-200404131030/ext/ming/ming.c:2363: error: `res' undeclared (first use in this function)
/tmp/php5-200404131030/ext/ming/ming.c: In function `zif_swfmovie_addFont':
/tmp/php5-200404131030/ext/ming/ming.c:2379: error: `SWFFontCharacter' undeclare d (first use in this function)
/tmp/php5-200404131030/ext/ming/ming.c:2379: error: parse error before "res"
/tmp/php5-200404131030/ext/ming/ming.c:2391: error: `res' undeclared (first use in this function)
make: *** [ext/ming/ming.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-13 12:41 UTC] sniper@php.net
And what might the installed ming library version be..? 
(it compiles just fine for me using Ming 0.2a..)

 [2004-04-13 14:22 UTC] hannes at phpug dot ch
Yes, it was 0.2a (from Debian), indeed. I fetched 0.3beta1-1 and I does compile now. Sorry. 
But "parse error" does just not sound like a version mismatch for the average PHP guy, does it.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 26 07:01:26 2019 UTC