本文介绍了pdo_oci make不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我将opensuse 12.3更新为较新的13.1

Recently I updated my opensuse 12.3 to the newer 13.1

不幸的是,我无法编译所需的pdo_oci.so.使用本指南,y可以在12.3上编译引伸:

Unfortunately, I'm not able to compile the pdo_oci.so needed.Using this guide, y could compile the extnention on 12.3:

http://forums.opensuse.org/english/other-forums/development/programming-scripting/418966-installing-pdo_oci-php.html

但是不幸的是,在实际版本上,我正在努力寻找解决方案.目前,我正在尝试执行make,但是y出现以下错误:

But unfortunately on the actual version i'm struggling to find a solution.At the moment i'm trying to execute the make, but y get the following error:

/home/temp/PDO_OCI-1.0/pdo_oci.c:34:1: error: unknown type name 'function_entry'
 function_entry pdo_oci_functions[] = {
 ^
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: braces around scalar initializer [enabled by default]
  {NULL, NULL, NULL}
  ^
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: (near initialization for 'pdo_oci_functions[0]') [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: (near initialization for 'pdo_oci_functions[0]') [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: excess elements in scalar initializer [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: (near initialization for 'pdo_oci_functions[0]') [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: excess elements in scalar initializer [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:35:2: warning: (near initialization for 'pdo_oci_functions[0]') [enabled by default]
/home/temp/PDO_OCI-1.0/pdo_oci.c:56:2: warning: initialization from incompatible pointer type [enabled by default]
  pdo_oci_functions,
  ^
/home/temp/PDO_OCI-1.0/pdo_oci.c:56:2: warning: (near initialization for 'pdo_oci_module_entry.functions') [enabled by default]

make: * [pdo_oci.lo]错误1

make: * [pdo_oci.lo] Error 1

有人知道发生了什么事吗?

Anyone knows what's happening?

推荐答案

hefengxian,他的解决方案对我有用,但是我还不能发表评论,所以这就是我所做的.

hefengxian he 's solution worked for me but I can't make comments yet so here's what I did.

编辑文件pdo_oci.c,在第34行附近搜索:

Edit the file pdo_oci.c, around line 34 search for :

/* {{{ pdo_oci_functions[] */
function_entry pdo_oci_functions[] = {
    {NULL, NULL, NULL}
};
/* }}} */

替换为

/* {{{ pdo_oci_functions[] */
zend_function_entry pdo_oci_functions[] = {
    {NULL, NULL, NULL}
};
/* }}} */

再次运行make.

这篇关于pdo_oci make不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 07:04