You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the name of the plugin given to plugin.Open is a path to a file not in the current directory, like "plugins/foo.so", symbol name lookup will fail with an error like:
plugin.Open: could not find symbol MyFunc: /home/paul/src/example/plugins/foo.so: undefined symbol: plugins/foo.MyFunc
The symbol to be looked up in the example should be foo.MyFunc, not plugins/foo.MyFunc.
The text was updated successfully, but these errors were encountered:
Why is it looking at plugins/foo.MyFunc to begin with? The docs say that the package should be called "main"; is there something internal to plugin .so files where the "main" package is renamed to the filename instead?
go version devel +964639c Sat Sep 17 14:21:32 2016 +0000 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/paul"
GORACE=""
GOROOT="/go"
GOTOOLDIR="/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build779914587=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
If the name of the plugin given to plugin.Open is a path to a file not in the current directory, like "plugins/foo.so", symbol name lookup will fail with an error like:
The symbol to be looked up in the example should be
foo.MyFunc
, notplugins/foo.MyFunc
.The text was updated successfully, but these errors were encountered: