snehac-miner / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

make fails with c errors #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

  benh@noodleboy redis (master)$ make clean
rm -rf redis-server redis-benchmark redis-cli *.o
  benh@noodleboy redis (master)$ git pull origin master
From git://github.com/antirez/redis
 * branch            master     -> FETCH_HEAD
Already up-to-date.
  benh@noodleboy redis (master)$ make
cc -c -std=c99 -pedantic -O2 -Wall -W  -g -rdynamic -ggdb   adlist.c
cc -c -std=c99 -pedantic -O2 -Wall -W  -g -rdynamic -ggdb   ae.c
cc -c -std=c99 -pedantic -O2 -Wall -W  -g -rdynamic -ggdb   anet.c
cc -c -std=c99 -pedantic -O2 -Wall -W  -g -rdynamic -ggdb   dict.c
cc -c -std=c99 -pedantic -O2 -Wall -W  -g -rdynamic -ggdb   redis.c
redis.c: In function ‘feedAppendOnlyFile’:
redis.c:1728: warning: comparison between signed and unsigned
redis.c: In function ‘acceptHandler’:
redis.c:1964: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
In function ‘open’,
    inlined from ‘initServer’ at redis.c:1107,
    inlined from ‘main’ at redis.c:5662:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ 
declared with attribute error: open with O_CREAT in second argument 
needs 3 arguments
make: *** [redis.o] Error 1
  benh@noodleboy redis (master)$ git log --oneline -10
4e141d5 append only mode is now able to translate EXPIRE into EXPIREAT 
transparently
0154acd appendfsync is now set to NO by default
48f0308 support for appendonly mode no, always, everysec
16f9254 first fix for append only mode
44b38ef Initial implementation of append-only mode. Loading still not 
implemented.
43e5ccd EXPIRE behaviour changed a bit, a negative TTL or an EXPIREAT 
with unix time in the past will now delete the key. It seems saner to me than 
doing nothing.
802e837 EXPIREAT implemented, will be useful for the append-only mode
fa4c0ab Fixed Issue 74 (ERR just returned on invalid password), now the 
error message is -ERR invalid password.
4aa701c Fixed issue 72 (SLAVEOF shutdowns redis-server on malformed 
reply)
6c9385e Fixed issue 77 (Incorrect time in log files) thanks to youwantalex

What is the expected output? What do you see instead?

make to succeed, and redis-server to build, instead I am getting errors that 
halt the ability to build redis-server.

What version of the product are you using? On what operating system?

  benh@noodleboy redis (master)$ uname -a
Linux noodleboy 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 
UTC 2009 i686 GNU/Linux
  benh@noodleboy redis (master)$ gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.

Please provide any additional information below.

If there are any further questions please contact me via email at 
ben.hengst@gmail

Original issue reported on code.google.com by ben.hen...@gmail.com on 30 Oct 2009 at 8:10

GoogleCodeExporter commented 8 years ago
fixed thanks for reporting

Original comment by anti...@gmail.com on 31 Oct 2009 at 10:04