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 .so file is copied to the same folder and loaded from there, the error changes to:
panic: plugin.Open: could not find symbol F: /home/hduran/environments/blogposts/src/github.com/perrito666/bug_poc/v0.1.so: undefined symbol: github.com/perrito666/bug_poc/v0.1.F
goroutine 1 [running]:
main.main()
/home/hduran/environments/blogposts/src/github.com/perrito666/bug_poc/main.go:9 +0x3a9
exit status 2
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/hduran/environments/blogposts"
GORACE=""
GOROOT="/home/hduran/.local/share/goworkon/installs/1.8/go"
GOTOOLDIR="/home/hduran/.local/share/goworkon/installs/1.8/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build353851757=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
For a basic example of this:
What did you expect to see?
The plugin loading despite the path of its compiled version
What did you see instead?
The aforementioned panics.
The text was updated successfully, but these errors were encountered: