lnmp1.3 php7.07安装exif时出错
军哥帮忙看看 非常感谢~按着教程,make && make install 这步就出错了。在extensions/no-debug-non-zts-20151012目录下没有exif.so
我用的是PHP7,php的源码目录没有exif扩展,自己下的后安装。# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
# ./configure --with-php-config=/usr/local/php/bin/php-config
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
#make && make install
/bin/sh /root/lnmp1.3-full/src/exif/libtool --mode=compile cc-I. -I/root/lnmp1.3-full/src/exif -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/exif/include -I/root/lnmp1.3-full/src/exif/main -I/root/lnmp1.3-full/src/exif -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib-DHAVE_CONFIG_H-g -O2 -c /root/lnmp1.3-full/src/exif/exif.c -o exif.lo
mkdir .libs
cc -I. -I/root/lnmp1.3-full/src/exif -DPHP_ATOM_INC -I/root/lnmp1.3-full/src/exif/include -I/root/lnmp1.3-full/src/exif/main -I/root/lnmp1.3-full/src/exif -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/lnmp1.3-full/src/exif/exif.c-fPIC -DPIC -o .libs/exif.o
/root/lnmp1.3-full/src/exif/exif.c: In function ‘OnUpdateEncode’:
/root/lnmp1.3-full/src/exif/exif.c:190: warning: passing argument 1 of ‘strlen’ from incompatible pointer type
/usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
/root/lnmp1.3-full/src/exif/exif.c:190: warning: passing argument 1 of ‘php_mb_check_encoding_list’ from incompatible pointer type
/usr/local/php/include/php/ext/mbstring/mbstring.h:144: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
/root/lnmp1.3-full/src/exif/exif.c:195: error: ‘new_value_length’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c:195: error: (Each undeclared identifier is reported only once
/root/lnmp1.3-full/src/exif/exif.c:195: error: for each function it appears in.)
/root/lnmp1.3-full/src/exif/exif.c:195: warning: passing argument 6 of ‘OnUpdateString’ makes integer from pointer without a cast
/usr/local/php/include/php/Zend/zend_ini.h:162: note: expected ‘int’ but argument is of type ‘void *’
/root/lnmp1.3-full/src/exif/exif.c:195: error: too many arguments to function ‘OnUpdateString’
/root/lnmp1.3-full/src/exif/exif.c: In function ‘OnUpdateDecode’:
/root/lnmp1.3-full/src/exif/exif.c:201: warning: passing argument 1 of ‘php_mb_check_encoding_list’ from incompatible pointer type
/usr/local/php/include/php/ext/mbstring/mbstring.h:144: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
/root/lnmp1.3-full/src/exif/exif.c:206: error: ‘new_value_length’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c:206: warning: passing argument 6 of ‘OnUpdateString’ makes integer from pointer without a cast
/usr/local/php/include/php/Zend/zend_ini.h:162: note: expected ‘int’ but argument is of type ‘void *’
/root/lnmp1.3-full/src/exif/exif.c:206: error: too many arguments to function ‘OnUpdateString’
/root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_iif_add_value’:
/root/lnmp1.3-full/src/exif/exif.c:1700: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
/root/lnmp1.3-full/src/exif/exif.c:1701: error: too many arguments to function ‘php_addslashes’
/root/lnmp1.3-full/src/exif/exif.c:1701: warning: assignment from incompatible pointer type
/root/lnmp1.3-full/src/exif/exif.c:1727: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
/root/lnmp1.3-full/src/exif/exif.c:1728: error: too many arguments to function ‘php_addslashes’
/root/lnmp1.3-full/src/exif/exif.c:1728: warning: assignment from incompatible pointer type
/root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_iif_add_str’:
/root/lnmp1.3-full/src/exif/exif.c:1853: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
/root/lnmp1.3-full/src/exif/exif.c:1854: warning: passing argument 1 of ‘php_addslashes’ from incompatible pointer type
/usr/local/php/include/php/ext/standard/php_string.h:126: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/root/lnmp1.3-full/src/exif/exif.c:1854: error: too many arguments to function ‘php_addslashes’
/root/lnmp1.3-full/src/exif/exif.c:1854: warning: assignment from incompatible pointer type
/root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_iif_add_buffer’:
/root/lnmp1.3-full/src/exif/exif.c:1898: error: ‘struct _php_core_globals’ has no member named ‘magic_quotes_runtime’
/root/lnmp1.3-full/src/exif/exif.c:1902: warning: passing argument 1 of ‘php_addslashes’ from incompatible pointer type
/usr/local/php/include/php/ext/standard/php_string.h:126: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/root/lnmp1.3-full/src/exif/exif.c:1902: error: too many arguments to function ‘php_addslashes’
/root/lnmp1.3-full/src/exif/exif.c:1902: warning: assignment from incompatible pointer type
/root/lnmp1.3-full/src/exif/exif.c:2014:46: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
/root/lnmp1.3-full/src/exif/exif.c: In function ‘add_assoc_image_info’:
/root/lnmp1.3-full/src/exif/exif.c:2014: error: ‘add_assoc_stringl’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c:2016:73: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
/root/lnmp1.3-full/src/exif/exif.c:2025: error: too many arguments to function ‘add_index_string’
/root/lnmp1.3-full/src/exif/exif.c:2027:43: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
/root/lnmp1.3-full/src/exif/exif.c:2027: error: ‘add_assoc_string’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c:2072:49: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
/root/lnmp1.3-full/src/exif/exif.c:2074: error: too many arguments to function ‘add_index_string’
/root/lnmp1.3-full/src/exif/exif.c:2098:49: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
/root/lnmp1.3-full/src/exif/exif.c:2100: error: too many arguments to function ‘add_index_string’
/root/lnmp1.3-full/src/exif/exif.c:2383:25: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
/root/lnmp1.3-full/src/exif/exif.c: In function ‘zif_exif_tagname’:
/root/lnmp1.3-full/src/exif/exif.c:2383: error: ‘RETURN_STRING’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c:2384: error: expected ‘;’ before ‘}’ token
/root/lnmp1.3-full/src/exif/exif.c: In function ‘exif_read_file’:
/root/lnmp1.3-full/src/exif/exif.c:3887: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c:3914: error: too many arguments to function ‘php_basename’
/root/lnmp1.3-full/src/exif/exif.c:3919: warning: assignment makes pointer from integer without a cast
/root/lnmp1.3-full/src/exif/exif.c:3920: warning: assignment makes pointer from integer without a cast
/root/lnmp1.3-full/src/exif/exif.c:3921: warning: assignment makes pointer from integer without a cast
/root/lnmp1.3-full/src/exif/exif.c:3922: warning: assignment makes pointer from integer without a cast
/root/lnmp1.3-full/src/exif/exif.c:3923: warning: assignment makes pointer from integer without a cast
/root/lnmp1.3-full/src/exif/exif.c:3924: warning: assignment makes pointer from integer without a cast
/root/lnmp1.3-full/src/exif/exif.c:4152:82: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
/root/lnmp1.3-full/src/exif/exif.c: In function ‘zif_exif_thumbnail’:
/root/lnmp1.3-full/src/exif/exif.c:4152: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
/root/lnmp1.3-full/src/exif/exif.c: In function ‘zif_exif_imagetype’:
/root/lnmp1.3-full/src/exif/exif.c:4192: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
make: *** Error 1
[ 本帖最后由 oyjcmyn 于 2016-8-18 17:33 编辑 ] 不清楚你从哪里找的exif的代码,人家php本来就自动exif的源码
1.3版本src目录下肯定没php-版本号的目录,1.3上为了减小占用硬盘安装后都是清理源码包目录的,清理完肯定没有php源码目录更不可能存在ext目录,你需要你自己解压php-版本号.tar.gz 的包 谢谢,问题已解决。原来要自己解压呀,不好意思,新手:)
页:
[1]