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

Problem trying to update to the latest version from the Manjaro/Arch AUR. #820

Closed
tuqueque opened this issue Jan 26, 2023 · 2 comments
Closed

Comments

@tuqueque
Copy link

Hello, I don't kno if this is a problem with the AUR version, with my system or if it's really a bug, I'm sure you'll let me know... But I'm getting an error when trying to update my Opensnitch to the latest AUR version...

==> Starting build()...
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.26.0
# github.com/golang/protobuf/protoc-gen-go
loadinternal: cannot find runtime/cgo
go: downloading google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0
go: downloading google.golang.org/grpc v1.52.3
go: downloading google.golang.org/protobuf v1.27.1
# google.golang.org/grpc/cmd/protoc-gen-go-grpc
loadinternal: cannot find runtime/cgo
protoc-gen-go: /home/user/.cache/yay/opensnitch/src/gopath/bin/protoc-gen-go
protoc-gen-go-grpc: /home/user/.cache/yay/opensnitch/src/gopath/bin/protoc-gen-go-grpc
~/.cache/yay/opensnitch/src/opensnitch-1.5.3/proto ~/.cache/yay/opensnitch/src/opensnitch-1.5.3
protoc -I. ui.proto --go_out=../daemon/ui/protocol/ --go-grpc_out=../daemon/ui/protocol/ --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
~/.cache/yay/opensnitch/src/opensnitch-1.5.3
~/.cache/yay/opensnitch/src/opensnitch-1.5.3/daemon ~/.cache/yay/opensnitch/src/opensnitch-1.5.3
go: downloading github.com/google/gopacket v1.1.14
go: downloading github.com/vishvananda/netlink v0.0.0-20210811191823-e1a867c6b452
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading golang.org/x/net v0.0.0-20211209124913-491a49abca63
go: downloading google.golang.org/grpc v1.32.0
go: downloading github.com/iovisor/gobpf v0.2.0
go: downloading github.com/google/nftables v0.1.0
go: downloading golang.org/x/sys v0.0.0-20211205182925-97ca703d548d
go: downloading github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae
go: downloading google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
go: downloading github.com/mdlayher/netlink v1.4.2
go: downloading github.com/golang/protobuf v1.5.0
go: downloading github.com/google/go-cmp v0.5.6
go: downloading github.com/josharian/native v0.0.0-20200817173448-b6b71def0850
go: downloading github.com/mdlayher/socket v0.0.0-20211102153432-57e3fa563ecb
go: downloading honnef.co/go/tools v0.2.2
go: downloading golang.org/x/text v0.3.7
go: downloading golang.org/x/tools v0.1.8
go: downloading github.com/BurntSushi/toml v0.4.1
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/mod v0.5.1
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
go: upgraded golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271 => v0.0.0-20211209124913-491a49abca63
go: upgraded golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 => v0.0.0-20211205182925-97ca703d548d
# github.com/evilsocket/opensnitch/daemon/netfilter
cgo-gcc-prolog: In function ‘_cgo_aceefaf8538a_Cfunc_stop_reading_packets’:
cgo-gcc-prolog:451:49: warning: unused variable ‘_cgo_a’ [-Wunused-variable]
# github.com/iovisor/gobpf/elf
cgo: cannot load DWARF output from $WORK/b084//_cgo_.o: zlib: invalid header
make: *** [Makefile:16: opensnitchd] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: opensnitch

My system:
Manjaro
kernel versions: 6.1.7-1 & 6.2rc4-2
AUR version: https://aur.archlinux.org/packages/opensnitch

Thank you in advance.

@gustavo-iniguez-goya
Copy link
Collaborator

Hi @tuqueque ,

In the past these kind of errors were caused by a system update, take a look at this comment:

atasmrk commented on [2022-09-11 19:32 (UTC)](https://aur.archlinux.org/packages/opensnitch-git#comment-881252)

@afader I had the same problem. Solved it by reinstalling base-devel and copy-ing makepkg.conf.pacnew to makepkg.conf.

https://aur.archlinux.org/packages/opensnitch-git#comment-881252

@tuqueque
Copy link
Author

Yup, copying makepkg.conf.pacnew to makepkg.conf solved the problem.

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants