lattimore-liou / fastdfs

Automatically exported from code.google.com/p/fastdfs
GNU General Public License v3.0
0 stars 0 forks source link

php_client compilation failed with php 5.4rc1 #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download and install php 5.4rc1 from php.net
2. compile fastdfs 3.04
3. compile fastdfs php extension whith php 5.4rc1

What is the expected output? What do you see instead?

Hope you have time to look at it. thanks.

What version of the product are you using? On what operating system?

Please provide any additional information below.

 cc -I. -I/data/src/FastDFS/php_client -DPHP_ATOM_INC -I/data/src/FastDFS/php_client/include -I/data/src/FastDFS/php_client/main -I/data/src/FastDFS/php_client -I/usr/local/php.540/include/php -I/usr/local/php.540/include/php/main -I/usr/local/php.540/include/php/TSRM -I/usr/local/php.540/include/php/Zend -I/usr/local/php.540/include/php/ext -I/usr/local/php.540/include/php/ext/date/lib -I/usr/local/include/fastcommon -I/usr/local/include/fastdfs -DHAVE_CONFIG_H -g -O2 -Werror -Wall -c /data/src/FastDFS/php_client/fastdfs_client.c  -fPIC -DPIC -o .libs/fastdfs_client.o
/data/src/FastDFS/php_client/fastdfs_client.c:97:2: error: unknown type name 
‘function_entry’
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: braces around scalar 
initializer [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: initialization makes 
integer from pointer without a cast [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: initializer element 
is not computable at load time
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’)
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: excess elements in 
scalar initializer [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: excess elements in 
scalar initializer [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: excess elements in 
scalar initializer [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: excess elements in 
scalar initializer [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:98:3: error: (near initialization 
for ‘fastdfs_client_functions[0]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: braces around scalar 
initializer [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: (near initialization 
for ‘fastdfs_client_functions[1]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: initialization makes 
integer from pointer without a cast [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: (near initialization 
for ‘fastdfs_client_functions[1]’) [-Werror]
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: initializer element 
is not computable at load time
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: (near initialization 
for ‘fastdfs_client_functions[1]’)
/data/src/FastDFS/php_client/fastdfs_client.c:99:3: error: excess elements in 
scalar initializer [-Werror]

Original issue reported on code.google.com by yeb...@gmail.com on 22 Nov 2011 at 4:04

GoogleCodeExporter commented 9 years ago
ubuntu 11.10 x86_64

Original comment by yeb...@gmail.com on 22 Nov 2011 at 4:25

GoogleCodeExporter commented 9 years ago
maybe the php 5.4 changed.
i 'll download php 5.4 and try it!

Original comment by happyfis...@gmail.com on 22 Nov 2011 at 8:14

GoogleCodeExporter commented 9 years ago
php 5.4rc1 not stable version, so ignore this issue.

Original comment by happyfis...@gmail.com on 23 Nov 2011 at 8:14

GoogleCodeExporter commented 9 years ago
PHP Version 5.4.0beta1 have this problem, please resovle it!!!

Original comment by wenhaoz...@gmail.com on 21 Jan 2012 at 11:39

GoogleCodeExporter commented 9 years ago
running php-5.4.0 (Final release version).  When trying to compile gdchart, I 
get the following: gdchart-0.2.0/gdchart.c:195:1: error: unknown type name 
‘function_entry’
...so it wasn't fixed before.  Now it needs to be fixed!

Original comment by gil...@telusplanet.net on 5 Mar 2012 at 7:01

GoogleCodeExporter commented 9 years ago
this problem already be fixed in v3.07 which will release soon.

Original comment by happyfis...@gmail.com on 9 Apr 2012 at 3:03