473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Can't compile APC with PHP 4.4.4 (too many arguments to function `zend_do_inheritance')

Kil
Hello everyone,

I would like to use the Alternative PHP Cache (APC,
http://pecl.php.net/package/APC). I am using Apache 2.2.3 (with worker
MPM), PHP 4.4.4 - all self-builds under Debian GNU/Linux 3.1, Kernel
2.4.

I use the following configure command to build APC:

../configure \
--enable-apc \
--enable-apc-mmap \
--with-apxs=/usr/local/apache-2.2.3/bin/apxs \
--with-php-config=/usr/local/php-4.4.4/bin/php-config

But afterwards, make fails with the following error:

[...]
/bin/sh /usr/local/src/new_inst2/APC-3.0.12p2/libtool --mode=compile
gcc -I. -I/usr/local/src/new_inst2/APC-3.0.12p2 -DPHP_ATOM_INC
-I/usr/local/src/new_inst2/APC-3.0.12p2/include
-I/usr/local/src/new_inst2/APC-3.0.12p2/main
-I/usr/local/src/new_inst2/APC-3.0.12p2
-I/usr/local/php-4.4.4/include/php
-I/usr/local/php-4.4.4/include/php/main
-I/usr/local/php-4.4.4/include/php/TSRM
-I/usr/local/php-4.4.4/include/php/Zend
-I/usr/local/apache-2.2.3/include -DAPC_PHP4_STAT -DHAVE_CONFIG_H -g
-O2 -c /usr/local/src/new_inst2/APC-3.0.12p2/apc_main.c -o
apc_main.lo
gcc -I. -I/usr/local/src/new_inst2/APC-3.0.12p2 -DPHP_ATOM_INC
-I/usr/local/src/new_inst2/APC-3.0.12p2/include
-I/usr/local/src/new_inst2/APC-3.0.12p2/main
-I/usr/local/src/new_inst2/APC-3.0.12p2
-I/usr/local/php-4.4.4/include/php
-I/usr/local/php-4.4.4/include/php/main
-I/usr/local/php-4.4.4/include/php/TSRM
-I/usr/local/php-4.4.4/include/php/Zend
-I/usr/local/apache-2.2.3/include -DAPC_PHP4_STAT -DHAVE_CONFIG_H -g
-O2 -c /usr/local/src/new_inst2/APC-3.0.12p2/apc_main.c -fPIC -DPIC -o
apc_main.lo
/usr/local/src/new_inst2/APC-3.0.12p2/apc_main.c: In function
`install_class':
/usr/local/src/new_inst2/APC-3.0.12p2/apc_main.c:167: error: too many
arguments to function `zend_do_inheritance'
make: *** [apc_main.lo] Fehler 1

I googled for this exact error and found one reference, from someone
trying to build eAccelerator under AIX. The solution is to upgrade to
the final version of eAccelerator where this problem is solved.
Unfortunately, that does not help me here...

Has anyone experienced this or a similar problem before? I really don't
have a clue about where the problem could be (I'm not very familiar
with ZEND et al) and every hint is greatly appreciated!

Many thanks,
Kilian

Nov 29 '06 #1
0 1177

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Nick Coghlan | last post by:
Time for another random syntax idea. . . So, I was tinkering in the interactive interpreter, and came up with the following one-size-fits-most default argument hack: Py> x = 1 Py> def...
6
by: Paul | last post by:
Hi, Often I come across situatation where I need to create array of objects with parameterized constructors, there are alternative ways to do this, but why can't it be a standard feature in C++....
10
by: linq936 | last post by:
Hi, I am having some hard time in reading a code, to me it should not compile, but it does! Here are the code structure, file1.c #include "common_herders.h"
33
by: Kenneth Brody | last post by:
I know that passing printf() too few arguments, or arguments of the wrong type invokes UB. However, what about passing too many arguments, if the expected arguments are of the correct type? For...
3
by: Peter | last post by:
Hi, I am trying to compile an existing project (originally c) in .NET (rename .c files to .cpp). After fixing some problems, here are the ones that I don't know how to deal with:...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
13
by: Bill | last post by:
Can someone help me with this error: error C2143: syntax error : missing ';' before 'type' Here is the line it's complaining about: for(int i=0;i<4;i++){ printf("%d",x); }
2
by: Spoon | last post by:
Hello everyone, AFAIU, in C89, calling fprintf with too few arguments leads to UB. 4.9.6.1 The fprintf function Synopsis #include <stdio.h> int fprintf(FILE *stream, const char *format,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.