Skip to content

Commit

Permalink
pkg/ltp/PKGBUILD: fix ltp/src/rusers/rpc.rstatd-4.0.1 compile error
Browse files Browse the repository at this point in the history
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 <jie2x.zhou@intel.com>
Signed-off-by: Philip Li <philip.li@intel.com>
  • Loading branch information
jie2xzhou authored and rli9 committed Jul 19, 2022
1 parent 6fff1b9 commit e3b30d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ltp/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ build_rusers()
cd rpc*/ || return
./configure --prefix="${benchmark_path}"/netkit-rusers

sed -i '/^DEFAULT_INCLUDES =/ s/$/ -I\/usr\/include\/tirpc/' Makefile
sed -i '/^LIBS =/ s/$/ -ltirpc/' Makefile
make
}

Expand Down

0 comments on commit e3b30d2

Please sign in to comment.