php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40370 compile error
Submitted: 2007-02-06 12:53 UTC Modified: 2007-05-04 01:00 UTC
Votes:5
Avg. Score:3.6 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (25.0%)
From: oszfer at monornet dot hu Assigned: fmk (profile)
Status: No Feedback Package: Ming related
PHP Version: 4.4.4 OS: Debian sarge
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: oszfer at monornet dot hu
New email:
PHP Version: OS:

 

 [2007-02-06 12:53 UTC] oszfer at monornet dot hu
Description:
------------
I cannot compile PHP with ming-0.3 extension.
As I see on http://bugs.php.net/bug.php?id=35461 the 
problem was solved once. 
But, at least for me,  it still exists with php-4.4.4.

linux:/usr/local/src/php-4.4.4# gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.






Actual result:
--------------
/usr/local/src/php-4.4.4/ext/ming/ming.c: In function 
`zif_swfbitmap_init':
/usr/local/src/php-4.4.4/ext/ming/ming.c:323: warning: 
assignment from incompatible pointer type
/usr/local/src/php-4.4.4/ext/ming/ming.c: In function 
`zif_swfmovie_output':
/usr/local/src/php-4.4.4/ext/ming/ming.c:1467: error: too 
many arguments to function `SWFMovie_output'
/usr/local/src/php-4.4.4/ext/ming/ming.c: In function 
`zif_swfmovie_saveToFile':
/usr/local/src/php-4.4.4/ext/ming/ming.c:1516: error: too 
many arguments to function `SWFMovie_output'
/usr/local/src/php-4.4.4/ext/ming/ming.c: In function 
`zif_swfmovie_save':
/usr/local/src/php-4.4.4/ext/ming/ming.c:1561: error: too 
many arguments to function `SWFMovie_output'
/usr/local/src/php-4.4.4/ext/ming/ming.c:1575: error: too 
many arguments to function `SWFMovie_output'
/usr/local/src/php-4.4.4/ext/ming/ming.c: In function 
`zif_swftextfield_setFont':
/usr/local/src/php-4.4.4/ext/ming/ming.c:2597: warning: 
passing arg 2 of `SWFTextField_setFont' from incompatible 
pointer type
make: *** [ext/ming/ming.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-06 13:48 UTC] oszfer at monornet dot hu
I get the same error with the latest snapshot:

/bin/sh /usr/local/src/php4-STABLE-200702061130/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/ming/ -I/usr/local/src/php4-STABLE-200702061130/ext/ming/ -DPHP_ATOM_INC -I/usr/local/src/php4-STABLE-200702061130/include -I/usr/local/src/php4-STABLE-200702061130/main -I/usr/local/src/php4-STABLE-200702061130 -I/usr/include/libxml2 -I/usr/include/c-client -I/usr/local/src/php4-STABLE-200702061130/ext/mbstring/mbregex -I/usr/local/src/php4-STABLE-200702061130/ext/mbstring/libmbfl -I/usr/local/src/php4-STABLE-200702061130/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/home/oracle/product/9ir2/rdbms/public -I/home/oracle/product/9ir2/rdbms/demo -I/home/oracle/product/9ir2/plsql/public -I/usr/include/postgresql -I/usr/local/src/php4-STABLE-200702061130/ext/xml/expat -I/usr/local/src/php4-STABLE-200702061130/TSRM -I/usr/local/src/php4-STABLE-200702061130/Zend      -prefer-non-pic -c /usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c -o ext/ming/ming.lo
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c: In function `zif_swfbitmap_init':
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c:323: warning: assignment from incompatible pointer type
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c: In function `zif_swfmovie_output':
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c:1467: error: too many arguments to function `SWFMovie_output'
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c: In function `zif_swfmovie_saveToFile':
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c:1516: error: too many arguments to function `SWFMovie_output'
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c: In function `zif_swfmovie_save':
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c:1561: error: too many arguments to function `SWFMovie_output'
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c:1575: error: too many arguments to function `SWFMovie_output'
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c: In function `zif_swftextfield_setFont':
/usr/local/src/php4-STABLE-200702061130/ext/ming/ming.c:2597: warning: passing arg 2 of `SWFTextField_setFont' from incompatible pointer type
make: *** [ext/ming/ming.lo] Error 1
 [2007-02-06 13:56 UTC] tony2001@php.net
Assigned to the maintainer.
 [2007-03-08 21:32 UTC] m dot masson at cgi dot com
Got the same problem here...

I tried with both php-4.4.6 and the latest stable snapshot, 

PHP5 compiles properly tough.  
I can't use PHP5 as the application we are trying to install doesn't support PHP5:

 ./configure --prefix=/data/php4-STABLE-200703081930
             --with-apxs2=/data/apache/bin/apxs 
             --with-bz2 
             --with-gd 
             --with-freetype-dir=/usr 
             --with-jpeg-dir=/usr 
             --with-ttf 
             --with-png-dir 
             --with-jpeg-dir 
             --with-ming=/data/ming 
             --enable-exif 
             --enable-filter
             --with-pdo-mysql=/data/mysql 
             --with-openssl  
             --with-mysql=/data/mysql
             --with-mysqli=/data/mysql/bin/mysql_config 
             --with-zlib-dir=/usr

...
/bin/sh /data/SRC/php4-STABLE-200703081930/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/ming/ -I/data/SRC/php4-STABLE-200703081930/ext/ming/ -DPHP_ATOM_INC -I/data/SRC/php4-STABLE-200703081930/include -I/data/SRC/php4-STABLE-200703081930/main -I/data/SRC/php4-STABLE-200703081930 -I/usr/kerberos/include -I/usr/include/freetype2 -I/data/ming/include -I/data/mysql/include -I/data/SRC/php4-STABLE-200703081930/ext/xml/expat -I/data/SRC/php4-STABLE-200703081930/TSRM -I/data/SRC/php4-STABLE-200703081930/Zend    -g -O2  -prefer-non-pic -c /data/SRC/php4-STABLE-200703081930/ext/ming/ming.c -o ext/ming/ming.lo 
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c: In function `zif_swfbitmap_init':
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c:323: warning: assignment from incompatible pointer type
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c: In function `zif_swfmovie_output':
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c:1467: error: too many arguments to function `SWFMovie_output'
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c: In function `zif_swfmovie_saveToFile':
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c:1516: error: too many arguments to function `SWFMovie_output'
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c: In function `zif_swfmovie_save':
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c:1561: error: too many arguments to function `SWFMovie_output'
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c:1575: error: too many arguments to function `SWFMovie_output'
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c: In function `zif_swftextfield_setFont':
/data/SRC/php4-STABLE-200703081930/ext/ming/ming.c:2597: warning: passing arg 2 of `SWFTextField_setFont' from incompatible pointer type
make: *** [ext/ming/ming.lo] Error 1


thanks
 [2007-03-08 21:34 UTC] m dot masson at cgi dot com
Forgot to mention that I'm using RedHat Enterprise 4 update 4.
 [2007-05-04 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC