Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

php5.4.8 compile error when --enable-maintainer-zts #277

Open
cuber opened this Issue · 1 comment

2 participants

@cuber

I have used brew to install redis.
Here is the error output!

brew install php54-redis -v
==> Downloading https://github.com/nicolasff/phpredis/tarball/2.2.2
Already downloaded: /Library/Caches/Homebrew/php54-redis-2.2.2.tgz
/usr/bin/tar xf /Library/Caches/Homebrew/php54-redis-2.2.2.tgz
==> /usr/local/Cellar/php54/5.4.8/bin/phpize
/usr/local/Cellar/php54/5.4.8/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
==> ./configure --prefix=/usr/local/Cellar/php54-redis/2.2.2 --with-php-config=/usr/local/Cellar/php54/5.4.8/bin/php-config
./configure --prefix=/usr/local/Cellar/php54-redis/2.2.2 --with-php-config=/usr/local/Cellar/php54/5.4.8/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin11.4.2
checking host system type... i386-apple-darwin11.4.2
checking target system type... i386-apple-darwin11.4.2
checking for PHP prefix... /usr/local/Cellar/php54/5.4.8
checking for PHP includes... -I/usr/local/Cellar/php54/5.4.8/include/php -I/usr/local/Cellar/php54/5.4.8/include/php/main -I/usr/local/Cellar/php54/5.4.8/include/php/TSRM -I/usr/local/Cellar/php54/5.4.8/include/php/Zend -I/usr/local/Cellar/php54/5.4.8/include/php/ext -I/usr/local/Cellar/php54/5.4.8/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php54/5.4.8/lib/php/extensions/no-debug-zts-20100525
checking for PHP installed headers prefix... /usr/local/Cellar/php54/5.4.8/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable redis support... yes, shared
checking whether to enable sessions... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.4.2 dyld
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

creating libtool
appending configuration tag "CXX" to libtool
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... no
checking for c++ option to produce PIC...
checking if c++ static flag works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... darwin11.4.2 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
==> make
make
/bin/sh /private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/libtool --mode=compile cc -I. -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -DPHP_ATOM_INC -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/include -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/main -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -I/usr/local/Cellar/php54/5.4.8/include/php -I/usr/local/Cellar/php54/5.4.8/include/php/main -I/usr/local/Cellar/php54/5.4.8/include/php/TSRM -I/usr/local/Cellar/php54/5.4.8/include/php/Zend -I/usr/local/Cellar/php54/5.4.8/include/php/ext -I/usr/local/Cellar/php54/5.4.8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/redis.c -o redis.lo
/bin/sh /private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/libtool --mode=compile cc -I. -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -DPHP_ATOM_INC -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/include -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/main -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -I/usr/local/Cellar/php54/5.4.8/include/php -I/usr/local/Cellar/php54/5.4.8/include/php/main -I/usr/local/Cellar/php54/5.4.8/include/php/TSRM -I/usr/local/Cellar/php54/5.4.8/include/php/Zend -I/usr/local/Cellar/php54/5.4.8/include/php/ext -I/usr/local/Cellar/php54/5.4.8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/library.c -o library.lo
mkdir .libs
cc -I. -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -DPHP_ATOM_INC -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/include -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/main -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -I/usr/local/Cellar/php54/5.4.8/include/php -I/usr/local/Cellar/php54/5.4.8/include/php/main -I/usr/local/Cellar/php54/5.4.8/include/php/TSRM -I/usr/local/Cellar/php54/5.4.8/include/php/Zend -I/usr/local/Cellar/php54/5.4.8/include/php/ext -I/usr/local/Cellar/php54/5.4.8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/redis.c -fno-common -DPIC -o .libs/redis.o
cc -I. -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -DPHP_ATOM_INC -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/include -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/main -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -I/usr/local/Cellar/php54/5.4.8/include/php -I/usr/local/Cellar/php54/5.4.8/include/php/main -I/usr/local/Cellar/php54/5.4.8/include/php/TSRM -I/usr/local/Cellar/php54/5.4.8/include/php/Zend -I/usr/local/Cellar/php54/5.4.8/include/php/ext -I/usr/local/Cellar/php54/5.4.8/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/library.c -fno-common -DPIC -o .libs/library.o
brew: superenv removed: -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -g -O2
brew: superenv removed: -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -I/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f -g -O2
/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/library.c:44:46: error: too few arguments to function call,
expected 2, have 1
redis_stream_close(redis_sock);
~~~~~~~~~~~~~~~~~~ ^
/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/library.c:24:1: note: 'redis_stream_close' declared here
PHPAPI void redis_stream_close(RedisSock *redis_sock TSRMLS_DC) {
^
/usr/local/Cellar/php54/5.4.8/include/php/main/php.h:59:18: note: expanded from macro 'PHPAPI'

define PHPAPI attribute ((visibility("default")))

                          ^

/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/library.c:54:42: error: too few arguments to function call,
expected 2, have 1
redis_stream_close(redis_sock);
~~~~~~~~~~~~~~~~~~ ^
/private/tmp/php54-redis-XrH9/nicolasff-phpredis-4197a7f/library.c:24:1: note: 'redis_stream_close' declared here
PHPAPI void redis_stream_close(RedisSock *redis_sock TSRMLS_DC) {
^
/usr/local/Cellar/php54/5.4.8/include/php/main/php.h:59:18: note: expanded from macro 'PHPAPI'

define PHPAPI attribute ((visibility("default")))

                          ^

2 errors generated.
make: *** [library.lo] Error 1
make: *** Waiting for unfinished jobs....
==> Configuration
HOMEBREW_VERSION: 0.9.3
HEAD: 2e65c80404467a7135732da404bf741517bc9069
CPU: dual-core 64-bit core2
OS X: 10.7.5-x86_64
Xcode: 4.5.2
CLT: 1.0.0.9000000000.1.1249367152
X11: 2.6.4 => /usr/X11
==> ENV
CC: cc
CXX: c++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/autoconf:/usr/local/opt/curl:/usr/local/opt/freetype:/usr/local/opt/gettext:/usr/local/opt/libpng:/usr/local/opt/libxml2:/usr/local/opt/zlib:/usr/local
CMAKE_INCLUDE_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:/usr/local/lib/pkgconfig
ACLOCAL_PATH: /usr/local/opt/freetype/share/aclocal:/usr/local/opt/gettext/share/aclocal:/usr/local/opt/libxml2/share/aclocal:/usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/autoconf/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/curl/bin:/usr/local/opt/freetype/bin:/usr/local/opt/gettext/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libpng/bin:/usr/local/opt/libxml2/bin:/usr/local/opt/mcrypt/bin:/usr/local/opt/php54/bin:/usr/local/opt/python/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: php54-redis did not build
Logs: /Users/Coffee/Library/Logs/Homebrew/php54-redis/config.log

@nicolasff
Owner

Hello,

Could you please try again on the "master" branch?
All calls to redis_stream_close now have TSRMLS_CC, which should fix the problem.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.