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

Example not working #2

Open
dxps opened this issue Jan 15, 2020 · 0 comments
Open

Example not working #2

dxps opened this issue Jan 15, 2020 · 0 comments

Comments

@dxps
Copy link

dxps commented Jan 15, 2020

Dear author,

I just tried playing with the provided example, but unfortunately it doesn't work:

go-plugins-glean/httpserver > go run main.go    
2020/01/15 13:35:13 plugin.go:102: ERROR: failed to load FooHandler: plugin.Open("plugins/plugin1/plugin1"): could not find symbol FooHandler: dlsym(0x4d00020, plugin/hot-D21644C3-E9A4-4712-97DC-6D09C79D735B.FooHandler): symbol not found
panic: plugin.Open("plugins/plugin1/plugin1"): could not find symbol FooHandler: dlsym(0x4d00020, plugin/hot-D21644C3-E9A4-4712-97DC-6D09C79D735B.FooHandler): symbol not found

goroutine 1 [running]:
main.main()
        /Users/user/dev/go-playground/go-plugins-glean/httpserver/main.go:14 +0x2e5
exit status 2
go-plugins-glean/httpserver > 

Of course, both plugins were built before running the main.
The project example used can be found here.

Thanks.

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

1 participant