emissary icon indicating copy to clipboard operation
emissary copied to clipboard

Ambassador filter plugin not working | Error loading shared library libresolv.so.2 in Go 1.20

Open MageshSrinivasulu opened this issue 1 year ago • 2 comments

We are building an ambassador filter plugin using GO https://www.getambassador.io/docs/edge-stack/latest/topics/using/filters/plugin and calling that within the ambassador pod.

Seems it is failing from GO 1.20 with the error Error loading shared library libresolv.so.2 previously it used to work with GO 1.19

How to overcome this issue? More details are available here https://github.com/golang/go/issues/59305

MageshSrinivasulu avatar Dec 02 '23 06:12 MageshSrinivasulu

It looks like users are getting around this by implementing their own symbolic link for libresolv.so.2. One of the disadvantages of a plug-in filter is the need to maintain all the relevant dependencies. Does that look like something you could try?

cindymullins-dw avatar Dec 04 '23 19:12 cindymullins-dw

@cindymullins-dw I tried that but it is not working

MageshSrinivasulu avatar Dec 07 '23 09:12 MageshSrinivasulu