Skip to content

Commit e3b30d2

Browse files
jie2xzhourli9
authored andcommitted
pkg/ltp/PKGBUILD: fix ltp/src/rusers/rpc.rstatd-4.0.1 compile error
Error: rup.c:29:10: fatal error: rpc/rpc.h: No such file or directory 29 | #include <rpc/rpc.h> | ^~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:325: rup.o] Error 1 Reason: add libtirpc-dev include path and library. Signed-off-by: Jie2x Zhou <[email protected]> Signed-off-by: Philip Li <[email protected]>
1 parent 6fff1b9 commit e3b30d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/ltp/PKGBUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ build_rusers()
4040
cd rpc*/ || return
4141
./configure --prefix="${benchmark_path}"/netkit-rusers
4242

43+
sed -i '/^DEFAULT_INCLUDES =/ s/$/ -I\/usr\/include\/tirpc/' Makefile
44+
sed -i '/^LIBS =/ s/$/ -ltirpc/' Makefile
4345
make
4446
}
4547

0 commit comments

Comments
 (0)