Error while compiling Redis (latest trunk) #4

gildo opened this Issue Mar 20, 2010 · 5 comments


None yet

2 participants


gildo:redis/ (master) $ make [9:49:16]
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb adlist.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb ae.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb anet.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb dict.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb redis.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb sds.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb zmalloc.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb lzf_c.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb lzf_d.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb pqsort.c
cc -c -march=k8 -O2 -pipe -g -rdynamic -ggdb zipmap.c
cc -o redis-server -march=k8 -O2 -pipe -lm -pthread -g -rdynamic -ggdb adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o
redis.o: In function rdbSaveDoubleValue':
/home/gildo/pub/redis/redis.c:3146: undefined reference to
collect2: ld returned 1 exit status
make: *** [redis-server] Error 1
gildo:redis/ (master) $ [9:49:19]


Redis requires a C99 compiler and Libc in order to compile.

Please provide more details about the compiler, operating system type and version, libc type and version.



gcc 4.4.3
libc6 2.11.1
OS: Archlinux & Ubuntu+1


doesn't compile


Sorry I don't have a clue about why your system does not export "isfinite()". It's a C99 function...


fixed executing in shell CFLAGS="-std=c99 -O3 -W" before "make"

@Hailei Hailei pushed a commit to Hailei/redis that referenced this issue Aug 29, 2014
Jonathan Leibiusky Fix for GH-4, isResourceValid should check for PONG not OK 00dedc5
@antirez antirez added a commit that referenced this issue May 10, 2016
@antirez Modules: ZSET API WIP #4. d5ecedd
@JackieXie168 JackieXie168 pushed a commit to JackieXie168/redis that referenced this issue Aug 29, 2016
@antirez Modules: ZSET API WIP #4. 8e4310e
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment