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: linker error when one plugin tries to open another plugin #22175
Comments
This is working as intended. You need to include a |
@davecheney I have added |
The error is on this line https://github.com/nzlov/testplugin/blob/master/Makefile#L4 Because you are not including Unlike many projects on GitHub, the Go project does not use its bug tracker for general discussion or asking questions. We only use our bug tracker for tracking bugs and tracking proposals going through the Proposal Process. Please see https://golang.org/wiki/Questions for good places to ask questions. |
@davecheney Sorry.
I think is a bug,when |
I'm sorry, that's just the way plugins work in Go, each plugin must have a |
@davecheney I'm sure I've added |
Please see https://golang.org/wiki/Questions for good places to ask questions. I recommend asking on golang-nuts. |
@davecheney Sorry.
I think is a bug... |
Sorry for the confusion. This is a bug when a plugin calls
Compiling this with
Removing the call to |
Oops, sorry for missing this @nzlov. I'll look into it. It does not appear to be related to the special handling for |
Change https://golang.org/cl/69250 mentions this issue: |
Change https://golang.org/cl/69370 mentions this issue: |
@crawshaw @ianlancetaylor Thank you for your help. |
Are there any known workarounds for this until Go 1.10 is released? |
you dont have a main file in package main, if you could add a main function your issue will be solved |
There is a problem that has been closed, but did not reply after asking.
#20312
What version of Go are you using (
go version
)?go version go1.9.1 linux/amd64
Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?What did you do?
DEMO
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: