Skip to content

Instantly share code, notes, and snippets.

@d2s
Created March 31, 2012 19:58
Show Gist options
  • Save d2s/2267903 to your computer and use it in GitHub Desktop.
Save d2s/2267903 to your computer and use it in GitHub Desktop.
Install error: brew install redis-php
ada:~ d2s$ brew install redis-php
==> Downloading https://github.com/nicolasff/phpredis/tarball/2.1.3
Already downloaded: /Users/d2s/Library/Caches/Homebrew/redis-php-2.1.3.tgz
==> phpize
==> ./configure --prefix=/usr/local/Cellar/redis-php/2.1.3
==> make
/bin/sh /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/libtool --mode=compile /usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=native -Qunused-arguments -c /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c -o redis.lo
/bin/sh /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/libtool --mode=compile /usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=native -Qunused-arguments -c /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/library.c -o library.lo
mkdir .libs
/usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=native -Qunused-arguments -c /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/library.c -fno-common -DPIC -o .libs/library.o
/usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=native -Qunused-arguments -c /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c -fno-common -DPIC -o .libs/redis.o
/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c:1933:9: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type]
WRONG_PARAM_COUNT;
^
/usr/local/Cellar/php/5.3.10/include/php/Zend/zend_API.h:331:31: note: expanded from macro 'WRONG_PARAM_COUNT'
#define WRONG_PARAM_COUNT ZEND_WRONG_PARAM_COUNT()
^
/usr/local/Cellar/php/5.3.10/include/php/Zend/zend_API.h:335:74: note: expanded from macro 'ZEND_WRONG_PARAM_COUNT'
#define ZEND_WRONG_PARAM_COUNT() { zend_wrong_param_count(TSRMLS_C); return; }
^
/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c:1934:9: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type]
RETURN_FALSE;
^
/usr/local/Cellar/php/5.3.10/include/php/Zend/zend_API.h:600:44: note: expanded from macro 'RETURN_FALSE'
#define RETURN_FALSE { RETVAL_FALSE; return; }
^
/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c:1939:9: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type]
RETURN_FALSE;
^
/usr/local/Cellar/php/5.3.10/include/php/Zend/zend_API.h:600:44: note: expanded from macro 'RETURN_FALSE'
#define RETURN_FALSE { RETVAL_FALSE; return; }
^
/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c:2086:5: error: non-void function 'generic_multiple_args_cmd' should return a value [-Wreturn-type]
REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
^
./common.h:113:3: note: expanded from macro 'REDIS_PROCESS_REQUEST'
SOCKET_WRITE_COMMAND(redis_sock, cmd, cmd_len); \
^
./common.h:80:5: note: expanded from macro 'SOCKET_WRITE_COMMAND'
RETURN_FALSE; \
^
/usr/local/Cellar/php/5.3.10/include/php/Zend/zend_API.h:600:44: note: expanded from macro 'RETURN_FALSE'
#define RETURN_FALSE { RETVAL_FALSE; return; }
^
/bin/sh /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/libtool --mode=compile /usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=native -Qunused-arguments -c /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis_session.c -o redis_session.lo
/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis.c:4038:2: error: non-void function 'generic_hash_command_1' should return a value [-Wreturn-type]
REDIS_PROCESS_REQUEST(redis_sock, cmd, cmd_len);
^
./common.h:113:3: note: expanded from macro 'REDIS_PROCESS_REQUEST'
SOCKET_WRITE_COMMAND(redis_sock, cmd, cmd_len); \
^
./common.h:80:5: note: expanded from macro 'SOCKET_WRITE_COMMAND'
RETURN_FALSE; \
^
/usr/local/Cellar/php/5.3.10/include/php/Zend/zend_API.h:600:44: note: expanded from macro 'RETURN_FALSE'
#define RETURN_FALSE { RETVAL_FALSE; return; }
^
5 errors generated.
make: *** [redis.lo] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/clang -I. -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -DPHP_ATOM_INC -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/include -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/main -I/private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590 -I/usr/local/Cellar/php/5.3.10/include/php -I/usr/local/Cellar/php/5.3.10/include/php/main -I/usr/local/Cellar/php/5.3.10/include/php/TSRM -I/usr/local/Cellar/php/5.3.10/include/php/Zend -I/usr/local/Cellar/php/5.3.10/include/php/ext -I/usr/local/Cellar/php/5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -Os -w -pipe -march=native -Qunused-arguments -c /private/tmp/homebrew-redis-php-2.1.3-pyGo/nicolasff-phpredis-43bc590/redis_session.c -fno-common -DPIC -o .libs/redis_session.o
config.log was copied to /Users/d2s/Library/Logs/Homebrew
==> Build Environment
CPU: dual-core 64-bit core2
MacOS: 10.7.3-x86_64
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j2
Error: Failed executing: make (redis-php.rb:14)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/josegonzalez/homebrew-php/issues/new
@gamafranco
Copy link

Hi,

Were you able to fix this? I'm getting the same error.

Thanks

@electblake
Copy link

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment