php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56421 apd 1.0.1 won't make
Submitted: 2005-06-21 17:48 UTC Modified: 2015-02-26 07:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: loop at superinfinite dot com Assigned: gschlossnagle (profile)
Status: Suspended Package: apd (PECL)
PHP Version: 5.0.3 OS: Mac OS 10.3.9
Private report: No CVE-ID: None
 [2005-06-21 17:48 UTC] loop at superinfinite dot com
Description:
------------
When trying to 'sudo make install', I get the following 
transcript:

/Users/bartz/Desktop/apd-1.0.1/php_apd.c: In function 
`apd_get_active_function_name':
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:305: error: 
invalid operands to binary !=
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:306: error: 
invalid type argument of `unary *'
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:312: error: 
structure has no member named `scope'
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:313: error: 
structure has no member named `scope'
/Users/bartz/Desktop/apd-1.0.1/php_apd.c: At top level:
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:470: error: 
`OnUpdateLong' undeclared here (not in a function)
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:470: error: 
initializer element is not constant
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:470: error: 
(near initialization for `ini_entries[1].on_modify')
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:470: error: 
initializer element is not constant
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:470: error: 
(near initialization for `ini_entries[1]')
/Users/bartz/Desktop/apd-1.0.1/php_apd.c:471: error: 
initializer element is not constant
/Users/bartz/Desktop/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
 [2005-08-01 09:21 UTC] ben at velvetbug dot com
I get similar on Slackware Linux 10 using Php 4.3.6

root@odie:/opt/src/apache/php-addons/apd-1.0.1# make install
/bin/sh /opt/src/apache/php-addons/apd-1.0.1/libtool --mode=compile gcc  -I. -I/opt/src/apache/php-addons/apd-1.0.1 -DPHP_ATOM_INC -I/opt/src/apache/php-addons/apd-1.0.1/include -I/opt/src/apache/php-addons/apd-1.0.1/main -I/opt/src/apache/php-addons/apd-1.0.1 -I/opt/include/php -I/opt/include/php/main -I/opt/include/php/Zend -I/opt/include/php/TSRM  -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /opt/src/apache/php-addons/apd-1.0.1/php_apd.c -o php_apd.lo 
 gcc -I. -I/opt/src/apache/php-addons/apd-1.0.1 -DPHP_ATOM_INC -I/opt/src/apache/php-addons/apd-1.0.1/include -I/opt/src/apache/php-addons/apd-1.0.1/main -I/opt/src/apache/php-addons/apd-1.0.1 -I/opt/include/php -I/opt/include/php/main -I/opt/include/php/Zend -I/opt/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /opt/src/apache/php-addons/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c: In function `apd_get_active_function_name':
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:305: error: invalid operands to binary !=
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:306: error: invalid type argument of `unary *'
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:312: error: structure has no member named `scope'
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:313: error: structure has no member named `scope'
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c: At top level:
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:470: error: `OnUpdateLong' undeclared here (not in a function)
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:470: error: initializer element is not constant
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:470: error: (near initialization for `ini_entries[1].on_modify')
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:470: error: initializer element is not constant
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:470: error: (near initialization for `ini_entries[1]')
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:471: error: initializer element is not constant
/opt/src/apache/php-addons/apd-1.0.1/php_apd.c:471: error: (near initialization for `ini_entries[2]')
make: *** [php_apd.lo] Error 1
 [2005-08-01 11:15 UTC] lyo1989 at yahoo dot ccom
same here =\
 [2005-08-01 18:12 UTC] pecl at blitzaffe dot com
I ran into this myself, and I don't think this is a bug.

While it's not explained anywhere, the 1.0.x series appears to be for PHP5.  Use the 0.9.x series for PHP4.  (You'll notice that 0.9.2 was released *after* 1.0.0, and 1.0.0 is marked in the Changelog as the "Official php5 release".)
 [2006-01-26 09:39 UTC] eamonncostello at gmail dot com
I'm running php5 and also get the same make install error:
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c: In function `apd_get_active_function_name':
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:305: error: invalid operands to binary !=
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:306: error: invalid type argument of `unary *'
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:312: error: structure has no member named `scope'
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:313: error: structure has no member named `scope'
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c: At top level:
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:470: error: `OnUpdateLong' undeclared here (not in a function)
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:470: error: initializer element is not constant
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:470: error: (near initialization for `ini_entries[1].on_modify')
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:470: error: initializer element is not constant
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:470: error: (near initialization for `ini_entries[1]')
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:471: error: initializer element is not constant
/Users/eamonncostello/builds/apd-1.0.1/php_apd.c:471: error: (near initialization for `ini_entries[2]')
make: *** [php_apd.lo] Error 1
 [2006-02-03 13:25 UTC] darnell at aycon dot com
Same thing here.

sudo pear install apd
downloading apd-1.0.1.tgz ...
Starting to download apd-1.0.1.tgz (36,643 bytes)
..........done: 36,643 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606
building in /var/tmp/pear-build-root/apd-1.0.1
running: /tmp/tmpj4NVHr/apd-1.0.1/configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend
checking for PHP extension directory... /usr/lib/php4/20050606
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable apd support... yes, shared
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
libtool.m4: error: problem compiling CXX test program
checking for g++ option to produce PIC...
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/apd-1.0.1/libtool --mode=compile gcc  -I. -I/tmp/tmpj4NVHr/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/tmpj4NVHr/apd-1.0.1 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend  -DHAVE_CONFIG_H  -g -O2   -c /tmp/tmpj4NVHr/apd-1.0.1/php_apd.c -o php_apd.lo
mkdir .libs
 gcc -I. -I/tmp/tmpj4NVHr/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/tmpj4NVHr/apd-1.0.1 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpj4NVHr/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c: In function 'apd_get_active_function_name':
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c:305: error: used struct type value where scalar is required
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c:306: error: invalid type argument of 'unary *'
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c:312: error: 'struct <anonymous>' has no member named 'scope'
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c:313: error: 'struct <anonymous>' has no member named 'scope'
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c: At top level:
/tmp/tmpj4NVHr/apd-1.0.1/php_apd.c:470: error: 'OnUpdateLong' undeclared here (not in a function)
make: *** [php_apd.lo] Error 1
`make' failed
 [2006-03-03 11:50 UTC] tnowak at triger dot com dot pl
I have the same with Linux, php 4.4.2 and gcc version 2.96
 [2006-08-23 03:37 UTC] arne at drlinux dot no
I'm trying to do "pecl install apd" on Slackware 10 with 
PHP 5.15, but get the following error after configure and 
some compiling;

/tmp/pear/cache/apd-1.0.1/php_apd.c:957: error: 
conflicting types for `onStatement'
/tmp/pear/cache/apd-1.0.1/php_apd.c:65: error: previous 
declaration of `onStatement'
make: *** [php_apd.lo] Error 1
ERROR: `make' failed
 [2006-12-07 19:01 UTC] info at nikolaionken dot com
When compiling on OS 10.4.8 and PHP 5.1.2 I get

/bin/sh /usr/local/PEAR/temp/download/apd-1.0.1/libtool --mode=compile gcc  -I. -I/usr/local/PEAR/temp/download/apd-1.0.1 -DPHP_ATOM_INC -I/usr/local/PEAR/temp/download/apd-1.0.1/include -I/usr/local/PEAR/temp/download/apd-1.0.1/main -I/usr/local/PEAR/temp/download/apd-1.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c -o php_apd.lo 
gcc -I. -I/usr/local/PEAR/temp/download/apd-1.0.1 -DPHP_ATOM_INC -I/usr/local/PEAR/temp/download/apd-1.0.1/include -I/usr/local/PEAR/temp/download/apd-1.0.1/main -I/usr/local/PEAR/temp/download/apd-1.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c  -fno-common -DPIC -o php_apd.lo
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c: In function 'apd_get_active_function_name':
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c:305: error: used struct type value where scalar is required
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c:306: error: invalid type argument of 'unary *'
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c:312: error: 'struct <anonymous>' has no member named 'scope'
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c:313: error: 'struct <anonymous>' has no member named 'scope'
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c: At top level:
/usr/local/PEAR/temp/download/apd-1.0.1/php_apd.c:470: error: 'OnUpdateLong' undeclared here (not in a function)
make: *** [php_apd.lo] Error 1

Any hints on how to deal with this one?
 [2007-01-19 10:40 UTC] sam at pageindigo dot com
same issue
OSX 10.4.8
PHP 5.2.0

   ...

n -DPIC -o .libs/php_apd.o
/private/tmp/pear/cache/apd-1.0.1/php_apd.c: In function 'trace_function_exit':
/private/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/private/tmp/pear/cache/apd-1.0.1/php_apd.c:397: error: (Each undeclared identifier is reported only once
/private/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-01-19 10:59 UTC] sam at pageindigo dot com
same result with 0.9.2
OS X 10.4.8
PHP 5.2.0
gcc 4.01

     ...

mkdir .libs
 gcc -I. -I/private/tmp/pear/cache/apd-0.9.2 -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/apd-0.9.2/include -I/private/var/tmp/pear-build-root/apd-0.9.2/main -I/private/tmp/pear/cache/apd-0.9.2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/cache/apd-0.9.2/php_apd.c  -fno-common -DPIC -o .libs/php_apd.o
/private/tmp/pear/cache/apd-0.9.2/php_apd.c: In function 'apd_get_active_function_name':
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:306: error: 'struct _zend_execute_data' has no member named 'ce'
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:307: error: 'struct _zend_execute_data' has no member named 'ce'
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:313: error: request for member 'ptr' in something not a structure or union
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:314: error: request for member 'ptr' in something not a structure or union
/private/tmp/pear/cache/apd-0.9.2/php_apd.c: In function 'trace_function_exit':
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:397: error: 'memory_limit' undeclared (first use in this function)
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:397: error: (Each undeclared identifier is reported only once
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:397: error: for each function it appears in.)
/private/tmp/pear/cache/apd-0.9.2/php_apd.c: At top level:
/private/tmp/pear/cache/apd-0.9.2/php_apd.c:470: error: 'OnUpdateInt' undeclared here (not in a function)
make: *** [php_apd.lo] Error 1
ERROR: `make' failed
 [2015-02-26 07:39 UTC] krakjoe@php.net
-Status: Assigned +Status: Suspended
 [2015-02-26 07:39 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