PHP扩展库安装错误[自己解决了]
本帖最后由 墨迹哥 于 2013-04-06 18:44 编辑安装Perl扩展失败。。十分郁闷。。求解答。。root@smart:~/xx2/perl-1.0.1# make install
/bin/bash /root/xx2/perl-1.0.1/libtool --mode=compile cc-I. -I/root/xx2/perl-1.0.1 -DPHP_ATOM_INC -I/root/xx2/perl-1.0.1/include -I/root/xx2/perl-1.0.1/main -I/root/xx2/perl-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib-DHAVE_CONFIG_H-g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.14/CORE-c /root/xx2/perl-1.0.1/php_perl.c -o php_perl.lo
libtool: compile:cc -I. -I/root/xx2/perl-1.0.1 -DPHP_ATOM_INC -I/root/xx2/perl-1.0.1/include -I/root/xx2/perl-1.0.1/main -I/root/xx2/perl-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.14/CORE -c /root/xx2/perl-1.0.1/php_perl.c-fPIC -DPIC -o .libs/php_perl.o
/root/xx2/perl-1.0.1/php_perl.c:186:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:186:3: warning: (near initialization for 'php_perl_object_handlers.read_property')
/root/xx2/perl-1.0.1/php_perl.c:187:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:187:3: warning: (near initialization for 'php_perl_object_handlers.write_property')
/root/xx2/perl-1.0.1/php_perl.c:193:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:193:3: warning: (near initialization for 'php_perl_object_handlers.has_property')
/root/xx2/perl-1.0.1/php_perl.c:194:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:194:3: warning: (near initialization for 'php_perl_object_handlers.unset_property')
/root/xx2/perl-1.0.1/php_perl.c:198:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:198:3: warning: (near initialization for 'php_perl_object_handlers.get_method')
/root/xx2/perl-1.0.1/php_perl.c:199:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:199:3: warning: (near initialization for 'php_perl_object_handlers.call_method')
/root/xx2/perl-1.0.1/php_perl.c:202:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:202:3: warning: (near initialization for 'php_perl_object_handlers.get_class_name')
/root/xx2/perl-1.0.1/php_perl.c:213:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:213:3: warning: (near initialization for 'php_perl_proxy_handlers.read_property')
/root/xx2/perl-1.0.1/php_perl.c:214:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:214:3: warning: (near initialization for 'php_perl_proxy_handlers.write_property')
/root/xx2/perl-1.0.1/php_perl.c:220:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:220:3: warning: (near initialization for 'php_perl_proxy_handlers.has_property')
/root/xx2/perl-1.0.1/php_perl.c:221:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:221:3: warning: (near initialization for 'php_perl_proxy_handlers.unset_property')
/root/xx2/perl-1.0.1/php_perl.c:225:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:225:3: warning: (near initialization for 'php_perl_proxy_handlers.get_method')
/root/xx2/perl-1.0.1/php_perl.c:226:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:226:3: warning: (near initialization for 'php_perl_proxy_handlers.call_method')
/root/xx2/perl-1.0.1/php_perl.c:229:3: warning: initialization from incompatible pointer type
/root/xx2/perl-1.0.1/php_perl.c:229:3: warning: (near initialization for 'php_perl_proxy_handlers.get_class_name')
/root/xx2/perl-1.0.1/php_perl.c:247:1: warning: excess elements in struct initializer
/root/xx2/perl-1.0.1/php_perl.c:247:1: warning: (near initialization for 'php_perl_constructor_function')
/root/xx2/perl-1.0.1/php_perl.c: In function 'php_perl_sv_to_zval_noref':
/root/xx2/perl-1.0.1/php_perl.c:540:7: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
In file included from /usr/lib/perl/5.14/CORE/perl.h:5036:0,
from /root/xx2/perl-1.0.1/php_perl.c:38:
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
/root/xx2/perl-1.0.1/php_perl.c: In function 'php_perl_call_method':
/root/xx2/perl-1.0.1/php_perl.c:680:11: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
In file included from /usr/lib/perl/5.14/CORE/perl.h:5036:0,
from /root/xx2/perl-1.0.1/php_perl.c:38:
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
/root/xx2/perl-1.0.1/php_perl.c: In function 'php_perl_call':
/root/xx2/perl-1.0.1/php_perl.c:743:11: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
In file included from /usr/lib/perl/5.14/CORE/perl.h:5036:0,
from /root/xx2/perl-1.0.1/php_perl.c:38:
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
/root/xx2/perl-1.0.1/php_perl.c: In function 'php_perl_get_method':
/root/xx2/perl-1.0.1/php_perl.c:1418:5: error: too few arguments to function 'zend_get_std_object_handlers()->get_method'
/root/xx2/perl-1.0.1/php_perl.c: In function 'php_perl_get_properties':
/root/xx2/perl-1.0.1/php_perl.c:1496:29: error: 'znode_op' has no member named 'op_type'
/root/xx2/perl-1.0.1/php_perl.c:1497:29: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1498:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1498:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1499:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1499:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1500:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1500:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1501:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1501:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1502:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c:1502:12: error: 'znode_op' has no member named 'u'
/root/xx2/perl-1.0.1/php_perl.c: In function 'zim_Perl_eval':
/root/xx2/perl-1.0.1/php_perl.c:1905:13: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
In file included from /usr/lib/perl/5.14/CORE/perl.h:5036:0,
from /root/xx2/perl-1.0.1/php_perl.c:38:
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
make: *** 错误 1
PHP板块太你妹的冷血了。。。出了问题都木有人来解答下。。最后还是自己给解决了。。
悲剧!没人回答。。
页:
[1]