[go-nuts] Re: Why go plugin addresses do not load with go binary #49225

2021-11-01 Thread Manoj Chauhan
Thanks. On Monday, November 1, 2021 at 8:56:38 PM UTC+5:30 Brian Candler wrote: > On Monday, 1 November 2021 at 13:44:28 UTC chauhan...@gmail.com wrote: > >> greeter.go calls plugin.open and it will be work only for one sub version >> of go. If plugin and binary are made in different sub

[go-nuts] Why go plugin addresses do not load with go binary #49225

2021-10-31 Thread Manoj Chauhan
I did not understand the use of plugin. I can't use a plugin with different go versions even with minor version because plugin.open is failed. The only way which I found to use plugin'functions is through LD_PRELOAD. I created a plugin using https://github.com/vladimirvivien/go-plugin-example

[go-nuts] Re: Why go plugin addresses do not load with go binary #49225

2021-11-01 Thread Manoj Chauhan
If eng.so is under /usr/lib then I think it's not required to set LD_LIBRARY_PATH. My question was how to load plugin address in go runtime using LD_PRELOAD. I am using LD_PRELOAD because plug.open is failed. Is there any other solution? On Monday, November 1, 2021 at 1:33:09 PM UTC+5:30 Brian

[go-nuts] Re: Why go plugin addresses do not load with go binary #49225

2021-11-01 Thread Manoj Chauhan
Hi Brian, greeter.go calls plugin.open and it will be work only for one sub version of go. If plugin and binary are made in different sub versions of go1.15 then plugin.open will not work. On Monday, November 1, 2021 at 6:55:02 PM UTC+5:30 Brian Candler wrote: > > My question was how to