Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm64 build failed #302

Open
zalexdev opened this issue Oct 26, 2021 · 6 comments
Open

Arm64 build failed #302

zalexdev opened this issue Oct 26, 2021 · 6 comments

Comments

@zalexdev
Copy link

Hi again)
Can`t compile now for arm64. For amd64 everything ok, but if i try:
env GOOS=android GOARCH=arm64 go build -o radar2

Getting this:

github.com/Ullaakut/cameradar/v5
../../attack.go:202:15: undefined: curl.OPT_URL
../../attack.go:204:15: undefined: curl.OPT_RTSP_STREAM_URI
../../attack.go:205:15: undefined: curl.OPT_RTSP_REQUEST
../../attack.go:214:29: undefined: curl.INFO_HTTPAUTH_AVAIL
../../attack.go:242:15: undefined: curl.OPT_HTTPAUTH
../../attack.go:243:15: undefined: curl.OPT_USERPWD
../../attack.go:246:15: undefined: curl.OPT_URL
../../attack.go:248:15: undefined: curl.OPT_RTSP_STREAM_URI
../../curl.go:12:15: undefined: curl.CurlInfo
../../curl.go:19:2: undefined: curl.CURL
../../attack.go:248:15: too many errors

Any solutions?

@Ullaakut
Copy link
Owner

Hi @zalexdev, thanks for opening this issue.

It seems like an issue with the curl dependency. A similar issue has been reported here.

I'm not sure why it would happen on the ARM architecture all of a sudden since it used to work fine, and unfortunately I cannot reproduce this issue since none of my machines run ARM archs.

@Ullaakut Ullaakut added the bug label Oct 27, 2021
@zalexdev
Copy link
Author

Don't know how it works, but if i build in arm64 device with just go install or go build -o cameradar, it works fine

@zalexdev
Copy link
Author

For reproducing this issue you don't need for arm64 device, just run command in any machine with go installed from my first message

@Robin6464
Copy link

Robin6464 commented Oct 27, 2021

for me on android arm64 (philips s318 android 7) and aarch64 (xiaomi mi 10 android 10) everything works fine

#299

@samibourouis
Copy link

samibourouis commented May 14, 2022

I have also build issue with AMD and ARM arch

#15 [build-env 6/6] RUN go build -o cameradar
#15 1.820 go: downloading github.com/Ullaakut/disgo v0.3.1
#15 1.827 go: downloading github.com/spf13/viper v1.4.0
#15 1.828 go: downloading github.com/spf13/pflag v1.0.3
#15 2.045 go: downloading github.com/Ullaakut/go-curl v0.0.0-20190525093431-597e157bbffd
#15 2.053 go: downloading github.com/Ullaakut/nmap v2.0.0+incompatible
#15 2.357 go: downloading github.com/fsnotify/fsnotify v1.4.7
#15 2.418 go: downloading github.com/hashicorp/hcl v1.0.0
#15 2.626 go: downloading github.com/magiconair/properties v1.8.0
#15 2.627 go: downloading github.com/mitchellh/mapstructure v1.1.2
#15 2.686 go: downloading github.com/pelletier/go-toml v1.2.0
#15 2.732 go: downloading github.com/spf13/afero v1.1.2
#15 2.847 go: downloading github.com/spf13/cast v1.3.0
#15 2.864 go: downloading github.com/spf13/jwalterweatherman v1.0.0
#15 2.878 go: downloading gopkg.in/yaml.v2 v2.2.2
#15 3.100 go: downloading golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223
#15 3.137 go: downloading golang.org/x/text v0.3.0
#15 3.545 go: downloading github.com/fatih/color v1.7.0
#15 3.999 go: downloading github.com/mattn/go-colorable v0.1.2
#15 4.156 go: downloading github.com/mattn/go-isatty v0.0.8
#15 11.00 error obtaining VCS status: exit status 128
#15 11.00 	Use -buildvcs=false to disable VCS stamping.
#15 ERROR: process "/bin/sh -c go build -o cameradar" did not complete successfully: exit code: 1

@Ullaakut
Copy link
Owner

@samibourouis Hi! Did you try using the -buildvcs=false option?

@Ullaakut Ullaakut added possible bug and removed bug labels May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants