Problem Build image Honeytrrap in server local

### anyone can help me? i have problem with :

The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -tags="" -ldflags="$(go run scripts/gen-ldflags.go)" -o /go/bin/app .' returned a non-zero code: 2

i use command " docker build -t honeytrap . " and i have output like that

Step 7/16 : RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -tags="" -ldflags="$(go run scripts/gen-ldflags.go)" -o /go/bin/app .
 ---> Running in cfa095ec9539
go: downloading v1.6.0
go: downloading v0.0.0-20160211212156-b2cb9fa56473
go: downloading v0.3.0
go: downloading v1.20.0
go: downloading v1.3.1
go: downloading v0.0.3
go: downloading v1.16.0
go: downloading v0.0.0-20190410072324-219b95413db0
go: downloading v0.0.0-20170927054726-6dc17368e09b
go: extracting v0.0.0-20170927054726-6dc17368e09b
go: extracting v0.0.0-20190410072324-219b95413db0
go: extracting v0.0.3
go: extracting v1.3.1
go: downloading v1.0.4
go: extracting v0.3.0
go: extracting v0.0.0-20160211212156-b2cb9fa56473
go: downloading v0.3.3
go: downloading v0.0.0-20180915095724-ece5a7810d96
go: extracting v1.20.0
go: extracting v1.6.0
go: extracting v1.16.0
go: downloading v1.1.0
go: downloading v0.0.0-20190414201528-9ea5e4d2258f
go: downloading v1.2.1
go: extracting v1.0.4
go: extracting v1.1.0
go: extracting v0.3.3
go: downloading v0.0.0-20190311183353-d8887717615a
go: extracting v0.0.0-20180915095724-ece5a7810d96
go: downloading v0.0.0-20180114190844-15dd4b8476c9
go: extracting v1.2.1
go: extracting v0.0.0-20190414201528-9ea5e4d2258f
go: downloading v0.0.0-20180221190335-75f112d19d5a
go: downloading v0.0.0-20180227002726-94594b20babf
go: downloading v1.0.0
go: downloading v0.0.0-20190308221718-c2843e01d9a2
go: downloading v0.0.0-20180315184602-8e4aba63da9f
go: extracting v0.0.0-20180315184602-8e4aba63da9f
go: downloading v1.2.0
go: extracting v0.0.0-20190311183353-d8887717615a
go: downloading v0.0.0-20160404182456-549a10cd4091
go: downloading v5.0.65
go: extracting v1.0.0
go: extracting v0.0.0-20180221190335-75f112d19d5a
go: downloading v0.0.0-20190215142949-d0b11bdaac8a
go: downloading v0.0.0-20170604230408-02dd45c33376
go: extracting v0.0.0-20170604230408-02dd45c33376
go: downloading v1.0.0
go: extracting v0.0.0-20160404182456-549a10cd4091
go: downloading v0.0.0-20171111001504-be1fbeda1936
go: extracting v1.2.0
go: downloading v1.2.0
go: extracting v1.0.0
go: downloading v0.0.0-20190206043414-8bfc7677f583
go: extracting v1.2.0
go: downloading v0.0.0-20171031012212-54320fe9f6f3
go: extracting v0.0.0-20171111001504-be1fbeda1936
go: downloading v1.1.14
go: extracting v0.0.0-20171031012212-54320fe9f6f3
go: downloading v0.0.9
go: extracting v0.0.0-20190206043414-8bfc7677f583
go: downloading v1.0.0
go: extracting v0.0.9
go: downloading v1.1.0
go: extracting v1.0.0
go: downloading v0.0.0-20160307192209-c9c836c1a3cd
go: extracting v1.1.14
go: extracting v0.0.0-20190215142949-d0b11bdaac8a
go: downloading v0.0.0-20160609142408-bb955e01b934
go: extracting v1.1.0
go: downloading v0.0.0-20170511165959-379148ca0225
go: extracting v5.0.65
go: downloading v0.0.0-20171120080333-32fa128f234d
go: extracting v0.0.0-20160609142408-bb955e01b934
go: extracting v0.0.0-20170511165959-379148ca0225
go: extracting v0.0.0-20160307192209-c9c836c1a3cd
go: downloading v0.0.0-20170215233205-553a64147049
go: extracting v0.0.0-20171120080333-32fa128f234d
go: downloading v0.0.0-20180125231941-8732c616f529
go: downloading v0.0.0-20171218195038-2fcda4cb7018
go: extracting v0.0.0-20190308221718-c2843e01d9a2
go: downloading v0.8.0
go: extracting v0.0.0-20180227002726-94594b20babf
go: downloading v0.0.0-20180109070241-2de33835d102
go: downloading v0.0.0-20180202184318-bbd03ef6da3a
go: downloading v0.0.0-20170702084017-28f7e881ca57
go: extracting v0.0.0-20170215233205-553a64147049
go: extracting v0.0.0-20180125231941-8732c616f529
go: extracting v0.0.0-20170702084017-28f7e881ca57
go: extracting v0.0.0-20180109070241-2de33835d102
go: extracting v0.8.0
go: extracting v0.0.0-20180202184318-bbd03ef6da3a
go: extracting v0.0.0-20180114190844-15dd4b8476c9
go: downloading v0.0.0-20171206114618-43f0c284a7f9
go: extracting v0.0.0-20171206114618-43f0c284a7f9
go: extracting v0.0.0-20171218195038-2fcda4cb7018
go: downloading v0.1.1
go: extracting v0.1.1
go: finding v1.6.0
go: finding v0.0.9
go: finding v1.20.0
go: finding v0.0.3
go: finding v0.3.0
go: finding v0.0.0-20180915095724-ece5a7810d96
go: finding v0.0.0-20160211212156-b2cb9fa56473
go: finding v1.3.1
go: finding v0.0.0-20180227002726-94594b20babf
go: finding v1.0.4
go: finding v0.0.0-20170604230408-02dd45c33376
go: finding v0.0.0-20180202184318-bbd03ef6da3a
go: finding v0.8.0
go: finding v0.0.0-20190414201528-9ea5e4d2258f
go: finding v0.0.0-20190215142949-d0b11bdaac8a
go: finding v0.0.0-20170927054726-6dc17368e09b
go: finding v0.0.0-20170702084017-28f7e881ca57
go: finding v0.0.0-20171031012212-54320fe9f6f3
go: finding v0.0.0-20180109070241-2de33835d102
go: finding v1.1.14
go: finding v0.0.0-20190311183353-d8887717615a
go: finding v0.0.0-20160404182456-549a10cd4091
go: finding v0.0.0-20180221190335-75f112d19d5a
go: finding v0.0.0-20190410072324-219b95413db0
go: finding v1.16.0
go: finding v0.0.0-20180114190844-15dd4b8476c9
go: finding v1.0.0
go: finding v0.0.0-20171206114618-43f0c284a7f9
go: finding v1.2.0
go: finding v0.0.0-20190308221718-c2843e01d9a2
go: finding v5.0.65
go: finding v1.0.0
go: finding v1.2.0
go: finding v1.2.1
go: finding v0.0.0-20171111001504-be1fbeda1936
go: finding v0.3.3
go: finding v0.0.0-20171120080333-32fa128f234d
go: finding v0.0.0-20180315184602-8e4aba63da9f
go: finding v1.1.0
go: finding v1.0.0
go: finding v0.0.0-20160609142408-bb955e01b934
go: finding v0.0.0-20170215233205-553a64147049
go: finding v1.1.0
go: finding v0.0.0-20171218195038-2fcda4cb7018
go: finding v0.0.0-20180125231941-8732c616f529
go: finding v0.1.1
go: finding v0.0.0-20160307192209-c9c836c1a3cd
go: finding v0.0.0-20170511165959-379148ca0225
go: finding v0.0.0-20190206043414-8bfc7677f583
/go/pkg/mod/ undefined: tcpip.StdClock
/go/pkg/mod/ undefined: BlockingPoll
/go/pkg/mod/ undefined: BlockingPoll
/go/pkg/mod/ undefined: BlockingPoll
The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -tags="" -ldflags="$(go run scripts/gen-ldflags.go)" -o /go/bin/app .' returned a non-zero code: 2

It seems is behind google netstack.

Couldn’t find BlockingPoll in honeytrap netstack repo

/go/pkg/mod/ undefined: BlockingPoll

1 Like

So, what should I do? can you explain?

I think you will get better answer if you ask this question to honeytrap or use google netstack. I don’t have answer for that, sorry.

1 Like

oke thankyou for helping and information