|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56203 apd-0.9.2 do'nt compile with php 4.3.[89]
Submitted: 2004-09-30 10:36 UTC Modified: 2015-02-26 07:31 UTC
From: tereutes at nainwak dot com Assigned:
Status: Suspended Package: apd (PECL)
PHP Version: Irrelevant OS: debian linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tereutes at nainwak dot com
New email:
PHP Version: OS:


 [2004-09-30 10:36 UTC] tereutes at nainwak dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-18 18:33 UTC] taylor at linuxhq dot org
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)
 [2006-04-18 20:27 UTC] taylor at linuxhq dot org
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)
        if(APD_GLOBALS(pproftrace) && APD_GLOBALS(statement_tracing)) {

And there you go :)
 [2015-02-26 07:31 UTC]
-Status: Open +Status: Suspended
 [2015-02-26 07:31 UTC]
APD hasn't had a release in more than 10 years, this means it's source code is way out of sync with modern PHP.

I'm going to mark this as suspended, this report can still be found if a maintainer comes forward for APD.

Sorry about the wait.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 17:01:23 2023 UTC