Alpine package for `grpc-cli` is broken in alpine 3.15

210 views
Skip to first unread message

Blaine Nelson

unread,
May 31, 2022, 6:40:52 PM5/31/22
to grpc.io
When I build the following docker image:

```
FROM alpine:3.15

RUN apk update && apk upgrade && apk add --no-cache grpc-cli
```

and then run it using `docker run -it my_image:latest /bin/sh` it gives the following error:

```
> grpc_cli
Error loading shared library libgrpc++_test_config.so.1.42: No such file or directory (needed by /usr/bin/grpc_cli)
Error relocating /usr/bin/grpc_cli: _ZN4grpc7testing8InitTestEPiPPPcb: symbol not found
```

This package worked correctly in alpine 3.14 and I eventually found the issue was that the file was mis-named as `/usr/lib/libgrpc++_test_config.so.1.42.0`.  Creating a soft link resolved the issue:

```
ln -s /usr/lib/libgrpc++_test_config.so.1.42.0 /usr/lib/libgrpc++_test_config.so.1.42
```

Can this issue be corrected in the Alpine 3.15 package itself?

AJ Heller

unread,
Jun 14, 2022, 2:27:09 PM6/14/22
to Blaine Nelson, grpc.io, wene...@gmail.com
I believe this should be fixed in the apline package build file. I've CC'd the maintainer.

https://git.alpinelinux.org/aports/tree/community/grpc/APKBUILD?h=3.15-stable

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/80b33d32-d261-4de2-986b-64337a6dddb0n%40googlegroups.com.

Senthil Kumar

unread,
Oct 18, 2022, 4:22:17 PM10/18/22
to grpc.io
Reply all
Reply to author
Forward
0 new messages