[nycphp-talk] APC and PHP5
Flavio daCosta
nyphp at n0p.net
Sun Apr 24 02:32:42 EDT 2005
Anyone know if APC (2.0.4 Latest..) works in PHP5 (5.0.4 Linux)?
Never had a problem in PHP4 but getting an errors doing a 'pear install
APC' in PHP5.
Just wondering if I should recheck my PHP5 install, or if it's just not
5 ready.
Thanks
Flavio
-------------- next part --------------
[]$ s pear install APC
downloading APC-2.0.4.tgz ...
Starting to download APC-2.0.4.tgz (44,606 bytes)
............done: 44,606 bytes
35 source files, building
running: phpize
Configuring for:
PHP Api Version: 20031224
Zend Module Api No: 20041030
Zend Extension Api No: 220040412
building in /var/tmp/pear-build-root/APC-2.0.4
running: /tmp/tmp8XMR0E/APC-2.0.4/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/php5 -I/usr/include/php5/main -I/usr /include/php5/TSRM -I/usr/include/php5/Zend
checking for PHP extension directory... /usr/lib/php5/20041030
checking for re2c... re2c
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 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 for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -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 ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/APC-2.0.4/libtool --mode=compile gcc -I. -I/tm p/tmp8XMR0E/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-2.0.4/includ e -I/var/tmp/pear-build-root/APC-2.0.4/main -I/tmp/tmp8XMR0E/APC-2.0.4 -I/usr/in clude/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5 /Zend -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8XMR0E/APC-2.0.4/apc.c -o apc.lo
gcc -I. -I/tmp/tmp8XMR0E/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC -2.0.4/include -I/var/tmp/pear-build-root/APC-2.0.4/main -I/tmp/tmp8XMR0E/APC-2. 0.4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr /include/php5/Zend -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8XMR0E/APC-2.0.4/apc.c -fP IC -DPIC -o apc.lo
/bin/sh /var/tmp/pear-build-root/APC-2.0.4/libtool --mode=compile gcc -I. -I/tm p/tmp8XMR0E/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-2.0.4/includ e -I/var/tmp/pear-build-root/APC-2.0.4/main -I/tmp/tmp8XMR0E/APC-2.0.4 -I/usr/in clude/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5 /Zend -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8XMR0E/APC-2.0.4/apc_cache.c -o apc_ cache.lo
gcc -I. -I/tmp/tmp8XMR0E/APC-2.0.4 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC -2.0.4/include -I/var/tmp/pear-build-root/APC-2.0.4/main -I/tmp/tmp8XMR0E/APC-2. 0.4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr /include/php5/Zend -DHAVE_CONFIG_H -g -O2 -c /tmp/tmp8XMR0E/APC-2.0.4/apc_cache. c -fPIC -DPIC -o apc_cache.lo
/tmp/tmp8XMR0E/APC-2.0.4/apc_cache.c: In function `prevent_garbage_collection':
/tmp/tmp8XMR0E/APC-2.0.4/apc_cache.c:176: error: subscripted value is neither ar ray nor pointer
make: *** [apc_cache.lo] Error 1
`make' failed
[]$
More information about the talk
mailing list