ook-decoder icon indicating copy to clipboard operation
ook-decoder copied to clipboard

make error in kali rolling edition

Open vsboost opened this issue 8 years ago • 3 comments

~/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 : recipe for target 'ookd.o' failed make: *** [ookd.o] Error 1

vsboost avatar Apr 01 '16 02:04 vsboost

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

vsboost avatar Apr 01 '16 02:04 vsboost

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

mf2hd avatar Nov 05 '16 16:11 mf2hd

Seems that i'm using too old go package, going to test newer. https://groups.google.com/forum/#!topic/golang-nuts/gDH1vB0nFHc

mf2hd avatar Nov 05 '16 16:11 mf2hd