php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57374 can't compile against php 5.2.0
Submitted: 2006-11-13 16:47 UTC Modified: 2015-02-26 07:38 UTC
From: pecl_dot_php_dot_net at edelhost dot de Assigned:
Status: Suspended Package: apd (PECL)
PHP Version: 5.2.0 RC4 OS: Linux 2.6.18.k7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pecl_dot_php_dot_net at edelhost dot de
New email:
PHP Version: OS:

 

 [2006-11-13 16:47 UTC] pecl_dot_php_dot_net at edelhost dot de
Description:
------------
can not compile apd-1.0.1 against php-5.2.0 (__NOT__ 5.2.0 RC4!), because heavy changes in memory management.

Reproduce code:
---------------
tar -xzf apd-1.0.1.tgz && cd apd-1.0.1
phpize && ./configure && make

Expected result:
----------------
[output from compiler]
Build complete.

Actual result:
--------------
 gcc -I. -I/usr/local/src/apd-1.0.1 -DPHP_ATOM_INC -I/usr/local/src/apd-1.0.1/include -I/usr/local/src/apd-1.0.1/main -I/usr/local/src/apd-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/usr/local/src/apd-1.0.1/php_apd.c: In function 'trace_function_exit':
/usr/local/src/apd-1.0.1/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/usr/local/src/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/usr/local/src/apd-1.0.1/php_apd.c:397: error: for each function it appears in.)
make: *** [php_apd.lo] Ошибка 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-08 11:22 UTC] ramon at future500 dot nl
Same here...

FreeBSD 6 with PHP Version 5.2.0


Reproduce code:
---------------
tar -xzf apd-1.0.1.tgz && cd apd-1.0.1
phpize && ./configure && make

Expected output:
--------------
Build Complete

Actual result:
------------------
freebsd# make install
/bin/sh /usr/home/admin/apd-1.0.1/libtool --mode=compile gcc  -I. -I/usr/home/admin/apd-1.0.1 -DPHP_ATOM_INC -I/usr/home/admin/apd-1.0.1/include -I/usr/home/admin/apd-1.0.1/main -I/usr/home/admin/apd-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /usr/home/admin/apd-1.0.1/php_apd.c -o php_apd.lo
 gcc -I. -I/usr/home/admin/apd-1.0.1 -DPHP_ATOM_INC -I/usr/home/admin/apd-1.0.1/include -I/usr/home/admin/apd-1.0.1/main -I/usr/home/admin/apd-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/home/admin/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/usr/home/admin/apd-1.0.1/php_apd.c: In function `trace_function_exit':
/usr/home/admin/apd-1.0.1/php_apd.c:397: error: `memory_limit' undeclared (first use in this function)
/usr/home/admin/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/usr/home/admin/apd-1.0.1/php_apd.c:397: error: for each function it appears in.)
*** Error code 1

Stop in /usr/home/admin/apd-1.0.1.
 [2007-03-05 20:38 UTC] zoot_suit_brian at hotmail dot com
I am having the same exact problem.

 make install
/bin/sh /root/apd-1.0.1/libtool --mode=compile gcc  -I. -I/root/apd-1.0.1 -DPHP_ATOM_INC -I/root/apd-1.0.1/include -I/root/apd-1.0.1/main -I/root/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/apd-1.0.1/php_apd.c -o php_apd.lo
 gcc -I. -I/root/apd-1.0.1 -DPHP_ATOM_INC -I/root/apd-1.0.1/include -I/root/apd-1.0.1/main -I/root/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/root/apd-1.0.1/php_apd.c: In function 'trace_function_exit':
/root/apd-1.0.1/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/root/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/root/apd-1.0.1/php_apd.c:397: error: for each function it appears in.)
make: *** [php_apd.lo] Error 1
 [2007-05-05 19:03 UTC] pixel20 at tlen dot pl
Same problem here:

running: make
/bin/sh /var/tmp/pear-build-root/apd-1.0.1/libtool --mode=compile gcc  -I. -I/tmp/pear/cache/apd-1.0.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/apd-1.0.1/include -I/var/tmp/pear-build-root/apd-1.0.1/main -I/tmp/pear/cache/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/cache/apd-1.0.1/php_apd.c -o php_apd.lo
mkdir .libs
 gcc -I. -I/tmp/pear/cache/apd-1.0.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/apd-1.0.1/include -I/var/tmp/pear-build-root/apd-1.0.1/main -I/tmp/pear/cache/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/cache/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/tmp/pear/cache/apd-1.0.1/php_apd.c: In function 'trace_function_exit':
/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: for each function it appears in.)
make: *** [php_apd.lo] Error 1
 [2007-06-12 19:25 UTC] ew at u dot washington dot edu
I also have this problem with 5.2.0-8+etch4 from Debian stable.

pecl install apd

...

 gcc -I. -I/tmp/pear/cache/apd-1.0.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/apd-1.0.1/include -I/var/tmp/pear-build-root/apd-1.0.1/main -I/tmp/pear/cache/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/cache/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/tmp/pear/cache/apd-1.0.1/php_apd.c: In function 'trace_function_exit':
/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: for each function it appears in.)
make: *** [php_apd.lo] Error 1
ERROR: `make' failed
 [2007-11-11 06:49 UTC] master at contur dot it
When compiling && installing manually php_apd I get this message ...
make: *** [php_apd.lo] Error 1
ERROR: `make' failed

I'm using PHP Version 5.2.0-8+etch7 (debian) and also trying "pecl install apd" the result is the same.

This is the full make install output:

debian-at-home:~/install/apd-1.0.1# make install
/bin/sh /root/install/apd-1.0.1/libtool --mode=compile gcc  -I. -I/root/install/apd-1.0.1 -DPHP_ATOM_INC -I/root/install/apd-1.0.1/include -I/root/install/apd-1.0.1/main -I/root/install/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c /root/install/apd-1.0.1/php_apd.c -o php_apd.lo
 gcc -I. -I/root/install/apd-1.0.1 -DPHP_ATOM_INC -I/root/install/apd-1.0.1/include -I/root/install/apd-1.0.1/main -I/root/install/apd-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /root/install/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/root/install/apd-1.0.1/php_apd.c: In function 'trace_function_exit':
/root/install/apd-1.0.1/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/root/install/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/root/install/apd-1.0.1/php_apd.c:397: error: for each function it appears in.)
make: *** [php_apd.lo] Error 1

Anyone can help?
 [2008-01-09 09:08 UTC] debian at user dot de
Is APD dead? Because nothing happened since over a year :(
 [2008-12-06 06:06 UTC] netom at elte dot hu
I managed to fix this bug:

397c397
<       allocated = AG(memory_limit);
---
>       allocated = PG(memory_limit);

(You have to change the macro "AG" to "PG" @ line 391 (APD version 1.0.1) )

After compilation use "zend_extension = absolute_path_to_apd_so" in php.ini to load the extension.
 [2015-02-26 07:38 UTC] krakjoe@php.net
-Status: Open +Status: Suspended
 [2015-02-26 07:38 UTC] krakjoe@php.net
APD hasn't had a release in 10 years, this means it's source code is way out of sync with modern PHP.

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

Sorry about the wait.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC