|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-09-30 10:36 UTC] tereutes at nainwak dot com
Description: ------------ pear install apd-0.9.2 downloading apd-0.9.2.tgz ... Starting to download apd-0.9.2.tgz (36,989 bytes) ..........done: 36,989 bytes 18 source files, building running: phpize Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20021010 [../..] gcc -I. -I/tmp/tmpwZxDBB/apd-0.9.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/apd-0.9.2/include -I/var/tmp/pear-build-root/apd-0.9.2/main -I/tmp/tmpwZxDBB/apd-0.9.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpwZxDBB/apd-0.9.2/php_apd.c -fPIC -DPIC -o php_apd.lo /tmp/tmpwZxDBB/apd-0.9.2/php_apd.c:957: conflicting types for `onStatement' /tmp/tmpwZxDBB/apd-0.9.2/php_apd.c:65: previous declaration of `onStatement' make: *** [php_apd.lo] Error 1 `make' failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 13:00:01 2025 UTC |
I got the same error using the following software: APACHE 2.0.55 PHP 5.1.1 APD 1.0.1 gcc -I. -I/usr/src/rpm/BUILD/apd-1.0.1 -DPHP_ATOM_INC -I/usr/src/rpm/BUILD/apd-1.0.1/include -I/usr/src/rpm/BUILD/apd-1.0.1/main -I/usr/src/rpm/BUILD/apd-1.0.1 -I/software/apache/2.0.55/php/5.1.1/include/php -I/software/apache/2.0.55/php/5.1.1/include/php/main -I/software/apache/2.0.55/php/5.1.1/include/php/TSRM -I/software/apache/2.0.55/php/5.1.1/include/php/Zend -I/software/apache/2.0.55/php/5.1.1/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /usr/src/rpm/BUILD/apd-1.0.1/php_apd.c -fPIC -DPIC -o .libs/php_apd.o /usr/src/rpm/BUILD/apd-1.0.1/php_apd.c:957: conflicting types for `onStatement' /usr/src/rpm/BUILD/apd-1.0.1/php_apd.c:65: previous declaration of `onStatement' make: *** [php_apd.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.92280 (%build)Here's a patch I put together which will allow the package to build. I'm no big C developer, so i'm not sure if this will break its normal functions. Patch it and test? --- php_apd.c 2004-09-27 23:25:59.000000000 -0400 +++ php_apd.c.20060418 2006-04-18 20:19:22.000000000 -0400 @@ -953,7 +953,7 @@ // Zend Extension Functions // --------------------------------------------------------------------------- -ZEND_DLEXPORT void onStatement(zend_op_array *op_array) +ZEND_DLEXPORT void onStatement(zend_op_array *op_array TSRMLS_DC) { TSRMLS_FETCH(); if(APD_GLOBALS(pproftrace) && APD_GLOBALS(statement_tracing)) { And there you go :)