yahoo / mdbm

MDBM a very fast memory-mapped key/value store.
BSD 3-Clause "New" or "Revised" License
992 stars 111 forks source link

fedora 22 build issue #54

Closed nareshv closed 9 years ago

nareshv commented 9 years ago
  1. git clone
[fedora@fedora22 mdbm]$ git remote -v
origin  https://github.com/yahoo/mdbm.git (fetch)
origin  https://github.com/yahoo/mdbm.git (push)
[fedora@fedora22 mdbm]$ 
  1. compile code
[fedora@fedora22 mdbm]$ make
make -C src default-make-target &&   make -C include default-make-target &&  true 
make[1]: Entering directory '/home/fedora/mdbm/src'
make -C lib default-make-target &&   make -C tools default-make-target &&   make -C test default-make-target &&   make -C scripts default-make-target &&  true 
make[2]: Entering directory '/home/fedora/mdbm/src/lib'
true 
clang -D_FILE_OFFSET_BITS=64 -DUSE_OPENSSL -DALLOW_MLOCK_RESET -DHAVE_ROBUST_PTHREADS -DHAVE_WINDOWED_MODE -DHAVE_PROC_FILESYS -g -O2 -I/usr/include -I/usr/local/include -I/home/fedora/mdbm/include -I. -Wall -fPIC -DDISABLE_TSC -Wall -pedantic  -Wno-variadic-macros -Wno-long-long -Wno-overlength-strings -Wno-format-security -Wno-unused-result -Werror -Wunreachable-code -c hash.c -o object/hash.o
hash.c:25:1: error: unused variable 'what' [-Werror,-Wunused-const-variable]
WHATSTR("@(#)hash.c 1.4");
^
/home/fedora/mdbm/include/mdbm.h:2813:51: note: expanded from macro 'WHATSTR'
#       define  WHATSTR(X)      static const char what[] = X
                                                  ^
1 error generated.
/home/fedora/mdbm/Makefile.base:168: recipe for target 'object/hash.o' failed
make[2]: *** [object/hash.o] Error 1
make[2]: Leaving directory '/home/fedora/mdbm/src/lib'
/home/fedora/mdbm/Makefile.base:99: recipe for target 'make-recursive-default-make-target' failed
make[1]: *** [make-recursive-default-make-target] Error 2
make[1]: Leaving directory '/home/fedora/mdbm/src'
/home/fedora/mdbm/Makefile.base:99: recipe for target 'make-recursive-default-make-target' failed
timrc-git commented 9 years ago

Hi Nareshv- The fc22 branch has patches for gcc, but you'll need to install gcc with (root or sudo): dnf install gcc-c++ clang has more complaints (a lot of standards issues), and I'm taking a look at those. Thanks! .timrc

timrc-git commented 9 years ago

The fc22 branch now compiles and passes tests under clang.

nareshv commented 9 years ago

Thanks. Lemme give it a try..

nareshv commented 9 years ago

build is good.