mloughran/em-hiredis — Issue #15: Please update gem dependency: hiredis
Author: bry4n
Created: 2012-02-20 00:22:07+00:00
State: open

I was installing [faye](https://github.com/faye/faye) gem, but compiling failed.

gem install hiredis -v 0.3.2

```
Building native extensions. This could take a while...
ERROR: Error installing hiredis:
ERROR: Failed to build gem native extension.

/Users/bryann83/.rbenv/versions/ree-1.8.7-2011.03/bin/ruby extconf.rb
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -arch i386 -arch x86_64 -g -ggdb net.c
clang: warning: argument unused during compilation: '-ggdb'
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -arch i386 -arch x86_64 -g -ggdb hiredis.c
clang: warning: argument unused during compilation: '-ggdb'
hiredis.c:797:31: error: second argument to 'va_arg' is of incomplete type 'void'
va_arg(ap,void);
~~~~~~~~~~^~~~~
/usr/bin/../lib/clang/3.1/include/stdarg.h:35:50: note: expanded from macro 'va_arg'
#define va_arg(ap, type) __builtin_va_arg(ap, type)
^
1 error generated.
make: *** [hiredis.o] Error 1
creating Makefile
```
details:

ruby -v

`ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.3.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03`

brew info redis

```
redis 2.4.7
http://redis.io/
/usr/local/Cellar/redis/2.4.7 (9 files, 464K)
```

installed hiredis [v0.4.4](http://rubygems.org/gems/hiredis/versions/0.4.4) without no problem, but latest Faye is using `>= em-hiredis v0.0.1` and em-hiredis is currently using `= hiredis 0.3.2`

I was not sure if ruby ree-1.8.7 is causing this, but work project is using ree-1.8.7 :-\