免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5079 | 回复: 7
打印 上一主题 下一主题

[FastDFS] php_client安装时出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-28 11:02 |只看该作者 |倒序浏览
版主你好!
因为看到大家对FastDFS的评论很好,所以我也想尝试的使用一下,可是在编译和安装php_client的时候发生下列问题,不知道该如何解决,本人对编程不懂。
我的操作系统是linux enterprise 5 (32bit),php是用源码包安装的php-5.2.9,服务器为IBM X M2,已经分别在不同的服务器上面成功安装了1台tracker服务器,和2台storage服务器。按照php_client文件夹里的README的安装说明,在成功执行phpize后,使用./configure --with-fastdfs_client进行编译,接着执行make的时候出现如下错误。(所有操作都是以root用户执行)
/bin/sh /root/Desktop/FastDFS/php_client/libtool --mode=compile cc  -I. -I/root/Desktop/FastDFS/php_client -DPHP_ATOM_INC -I/root/Desktop/FastDFS/php_client/include -I/root/Desktop/FastDFS/php_client/main -I/root/Desktop/FastDFS/php_client -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -Werror -Wall   -c /root/Desktop/FastDFS/php_client/fastdfs_client.c -o fastdfs_client.lo
mkdir .libs
cc -I. -I/root/Desktop/FastDFS/php_client -DPHP_ATOM_INC -I/root/Desktop/FastDFS/php_client/include -I/root/Desktop/FastDFS/php_client/main -I/root/Desktop/FastDFS/php_client -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Werror -Wall -c /root/Desktop/FastDFS/php_client/fastdfs_client.c  -fPIC -DPIC -o .libs/fastdfs_client.o
/root/Desktop/FastDFS/php_client/fastdfs_client.c:21:25: error: fdfs_client.h: No such file or directory
/root/Desktop/FastDFS/php_client/fastdfs_client.c:22:20: error: logger.h: No such file or directory
/root/Desktop/FastDFS/php_client/fastdfs_client.c:23:25: error: fdfs_global.h: No such file or directory
/root/Desktop/FastDFS/php_client/fastdfs_client.c:24:25: error: shared_func.h: No such file or directory
/root/Desktop/FastDFS/php_client/fastdfs_client.c:25:27: error: client_global.h: No such file or directory
/root/Desktop/FastDFS/php_client/fastdfs_client.c:27:30: error: fdfs_http_shared.h: No such file or directory
/root/Desktop/FastDFS/php_client/fastdfs_client.c:31: error: expected specifier-qualifier-list before ‘TrackerServerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:36: error: expected specifier-qualifier-list before ‘TrackerServerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:50: error: ‘g_tracker_group’ undeclared here (not in a function)
cc1: warnings being treated as errors
/root/Desktop/FastDFS/php_client/fastdfs_client.c:50: warning: excess elements in struct initializer
/root/Desktop/FastDFS/php_client/fastdfs_client.c:50: warning: (near initialization for ‘php_context’)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:50: warning: excess elements in struct initializer
/root/Desktop/FastDFS/php_client/fastdfs_client.c:50: warning: (near initialization for ‘php_context’)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:139: error: expected declaration specifiers or ‘...’ before ‘FDFSMetaData’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘fastdfs_convert_metadata_to_array’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:151: error: ‘FDFSMetaData’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:151: error: (Each undeclared identifier is reported only once
/root/Desktop/FastDFS/php_client/fastdfs_client.c:151: error: for each function it appears in.)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:151: error: ‘pMetaData’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:157: error: ‘meta_list’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:161: error: expected expression before ‘)’ token
/root/Desktop/FastDFS/php_client/fastdfs_client.c:164: warning: implicit declaration of function ‘logError’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:192: error: ‘FDFS_MAX_META_NAME_LEN’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:203: error: ‘FDFS_MAX_META_VALUE_LEN’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_tracker_get_connection_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:239: error: ‘TrackerServerInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:239: error: ‘pTrackerServer’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:247: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:248: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:251: warning: implicit declaration of function ‘tracker_get_connection_ex’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:251: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:254: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:258: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_tracker_make_all_connections_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:280: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:281: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:284: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:284: warning: implicit declaration of function ‘tracker_get_all_connections_ex’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:284: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:286: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:288: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_tracker_close_all_connections_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:307: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:308: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:311: warning: implicit declaration of function ‘tracker_close_all_connections_ex’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:311: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:312: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:313: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_connect_server_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:323: error: ‘TrackerServerInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:323: error: expected ‘;’ before ‘server_info’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:331: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:332: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:340: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:344: error: ‘server_info’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:348: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:348: warning: implicit declaration of function ‘tracker_connect_server’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_disconnect_server_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:380: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:381: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:389: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:399: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:413: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:414: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:421: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: At top level:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:426: error: expected declaration specifiers or ‘...’ before ‘TrackerServerInfo’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_get_server_from_hash’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:434: error: ‘pTrackerServer’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:434: error: ‘TrackerServerInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:454: error: ‘IP_ADDRESS_SIZE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_tracker_list_groups_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:505: error: ‘TrackerServerInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:505: error: expected ‘;’ before ‘tracker_server’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:506: error: ‘pTrackerServer’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:507: error: ‘FDFSGroupStat’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:507: error: expected ‘;’ before ‘group_stats’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:508: error: ‘pGroupStat’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:509: error: ‘pGroupEnd’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:514: error: ‘FDFSStorageInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:514: error: expected ‘;’ before ‘storage_infos’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:515: error: ‘pStorage’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:516: error: ‘pStorageEnd’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:517: error: ‘FDFSStorageStat’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:517: error: ‘pStorageStat’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:525: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:526: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:537: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:543: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:546: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:555: error: ‘tracker_server’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:557: error: too many arguments to function ‘php_fdfs_get_server_from_hash’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:560: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:567: warning: implicit declaration of function ‘tracker_list_groups’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:567: error: ‘group_stats’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:567: error: ‘FDFS_MAX_GROUPS’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:577: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:581: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:621: warning: implicit declaration of function ‘tracker_list_servers’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:621: error: ‘storage_infos’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:621: error: ‘FDFS_MAX_SERVERS_EACH_GROUP’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:627: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_tracker_query_storage_store_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:752: error: ‘TrackerServerInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:752: error: expected ‘;’ before ‘tracker_server’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:753: error: expected ‘;’ before ‘storage_server’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:754: error: ‘pTrackerServer’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:765: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:766: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:777: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:783: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:786: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:794: error: ‘tracker_server’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:796: error: too many arguments to function ‘php_fdfs_get_server_from_hash’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:799: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:807: warning: implicit declaration of function ‘tracker_query_storage_store_with_group’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:807: error: ‘storage_server’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:812: warning: implicit declaration of function ‘tracker_query_storage_store_without_group’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:822: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: At top level:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:840: warning: type defaults to ‘int’ in declaration of ‘byte’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:840: error: expected ‘;’, ‘,’ or ‘)’ before ‘cmd’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:974: warning: type defaults to ‘int’ in declaration of ‘bool’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:974: error: expected ‘;’, ‘,’ or ‘)’ before ‘bFileId’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1126: warning: type defaults to ‘int’ in declaration of ‘bool’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1126: error: expected ‘;’, ‘,’ or ‘)’ before ‘bFileId’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1305: warning: type defaults to ‘int’ in declaration of ‘bool’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1305: error: expected ‘;’, ‘,’ or ‘)’ before ‘bFileId’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1471: warning: type defaults to ‘int’ in declaration of ‘bool’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1471: error: expected ‘;’, ‘,’ or ‘)’ before ‘bFileId’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1641: warning: type defaults to ‘int’ in declaration of ‘bool’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1641: error: expected ‘;’, ‘,’ or ‘)’ before ‘bFileId’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1792: warning: type defaults to ‘int’ in declaration of ‘byte’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:1792: error: expected ‘;’, ‘,’ or ‘)’ before ‘cmd’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2030: warning: type defaults to ‘int’ in declaration of ‘byte’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2030: error: expected ‘;’, ‘,’ or ‘)’ before ‘cmd’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2313: warning: type defaults to ‘int’ in declaration of ‘bool’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2313: error: expected ‘;’, ‘,’ or ‘)’ before ‘bFileId’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_http_gen_token_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2534: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2535: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2543: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2547: warning: implicit declaration of function ‘fdfs_http_gen_token’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2547: error: ‘g_anti_steal_secret_key’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2549: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_get_file_info_impl’:

论坛徽章:
0
2 [报告]
发表于 2009-12-28 11:02 |只看该作者

回复 #1 specialwj 的帖子

/root/Desktop/FastDFS/php_client/fastdfs_client.c:2565: error: ‘FDFSFileInfo’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2565: error: expected ‘;’ before ‘file_info’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2573: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2574: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2582: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2586: warning: implicit declaration of function ‘fdfs_get_file_info’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2586: error: ‘file_info’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2587: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_gen_slave_filename_impl’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2629: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2630: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2640: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2666: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2676: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2680: warning: implicit declaration of function ‘fdfs_gen_slave_filename’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2682: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_get_last_error_no’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2747: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_get_last_error_info’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2758: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_tracker_query_storage_update’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2790: warning: implicit declaration of function ‘php_fdfs_tracker_do_query_storage_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2790: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_UPDATE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2790: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_tracker_query_storage_fetch’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2802: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_FETCH_ONE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2802: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_tracker_query_storage_list’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2814: warning: implicit declaration of function ‘php_fdfs_tracker_query_storage_list_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2814: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_tracker_query_storage_update1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2826: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_UPDATE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2826: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_tracker_query_storage_fetch1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2838: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_FETCH_ONE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2838: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_tracker_query_storage_list1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2850: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_by_filename’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2863: warning: implicit declaration of function ‘php_fdfs_storage_upload_file_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2863: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2863: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_by_filename1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2875: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2875: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_by_filebuff’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2887: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2887: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_by_filebuff1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2899: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2899: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_slave_by_filename’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2912: warning: implicit declaration of function ‘php_fdfs_storage_upload_slave_file_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2912: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2912: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_slave_by_filename1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2925: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2925: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_slave_by_filebuff’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2939: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2939: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_upload_slave_by_filebuff1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2952: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2952: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_delete_file’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2964: warning: implicit declaration of function ‘php_fdfs_storage_delete_file_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2964: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_delete_file1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2975: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_download_file_to_buff’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2987: warning: implicit declaration of function ‘php_fdfs_storage_download_file_to_buff_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2987: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_download_file_to_buff1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:2999: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_download_file_to_file’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3011: warning: implicit declaration of function ‘php_fdfs_storage_download_file_to_file_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3011: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_download_file_to_file1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3023: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_set_metadata’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3035: warning: implicit declaration of function ‘php_fdfs_storage_set_metadata_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3035: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_set_metadata1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3046: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_get_metadata’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3057: warning: implicit declaration of function ‘php_fdfs_storage_get_metadata_impl’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3057: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zif_fastdfs_storage_get_metadata1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3068: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_close’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3106: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3111: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3111: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3113: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘php_fdfs_destroy’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3121: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3121: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3121: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3124: warning: implicit declaration of function ‘fdfs_client_destroy_ex’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3124: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3125: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3126: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS___construct’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3147: error: ‘bool’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3147: error: expected ‘;’ before ‘bMultiThread’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3152: error: ‘bMultiThread’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3152: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3173: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3176: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3176: error: ‘TrackerServerGroup’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3176: error: expected expression before ‘)’ token
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3178: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3187: warning: implicit declaration of function ‘fdfs_copy_tracker_group’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3187: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3187: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3196: error: ‘FDFSPhpContext’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3196: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_tracker_query_storage_update’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3311: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_UPDATE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3311: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_tracker_query_storage_fetch’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3327: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_FETCH_ONE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3327: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_tracker_query_storage_list’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3343: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_tracker_query_storage_update1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3358: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_UPDATE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3358: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_tracker_query_storage_fetch1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3374: error: ‘TRACKER_PROTO_CMD_SERVICE_QUERY_FETCH_ONE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3374: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_tracker_query_storage_list1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3390: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_by_filename’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3406: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)

论坛徽章:
0
3 [报告]
发表于 2009-12-28 11:03 |只看该作者
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3406: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_by_filename1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3422: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3422: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_by_filebuff’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3438: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3438: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_by_filebuff1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3454: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3454: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_slave_by_filename’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3471: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3471: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_slave_by_filename1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3489: error: ‘FDFS_UPLOAD_BY_FILE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3489: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_slave_by_filebuff’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3507: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3507: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_upload_slave_by_filebuff1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3524: error: ‘FDFS_UPLOAD_BY_BUFF’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3524: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_delete_file’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3540: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_delete_file1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3555: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_download_file_to_buff’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3571: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_download_file_to_buff1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3587: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_download_file_to_file’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3604: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_download_file_to_file1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3620: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_set_metadata’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3636: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_set_metadata1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3652: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_get_metadata’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3667: error: ‘false’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_storage_get_metadata1’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3682: error: ‘true’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_get_last_error_no’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3696: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zim_FastDFS_get_last_error_info’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:3710: error: ‘FDFSPhpContext’ has no member named ‘err_no’
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘load_config_files’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4199: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4200: warning: implicit declaration of function ‘fdfs_client_init’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4208: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4208: error: ‘TrackerServerGroup’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4208: error: expected expression before ‘)’ token
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4210: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4218: warning: implicit declaration of function ‘fdfs_load_tracker_group’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4218: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4227: warning: implicit declaration of function ‘logInfo’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4227: error: ‘g_base_path’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4227: error: ‘g_network_timeout’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zm_startup_fastdfs_client’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4255: error: ‘FDFS_FILE_ID_SEPERATE_STR’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4259: error: ‘STORAGE_SET_METADATA_FLAG_OVERWRITE_STR’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4263: error: ‘STORAGE_SET_METADATA_FLAG_MERGE_STR’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4267: error: ‘FDFS_STORAGE_STATUS_INIT’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4269: error: ‘FDFS_STORAGE_STATUS_WAIT_SYNC’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4271: error: ‘FDFS_STORAGE_STATUS_SYNCING’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4273: error: ‘FDFS_STORAGE_STATUS_DELETED’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4275: error: ‘FDFS_STORAGE_STATUS_OFFLINE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4277: error: ‘FDFS_STORAGE_STATUS_ONLINE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4279: error: ‘FDFS_STORAGE_STATUS_ACTIVE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4281: error: ‘FDFS_STORAGE_STATUS_NONE’ undeclared (first use in this function)
/root/Desktop/FastDFS/php_client/fastdfs_client.c: In function ‘zm_shutdown_fastdfs_client’:
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4298: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4300: error: ‘FDFSConfigInfo’ has no member named ‘pTrackerGroup’
/root/Desktop/FastDFS/php_client/fastdfs_client.c:4306: warning: implicit declaration of function ‘fdfs_client_destroy’
make: *** [fastdfs_client.lo] Error 1
个人理解为执行的时候找不到fastdfs_client.lo文件,查看了在执行了上述两步操作目录下生成的只有fastdfs_client.loT文件,所以修改Makefile文件里的shared_objects_fastdfs_client = fastdfs_client.lo改为shared_objects_fastdfs_client = fastdfs_client.loT。然后再次执行make的时候,仍然报以下错误。
/bin/sh /root/Desktop/FastDFS/php_client/libtool --mode=link cc -DPHP_ATOM_INC -I/root/Desktop/FastDFS/php_client/include -I/root/Desktop/FastDFS/php_client/main -I/root/Desktop/FastDFS/php_client -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -Werror -Wall   -o fastdfs_client.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/Desktop/FastDFS/php_client/modules  fastdfs_client.loT -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lfdfsclient
cc -shared   -L/usr/local/lib -lfdfsclient  -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,fastdfs_client.so -o .libs/fastdfs_client.so
/usr/bin/ld: cannot find -lfdfsclient
collect2: ld returned 1 exit status
make: *** [fastdfs_client.la] Error 1
请问我如何操作才可以正确安装,谢谢。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
4 [报告]
发表于 2009-12-28 11:33 |只看该作者

回复 #1 specialwj 的帖子

需要先安装FastDFS client library。
在client目录下,执行:make; make install

论坛徽章:
0
5 [报告]
发表于 2009-12-28 12:54 |只看该作者
版主你好
谢谢你的回复,我按照你说的方法,cd进入client目录,但是执行make的时候系统所给出的提示为make: *** No targets specified and no makefile found.  Stop,请问我是否还遗漏了什么操作?client目录为FastDFS_v1.23自带的。谢谢。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
6 [报告]
发表于 2009-12-28 14:02 |只看该作者

回复 #5 specialwj 的帖子

抱歉,我以为你已经执行过make.sh了。
要在client的上一级目录,即FastDFS所在目录,执行
./make.sh
./make.sh install
执行install时,估计会有权限问题。要通过root身份来执行,或者sudo执行。

论坛徽章:
0
7 [报告]
发表于 2009-12-28 14:19 |只看该作者
不好意思,是我没有解释清楚,而导致你判断错误。
按照版主你给我的方式,我已经正确安装了php_client。
再一次非常感谢你给予的帮助。谢谢。

论坛徽章:
0
8 [报告]
发表于 2014-02-18 08:28 |只看该作者
我的安装版本是 FastDFS v4.06 / Centos 6.5 64位 / nginx 1.4.4 / PHP 5.3.28,也出现楼主的问题,按照happy_fish100 的提示进行操作仍是,后来换为php 5.3.21就正常生成fastdfs_client.so。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP