简体   繁体   English

Mac OS X Yosemite中的SDO

[英]SDO in Mac OS X Yosemite

Keep getting errors when installing SCA_SDO via PECL 通过PECL安装SCA_SDO时不断出错

   -MacBook-Pro:SCA_SDO-1.2.4 roland$ sudo pecl install SCA_SDO
downloading SCA_SDO-1.2.4.tgz ...
Starting to download SCA_SDO-1.2.4.tgz (576,531 bytes)
..............................................................................................done: 576,531 bytes
194 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/Cellar/php55/5.5.22/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed

then when i try manually downloading and installing i get the following 然后,当我尝试手动下载并安装时,得到以下信息

/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:310:1: error: unknown type
      name 'function_entry'
function_entry sdo_model_propertyimpl_methods[] = {
^
/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:325:8: warning: duplicate
      'static' declaration specifier [-Wduplicate-decl-specifier]
static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_model_reflectiondataobject_exp...
       ^
/usr/local/Cellar/php55/5.5.22/include/php/Zend/zend_API.h:107:2: note: 
      expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
        static const zend_arg_info name[] = ...
        ^
/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:330:1: error: unknown type
      name 'function_entry'
function_entry sdo_model_reflectiondataobject_methods[] = {
^
/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:352:1: error: unknown type
      name 'function_entry'
function_entry sdo_exception_methods[] = {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.

Any ideas on why this will not compile? 关于为什么不能编译的任何想法?

Replacing "function_entry" with "zend_function_entry" was enough for a simple test which I ran on OS X 10.9.5 with PHP 5.4.30 using the code published here: http://php.webtutor.pl/en/2011/07/07/how-to-create-php-extensions-in-c-part-i-adding-simple-function/ 用“ zend_function_entry”替换“ function_entry”足以完成一个简单的测试,我使用在此处发布的代码在PHP 5.4.30的OS X 10.9.5上运行: http ://php.webtutor.pl/zh/2011/07/ 07 /如何在C部分中创建PHP扩展-我添加了简单功能/

Comments on https://bugs.php.net/bug.php?id=61479 also recommend replacing "pval" with "zval" in the source code, but if you're using complex data types in your extension then the whole story there is probably a bit more complicated. https://bugs.php.net/bug.php?id=61479上的评论也建议在源代码中将“ pval”替换为“ zval”,但是如果您在扩展程序中使用复杂的数据类型,那么整个故事可能有点复杂。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM