[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 versio

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

2021-11-01 Thread Brian Candler
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 versions of go1.15 > then plugin.open will not work. > > That is correct, that is how it is

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

2021-11-01 Thread David Finkel
On Mon, Nov 1, 2021 at 9:44 AM Manoj Chauhan wrote: > 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. > It sounds like you want to ignore a major wa

[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 load

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

2021-11-01 Thread Brian Candler
> 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? When I tried it, I didn't need to set any environment variables (and certainly no LD_XXX variables). Follow this tutorial: https://medium

[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 Brian Candler
On Monday, 1 November 2021 at 03:44:03 UTC chauhan...@gmail.com wrote: > 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. > That is indeed correct, and is a major limitation of plugins in go. See: ht