php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56335 installation fails when calling "pear install apc"
Submitted: 2005-02-28 01:54 UTC Modified: 2005-06-27 04:16 UTC
From: whatknows at hotmail dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.0.3 OS: Fedora Core 3
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:
Package:
Bug Type:
Summary:
From: whatknows at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-02-28 01:54 UTC] whatknows at hotmail dot com
Description:
------------
This maybe something on my machine that I am not able to identify/fix (newb status - reading GS's Adv. PHP Prog.), but the command "pear install apc" fails and produces the following output:


downloading APC-2.0.4.tar ...
Starting to download APC-2.0.4.tar (-1 bytes)
..............done: 237,568 bytes
35 source files, building
running: phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
configure.in:33: warning: underquoted definition of PHP_EXT_DIR
configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C
acinclude.m4:1915: warning: underquoted definition of PHP_TEST_BUILD
building in /var/tmp/pear-build-jed/APC-2.0.4
running: /tmp/tmpDK4nrG/APC-2.0.4/configure
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-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/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20041030
checking for re2c... exit 0;
checking for gawk... gawk
checking for APC support... yes, shared
checking for union semun... no
checking whether to enable mmap support instead of IPC shm... no
checking whether to prefer semaphore based locks... no
checking for shm_open in -lrt... yes
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++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
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 for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
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
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 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
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-jed/APC-2.0.4/libtool --mode=compile gcc  -I. -I/tmp/tmpDK4nrG/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-jed/APC-2.0.4/include -I/var/tmp/pear-build-jed/APC-2.0.4/main -I/tmp/tmpDK4nrG/APC-2.0.4 -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  -prefer-pic -c /tmp/tmpDK4nrG/APC-2.0.4/apc.c -o apc.lo
mkdir .libs
 gcc -I. -I/tmp/tmpDK4nrG/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-jed/APC-2.0.4/include -I/var/tmp/pear-build-jed/APC-2.0.4/main -I/tmp/tmpDK4nrG/APC-2.0.4 -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/tmpDK4nrG/APC-2.0.4/apc.c  -fPIC -DPIC -o .libs/apc.o
/bin/sh /var/tmp/pear-build-jed/APC-2.0.4/libtool --mode=compile gcc  -I. -I/tmp/tmpDK4nrG/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-jed/APC-2.0.4/include -I/var/tmp/pear-build-jed/APC-2.0.4/main -I/tmp/tmpDK4nrG/APC-2.0.4 -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  -prefer-pic -c /tmp/tmpDK4nrG/APC-2.0.4/apc_cache.c -o apc_cache.lo
 gcc -I. -I/tmp/tmpDK4nrG/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-jed/APC-2.0.4/include -I/var/tmp/pear-build-jed/APC-2.0.4/main -I/tmp/tmpDK4nrG/APC-2.0.4 -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/tmpDK4nrG/APC-2.0.4/apc_cache.c  -fPIC -DPIC -o .libs/apc_cache.o
/tmp/tmpDK4nrG/APC-2.0.4/apc_cache.c: In function `prevent_garbage_collection':
/tmp/tmpDK4nrG/APC-2.0.4/apc_cache.c:176: error: subscripted value is neither array nor pointer
make: *** [apc_cache.lo] Error 1
`make' failed


Reproduce code:
---------------
pear install apc

Expected result:
----------------
Successful installation.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-24 16:21 UTC] ialsharif at cscmail dot org
I have the same problem on one of my machines but not the other. It's definitely something missing on the system. I wonder what it is?
 [2005-04-08 13:26 UTC] xuefer at 21cn dot com
apc for php5 is not done yet
 [2005-06-27 04:16 UTC] rasmus@php.net
PHP5 support is now in.  Try building the CVS version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC