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 Candler wrote:

> 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:
>
> https://www.reddit.com/r/golang/comments/b6h8qq/is_anyone_actually_using_go_plugins/ejkxd2k/?utm_source=reddit&utm_medium=web2x&context=3
>
> I'm not sure about your issue with LD_PRELOAD, but it may be that you need 
> to set LD_LIBRARY_PATH instead (see "man ld.so")
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d53fa792-a727-4aad-bbdc-8198a5d330dcn%40googlegroups.com.

Reply via email to