PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

其它问题> <将 PECL 扩展库静态编译入 PHP
Last updated: Mon, 26 Nov 2007

view this page in

还有问题?

Table of Contents

阅读 FAQ

有些问题比其它的更为普遍。最常见的列在 PHP 常见问题中,是本手册的一部分。



add a note add a note User Contributed Notes
还有问题?
hem.upadhyay
02-Nov-2007 07:39
After running configure successfully.
I am getting following errors in make.
cpp: "/opt/php-5.2.4/Zend/zend_operators.h", line 46: warning 2013: Unknown preprocessing directive.
cpp: "/opt/php-5.2.4/Zend/zend_operators.h", line 46: warning 2013: Unknown preprocessing directive.
cpp: "/opt/php-5.2.4/Zend/zend_operators.h", line 46: warning 2013: Unknown preprocessing directive.
cpp: "/opt/php-5.2.4/Zend/zend_operators.h", line 46: warning 2013: Unknown preprocessing directive.
cpp: "/opt/php-5.2.4/ext/standard/basic_functions.h", line 150: warning 2013: Unknown preprocessing directive.
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 41: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 43: error 1000: Unexpected symbol: "size".
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 43: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 44: error 1000: Unexpected symbol: "nmemb".
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 44: error 1000: Unexpected symbol: "offset".
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 44: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 45: error 1000: Unexpected symbol: "nmemb".
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 45: error 1000: Unexpected symbol: "offset".
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_alloc.h", line 45: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_types.h", line 43: error 1000: Unexpected symbol: "zend_object_handle".
(Bundled) cc: "/opt/php-5.2.4/Zend/zend_types.h", line 44: error 1000: Unexpected symbol: "*".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
hvozda at ack dot org
31-Oct-2006 07:49
When using --with-gd, jpeg support is *not* enabled by default even if the libs and headers are in /usr/lib and /usr/include.  Yet, if they are missing, GD will not build.

Oddly, examine the output from configure will show that libjpeg was actuly found and tested.

This happens with v4.4.4 of php on these platforms: RHEL v2.1, RHEL v3, CentOS v2.1 or CentOS v4.3.

On those platforms, it's *important* that --with-jpeg-dir be *before* --with-gd.  If it's not, GD won't build with jpeg support as if --with-jpeg-dir had never been specified.

It's also a "feechure" that gd_info() doesn't list jpeg support if it wasn't built with it.  However, if it is built with it, it will list it as "enabled" of course :-/

其它问题> <将 PECL 扩展库静态编译入 PHP
Last updated: Mon, 26 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites