armon / bloomd

C network daemon for bloom filters
http://armon.github.io/bloomd
Other
1.24k stars 111 forks source link

"scons: building terminated because of errors." -Werror on MacOS 10.7 #13

Closed FGRibreau closed 11 years ago

FGRibreau commented 11 years ago
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/bloomd/networking.o -c -std=c99 -D_GNU_SOURCE -O2 -pthread -Isrc/bloomd/ -Ideps/inih/ -Ideps/libev/ -Isrc/libbloom/ src/bloomd/networking.c
gcc -o src/bloomd/conn_handler.o -c -std=c99 -D_GNU_SOURCE -Wall -Wextra -Werror -O2 -pthread -Isrc/bloomd/ -Ideps/inih/ -Ideps/libev/ -Isrc/libbloom/ src/bloomd/conn_handler.c
gcc -o src/bloomd/filter.o -c -std=c99 -D_GNU_SOURCE -Wall -Wextra -Werror -O2 -pthread -Isrc/bloomd/ -Ideps/inih/ -Ideps/libev/ -Isrc/libbloom/ src/bloomd/filter.c
cc1: warnings being treated as errors
src/bloomd/filter.c: In function 'bloomf_delete':
src/bloomd/filter.c:250: warning: passing argument 3 of 'scandir' from incompatible pointer type
src/bloomd/filter.c: In function 'discover_existing_filters':
src/bloomd/filter.c:452: warning: passing argument 3 of 'scandir' from incompatible pointer type
src/bloomd/filter.c: In function 'bloomf_sbf_callback':
src/bloomd/filter.c:596: warning: passing argument 3 of 'scandir' from incompatible pointer type
scons: *** [src/bloomd/filter.o] Error 1
scons: building terminated because of errors.

I've removed -Werror from SConstruct and it did compile.

Everything works beside that, great job!

armon commented 11 years ago

Thanks for reporting. Can you try building against the latest master? Please re-open this if it is still broken.

FGRibreau commented 11 years ago

Hi!

Yes it was against master, I tried it today (just in case) and I still got the same issue

FGRibreau commented 11 years ago

(ps: I'm not able to re-open the issue though)

armon commented 11 years ago

I will re-open the issue and find a 10.7 machine to test on. Thanks.

armon commented 11 years ago

Tested the latest version on 10.7, should build fine now!