antirez/redis — Issue #232: Cannot build on cygwin: ‘SA_ONSTACK’ undeclared 
Author: marcintustin
Created: 2011-12-04 12:10:08+00:00
State: open

I'm trying to build using the 2.4.4 release on cygwin, using the unaltered makefiles. Compilation fails with:

$ make
cd src && make all
make[1]: Entering directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/src'
MAKE hiredis
make[2]: Entering directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/deps/hiredis'
make[2]: Nothing to be done for `static'.
make[2]: Leaving directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/deps/hiredis'
MAKE linenoise
make[2]: Entering directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/deps/linenoise'
make[2]: `linenoise_example' is up to date.
make[2]: Leaving directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/deps/linenoise'
MAKE hiredis
make[2]: Entering directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/deps/hiredis'
make[2]: Nothing to be done for `static'.
make[2]: Leaving directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/deps/hiredis'
LINK redis-benchmark
cc: unrecognized option '-rdynamic'
cc: unrecognized option '-pthread'
LINK redis-cli
cc: unrecognized option '-rdynamic'
cc: unrecognized option '-pthread'
CC redis.o
cc: unrecognized option '-rdynamic'
redis.c: In function ±dictSdsKeyCaseCompare²:
redis.c:274:5: warning: implicit declaration of function ±strcasecmp²
redis.c: In function ±setupSignalHandlers²:
redis.c:1794:33: error: ±SA_ONSTACK² undeclared (first use in this function)
redis.c:1794:33: note: each undeclared identifier is reported only once for each function it appears in
Makefile:193: recipe for target `redis.o' failed
make[1]: *** [redis.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Users/Marcin/Documents/oneclickcos/redis-2.4.4/src'
Makefile:6: recipe for target `all' failed
make: *** [all] Error 2