php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56253 Compile fails
Submitted: 2004-12-22 09:03 UTC Modified: 2004-12-22 09:32 UTC
From: mark-phpspam at vectrex dot org dot uk Assigned:
Status: Not a bug Package: apd (PECL)
PHP Version: 4.3.8 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mark-phpspam at vectrex dot org dot uk
New email:
PHP Version: OS:

 

 [2004-12-22 09:03 UTC] mark-phpspam at vectrex dot org dot uk
Description:
------------
phpize; ./configure; make fails to compile.

GCC version:
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-13)



Reproduce code:
---------------
phpize; ./configure; make

Expected result:
----------------
It compiles properly

Actual result:
--------------
 gcc -I. -I/home/mark/unpack/apd-1.0.1 -DPHP_ATOM_INC -I/home/mark/unpack/apd-1.0.1/include -I/home/mark/unpack/apd-1.0.1/main -I/home/mark/unpack/apd-1.0.1 -I/home/mark/apache/php/include/php -I/home/mark/apache/php/include/php/main -I/home/mark/apache/php/include/php/Zend -I/home/mark/apache/php/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /home/mark/unpack/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/home/mark/unpack/apd-1.0.1/php_apd.c: In function `apd_get_active_function_name':
/home/mark/unpack/apd-1.0.1/php_apd.c:305: error: invalid operands to binary !=
/home/mark/unpack/apd-1.0.1/php_apd.c:306: error: invalid type argument of `unary *'
/home/mark/unpack/apd-1.0.1/php_apd.c:312: error: structure has no member named `scope'
/home/mark/unpack/apd-1.0.1/php_apd.c:313: error: structure has no member named `scope'
/home/mark/unpack/apd-1.0.1/php_apd.c: At top level:
/home/mark/unpack/apd-1.0.1/php_apd.c:470: error: `OnUpdateLong' undeclared here (not in a function)
/home/mark/unpack/apd-1.0.1/php_apd.c:470: error: initializer element is not constant
/home/mark/unpack/apd-1.0.1/php_apd.c:470: error: (near initialization for `ini_entries[1].on_modify')
/home/mark/unpack/apd-1.0.1/php_apd.c:470: error: initializer element is not constant
/home/mark/unpack/apd-1.0.1/php_apd.c:470: error: (near initialization for `ini_entries[1]')
/home/mark/unpack/apd-1.0.1/php_apd.c:471: error: initializer element is not constant
/home/mark/unpack/apd-1.0.1/php_apd.c:471: error: (near initialization for `ini_entries[2]')
make: *** [php_apd.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-22 09:32 UTC] mark-phpspam at vectrex dot org dot uk
This is a bug in the documentation. It didn't make it clear that apd 1.0.1 requires PHP5

There should really be a test in the configure process or somewhere which detects if the PHP version is wrong and quits with a helpful message rather than just failing to build

Mark
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC