-
Notifications
You must be signed in to change notification settings - Fork 134
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
invalid LDFLAGS break build with go1.9.4 / go1.10rc2 #63
Comments
:-( Can you send a PR? |
I think that Is |
[ Quoting <notifications@github.com> in "Re: [miekg/pkcs11] invalid LDFLAGS ..." ]
#64
I think that `-Wl,--no-as-needed` is missing in Go from https://github.com/golang/go/blob/master/src/cmd/go/internal/work/security.go#L88-L89
Is `--no-as-needed` a must-have? You can install the package with `CGO_LDFLAGS_ALLOW='-Wl,--no-as-needed' go install` but it's somewhat inconvenient for users to be forced to do it...
I don't know. This as all working, and now "they" broke it
|
I suggest to start with merging this as is, for the sake of the |
Following issue described at miekg/pkcs11#63 there is a need to update vendor dependency of pkcs11 lib. Change-Id: Ic823687f5d93490236cf396626c54fd2a9705a19 Signed-off-by: Artem Barger <bartem@il.ibm.com>
Simply migrate to GO version 1.10. This erroneous behaviour has been fixed in the most recent version. |
Seems to still be an issue with 1.10 if you use an older library. There's a workaround in the #67 issue linked above using an environment variable to override the error: |
Why do you need
|
@andlabs I'm not an expert on this project nor do I have much knowledge in Golang. I posted this primarily, because it was a quick workaround to a compile problem with certain libraries in an unrelated project. It solved the problem for me, so apparently does the latest Go version (although it may also be related to some other library versions). But if anyone finds the problem, this can be a quick workaround to prevent that specific error. |
On Linux, I'm getting the following error when trying to build the master version with go1.9.4:
On Mac OS, getting the error:
Same errors with go1.10rc2. This is likely be due to changes / security fixes in golang/go#23672
@miekg
The text was updated successfully, but these errors were encountered: