-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Opensnitchd 1.5.8 doesn't build with go version >= 1.19 unless -fcf-protection is set (Gentoo overlay) #851
Comments
Hi @kcning !
Based on previous reports, it looks like a problem of your system (not your distro):
I just built the package with go 1.20.1 on Debian and compiled fine, so it doesn't seem an incompatibility with go (I've been using go1.19 for months, and the official packages on Debian are built with go1.19). Maybe some hardening feature of Gentoo? |
Thank you for the quick reply. It might be some hardening flags indeed. I'll look into it further. |
Also affecting opensnitch package in nixos-unstable recently NixOS/nixpkgs#216388 |
It seems to be a problem with Go >= 1.19 and
|
It seems that Go has been adding/removing // Use -fno-stack-protector to avoid problems locating the
// proper support functions. See issues #52919, #54313, #58385.
#cgo CFLAGS: -Wall -Werror -fno-stack-protector We also debugged this issue here: #768 |
closing this issue. Either use the mentioned option, or use another golang version. |
Hello,
I packaged opensnitch for a Gentoo overlay, and I noticed that opensnitch wouldn't build with go version >= 1.19. I'm quite certain it's not a distribution issue (EDIT: ok maybe not...).
As a temporary workaround, if I modify the opensnitch/daemon/Makefile as follows
then the build works.
For now I'm not sure what caused the issue, as I'm not a GO guru. It appears to me there is a breaking change in Go 1.19 release.
And last but not the least: thank you for this nice software!
The text was updated successfully, but these errors were encountered: