<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
</head>
<body>
<div style="font-family: 新宋体; font-size: 14px; line-height: 1.6;"><div>
<span>
<br>
</span>
</div><div>
<span>
<span style="font-family: 新宋体;">hi,</span><br>
</span>
</div><div>when I build frr docker image with grpc enabled, it is always failed with the following error:</div><div><br></div><div> CXX tests/lib/test_grpc-test_grpc.o</div><div> CXXLD tests/lib/test_grpc</div><div>/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: tests/lib/test_grpc-test_grpc.o: undefined reference to symbol '_ZN4absl12lts_202206235MutexD1Ev'</div><div>/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libabsl_synchronization.so.2206.0.0: error adding symbols: DSO missing from command line</div><div>collect2: error: ld returned 1 exit status</div><div>make: *** [Makefile:8659: tests/lib/test_grpc] Error 1</div><div>>>> ERROR: frr: check failed</div><div><br></div><div>frr version: tag 8.5.2</div><div>build command: docker build -t frr-grpc-alpine:8.5.2 -f docker/alpine/Dockerfile .</div><div>APKBUILD.in file changed:</div><div><br></div><div>diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in</div><div>index fef7a61cc..adeb48199 100644</div><div>--- a/alpine/APKBUILD.in</div><div>+++ b/alpine/APKBUILD.in</div><div>@@ -13,12 +13,12 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl</div><div> expat fakeroot flex fortify-headers gdbm git gmp json-c-dev kmod</div><div> lddtree libacl libatomic libattr libblkid libburn libbz2 libc-dev</div><div> libcap-dev libcurl libedit libffi libgcc libgomp libisoburn libisofs</div><div>- libltdl libressl libssh2 libstdc++ libtool libuuid</div><div>+ libltdl libressl libssh2 libstdc++ libtool libuuid abseil-cpp abseil-cpp-dev</div><div> linux-headers lzip lzo m4 make mkinitfs mpc1 mpfr4 mtools musl-dev</div><div> ncurses-libs ncurses-terminfo ncurses-terminfo-base patch pax-utils pcre2</div><div> perl pkgconf python3 python3-dev readline readline-dev sqlite-libs pcre2-dev</div><div>- squashfs-tools sudo tar texinfo xorriso xz-libs py-pip rtrlib rtrlib-dev</div><div>- py3-sphinx elfutils elfutils-dev libyang-dev"</div><div>+ squashfs-tools sudo tar texinfo xorriso xz-libs py-pip rtrlib rtrlib-dev re2-dev</div><div>+ py3-sphinx elfutils elfutils-dev libyang-dev cmake grpc grpc-dev protobuf-dev"</div><div> checkdepends="pytest py-setuptools"</div><div> install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall"</div><div> subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"</div><div>@@ -43,6 +43,7 @@ build() {</div><div> --localstatedir=$_localstatedir \</div><div> --enable-rpki \</div><div> --enable-vtysh \</div><div>+ --enable-grpc \</div><div> --enable-multipath=64 \</div><div> --enable-vty-group=frrvty \</div><div> --enable-user=$_user \</div><div><br></div><div id="ntes-pcmac-signature" style="font-family:''" data-spelling-ignore="true">
<div style="font-size:14px; padding: 0; margin:0;">
<div style="padding-bottom:6px;margin-bottom:10px;display:inline-block;">
<a href="https://dashi.163.com/projects/signature-manager/detail/index.html?ftlId=1&name=hzchenyuefang&uid=hzchenyuefang%40corp.netease.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fsm9c8cbf65365fabb85ec4eabe6d644815.jpg&items=%5B%22hzchenyuefang%40corp.netease.com%22%5D&logoUrl=http%3A%2F%2Fnos.netease.com%2Fmail-online%2F33d1a3d3d2d7995d9bd3521fd4ecbf70.jpeg" style="display:block;background:#fff; max-width: 400px; _width: 400px;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><table cellpadding="0" style="width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse;color: #9b9ea1;font-size: 14px;line-height:1.3;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tr class="firstRow"><td width="38" style="padding:0; box-sizing: border-box; width: 38px;"><img width="38" height="38" style="vertical-align:middle; width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/sm9c8cbf65365fabb85ec4eabe6d644815.jpg"></td><td style="padding: 0 30px 0 10px; color: #31353b;"><div style="font-size: 16px;font-weight:bold; width:100%; white-space: nowrap; overflow:hidden;text-overflow: ellipsis;">hzchenyuefang</div></td><td width="72" style="text-align:right; width: 72px;"><img width="72" height="20" style="width: 72px; height: 20px;" src="http://nos.netease.com/mail-online/eb230d324732dfad99872118dadcae0e.jpeg"></td></tr><tr width="100%" style="font-size: 14px !important; width: 100%;"><td colspan="3" style="padding:10px 0 0 0; font-size:14px !important; width: 100%;"><div style="width: 100%;font-size: 14px !important;word-wrap:break-word;word-break:break-all;">hzchenyuefang@corp.netease.com</div></td></tr></tbody></table></a>
</div>
</div>
</div></div>
<!--😀--></body>
</html>