Skip to content

fix compilation error 'fatal error: rpc/rpc.h: No such file or directory'Β #16

@purplewall1206

Description

@purplewall1206

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions