Subject: | error compiling on Mac OSX |
Date: | Sat, 11 Feb 2012 13:14:27 +0400 |
To: | bug-Redis-hiredis [...] rt.cpan.org |
From: | Eugene Toropov <eugene.toropov [...] gmail.com> |
Greetings,
I upgraded to the latest Mac OSX and came across an error installing Redis::hiredis:
Checking if your kit is complete...
Looks good
Writing Makefile for Redis::hiredis
Writing MYMETA.yml and MYMETA.json
cp hiredis.pm blib/lib/Redis/hiredis.pm
/opt/local/bin/perl /opt/local/lib/perl5/5.14.1/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.14.1/ExtUtils/typemap -typemap typemap hiredis.xs > hiredis.xsc && mv hiredis.xsc hiredis.c
Please specify prototyping behavior for hiredis.xs (see perlxs manual)
/Developer/usr/bin/clang -c -pipe -O2 -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3 -DVERSION=\"0.9.2.6\" -DXS_VERSION=\"0.9.2.6\" "-I/opt/local/lib/perl5/5.14.1/darwin-thread-multi-2level/CORE" hiredis.c
/Developer/usr/bin/clang -c -pipe -O2 -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3 -DVERSION=\"0.9.2.6\" -DXS_VERSION=\"0.9.2.6\" "-I/opt/local/lib/perl5/5.14.1/darwin-thread-multi-2level/CORE" lib-hiredis.c
lib-hiredis.c:696:21: error: second argument to 'va_arg' is of incomplete type 'void'
va_arg(ap,void);
^~~~~~~~~~~~~~~
/Developer/usr/bin/../lib/clang/3.0/include/stdarg.h:35:50: note: instantiated from:
#define va_arg(ap, type) __builtin_va_arg(ap, type)
^
lib-hiredis.c:696:31: note: instantiated from:
va_arg(ap,void);
^~~~
1 error generated.
make: *** [lib-hiredis.o] Error 1
NEOPHENIX/Redis-hiredis-0.9.2.6.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
NEOPHENIX/Redis-hiredis-0.9.2.6.tar.gz : make NO
As far as I can see the issue has been fixed already: https://github.com/antirez/hiredis/issues/53
Would you please include the fix into Redis::hiredis distribution.
Cheers
Eugene