We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first replace #include <rpc/xxx> by #include <tirpc/rpc/xxx>
#include <rpc/xxx>
#include <tirpc/rpc/xxx>
second and there are some problems in '/usr/include/tirpc/rpc' directory, cd into it , then
grep '#include <rpc' ./ -lr | xargs sed -i 's/#include <rpc\//#include <tirpc\/rpc\//g'
grep '#include <netconfig' ./ -lr | xargs sed -i 's/#include <netconfig.h>/#include \"..\/netconfig.h\"/g'
finally
make results LDFLAGS=-ltirpc
the problem will be fixed, tested successfully on manjaro 20
The text was updated successfully, but these errors were encountered:
Centos8: modify the content of /usr/include/netdb.h file <rpc/netdb.h> => <tirpc/rpc/netdb.h>
Sorry, something went wrong.
I think is more correct to change the CFLAGS variable to point to the right include instead of modify the system headers.
CFLAGS
diff --git a/src/Makefile b/src/Makefile index 2555014..dcf3226 100644 --- a/src/Makefile +++ b/src/Makefile @@ -58,6 +58,8 @@ SAMPLES=lmbench/Results/aix/rs6000 lmbench/Results/hpux/snake \ lmbench/Results/irix/indigo2 lmbench/Results/linux/pentium \ lmbench/Results/osf1/alpha lmbench/Results/solaris/ss20* +CPPFLAGS:=$(CPPFLAGS) -I /usr/include/tirpc/ + COMPILE=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) INCS = bench.h lib_mem.h lib_tcp.h lib_udp.h stats.h timing.h
Fix rpc include error
f57bdd1
intel#16
No branches or pull requests
first
replace
#include <rpc/xxx>
by#include <tirpc/rpc/xxx>
second
and there are some problems in '/usr/include/tirpc/rpc' directory, cd into it , then
grep '#include <rpc' ./ -lr | xargs sed -i 's/#include <rpc\//#include <tirpc\/rpc\//g'
grep '#include <netconfig' ./ -lr | xargs sed -i 's/#include <netconfig.h>/#include \"..\/netconfig.h\"/g'
finally
make results LDFLAGS=-ltirpc
the problem will be fixed, tested successfully on manjaro 20
The text was updated successfully, but these errors were encountered: