Ullaakut / cameradar

Cameradar hacks its way into RTSP videosurveillance cameras
MIT License
4.05k stars 513 forks source link

Docker build fails due to: `#error your version is TOOOOOOOO low` #323

Closed anoduck closed 1 year ago

anoduck commented 1 year ago

Context

Please select one:

Please select one:

Environment

My operating system:

OS version: Kali Linux Rolling Release OS architecture: AMD64

Issue

What was expected

I never know what to write here, because the answer is always obviously, “I expected it to work”.

What happened

After assuming building the docker image from the master repository would provide a more up-to-date version of the program, I proceeded to clone the repository and build the image.

Build of docker image from master repository failed due to a go-lang dependency requirement being too low.

Logs

If your issue is with Cameradar's binary or docker image, please run it with -v to print verbose logs, and paste them here:

(...)
Executing busybox-1.36.0-r9.trigger
OK: 189 MiB in 53 packages
Removing intermediate container c01c3ee594fa
 ---> bcf0fbbebde5
Step 5/16 : ENV GO111MODULE=on
 ---> Running in 7214a40f2623
Removing intermediate container 7214a40f2623
 ---> 81f3f2c5c4a2
Step 6/16 : RUN go version
 ---> Running in 14701730ed6e
go version go1.20.4 linux/amd64
Removing intermediate container 14701730ed6e
 ---> eb47714bb364
Step 7/16 : RUN go build -o cameradar
 ---> Running in e27e1c6405e1
go: downloading github.com/Ullaakut/disgo v0.3.1
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/spf13/viper v1.4.0
go: downloading github.com/Ullaakut/go-curl v0.0.0-20190525093431-597e157bbffd
go: downloading github.com/Ullaakut/nmap v2.0.0+incompatible
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/mattn/go-colorable v0.1.2
go: downloading github.com/mattn/go-isatty v0.0.8
go: downloading golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223
go: downloading golang.org/x/text v0.3.0
# github.com/Ullaakut/go-curl
In file included from /go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:423:2: error: #error your version is TOOOOOOOO low
  423 | #error your version is TOOOOOOOO low
      |  ^~~~~
The command '/bin/sh -c go build -o cameradar' returned a non-zero code: 1

It appears the dependency version needs to be updated to a more recent release.

Ullaakut commented 1 year ago

Duplicate of #320

anoduck commented 1 year ago

Thanks...