ook-decoder
ook-decoder copied to clipboard
make error in kali rolling edition
~/Downloads/ook-decoder# make cc -std=c99 -Wall -Werror -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE=1 -D_DARWIN_C_SOURCE=1 -g -O0 -pg -ffast-math -MMD -c -o ookd.o ookd.c In file included from /usr/include/ctype.h:25:0, from /usr/include/getopt.h:33, from ookd.c:1: /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
Changed _BSD_SOURCE to -D_DEFAULT_SOURCE in makefile and now receive.
cc -std=c99 -Wall -Werror -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE=1 -g -O0 -pg -ffast-math -MMD -c -o nexa.o nexa.c
cc -std=c99 -Wall -Werror -D_POSIX_C_SOURCE=200112L -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE=1 -g -O0 -pg -ffast-math -MMD nexa.o ook.o -lm -o nexa
( cd go ; GOPATH=pwd
go install ooklog )
/bin/sh: 1: go: not found
Makefile:46: recipe for target 'go/bin/ooklog' failed
make: *** [go/bin/ooklog] Error 127
I got same error with RPi 2, after installed golang I get "function ends without a return statement" and have no idea what next...
root@RPi2:~/ook-decoder# make
( cd go ; GOPATH=pwd
go install ooklog )
ook
src/ook/bitstream.go:14: function ends without a return statement src/ook/quantify.go:29: function ends without a return statement Makefile:47: recipe for target 'go/bin/ooklog' failed make: *** [go/bin/ooklog] Error 2
Seems that i'm using too old go package, going to test newer. https://groups.google.com/forum/#!topic/golang-nuts/gDH1vB0nFHc