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
plugin: link error building with plugin package on darwin #18104
Comments
Those particular symbols are duplicates in caddy. They are defined both in a stdlib package and a third-party package:
Looks like cmd/asm doesn't mangle the names of |
Plugin support was removed from Darwin for Go 1.8. Moving this bug to Go 1.9. |
Has anyone started looking at this? Maybe @crawshaw? I would like to help out here and help code in a solution if at all possible, but don't want to duplicate efforts. Thoughts? |
Any news on this? |
Nobody is working on it. There are no improvements in Go 1.9 and no planned improvements for Go 1.10 unless an owner steps up or somebody starts sending fixes. |
Actually, the one change in Go 1.9 is ac29f30 |
This has been fixed at HEAD. It appears the duplicate symbols are still in the caddy binary (produced on darwin with
I'm not sure what CL did this. And whatever the fix is, it's not what I would have done (which is to change cmd/asm to prefix unexported symbols with the package name). But as it's fixed, I'll close this. Please comment if you can reproduce it at HEAD. |
I wanted a little more closure, so I went digging.
Kind of funny you say this, @crawshaw. Git bisect's pointing the finger at 96414ca as the commit that fixed the duplicate symbols. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +5d1c601 Tue Nov 29 05:58:06 2016 +0000 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Trying to add plugin functionality to https://github.com/mholt/caddy
go get github.com/mholt/caddy
simply adding
import _ "plugin"
to any go file is sufficient to cause the issue for me.What did you see instead?
go build github.com/mholt/caddy/caddy
some output of
go build -x -ldflags "-extldflags -v" github.com/mholt/caddy/caddy
:It may be an environment issue on my end, but a simpler program that imports plugin seems to compile fine.
The text was updated successfully, but these errors were encountered: