Issues solved during Linux kernel Compilation

Source: Internet
Author: User
The problem solved during Linux kernel compilation-general Linux technology-Linux programming and kernel information. The following is a detailed description. Original: xiaoxi

I believe that many linux beginners, or those who have not been familiar with linux for a long time, have compiled the kernel. For that reason, the NFS service is required, when starting the NFS service, you will receive the following prompt:

Starting NFS4 idmapd: FATAL: Module sunrpc not found.
FATAL: Error running install command for sunrpc

The problem is very clear, that is, the sunrpc module is not found. A lot of people may be surprised that they have already selected it during compilation and can see it in the. config file:

# Cat-n. config | grep SUNRPC
1555 CONFIG_SUNRPC = y
1556 CONFIG_SUNRPC_GSS = y

In fact, this is where the nfs module is compiled into the kernel, rather than a module.

At this point, the problem was found, but how to solve it, how to compile SUNRPC into a module, I tried a lot of methods, and even directly modified it. the config file, but every time you make the file, sunrpc automatically corrected it to compile the file into the kernel and found a lot of experts who did not solve the problem.

Since then, it has been a waste of resources, and it is really difficult to get around (on the road to bypassing previous problems, we often encounter you in the past, in fact, there are some ways, like close to real-distance ), finally, we found clues from fs/Kconfig:

Config RPCSEC_GSS_KRB5
Tristate "Secure RPC: Kerberos V Mechanic (EXPERIMENTAL )"
Depends on SUNRPC & EXPERIMENTAL
Select SUNRPC_GSS
Config RPCSEC_GSS_SPKM3
Tristate "Secure RPC: SPKM3 Mechanic (EXPERIMENTAL )"
Depends on SUNRPC & EXPERIMENTAL
Select SUNRPC_GSS

That is to say, other modules are dependent on sunrpc. If a module is compiled to the kernel, sunrpc is also compiled to the kernel. This can be solved. Compile the above two modules into modules (m), and sunrpc is finally compiled into modules as expected. Nfs can be started normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.