2011-06-03 18:07:09

by Wakko Warner

[permalink] [raw]
Subject: 2.6.39 nfsd and crypto =n

During compile, I received this:
ERROR: "crypto_destroy_tfm" [fs/nfsd/nfsd.ko] undefined!
ERROR: "crypto_alloc_base" [fs/nfsd/nfsd.ko] undefined!

.config nfsd options:
CONFIG_NFSD=m
# CONFIG_NFSD_DEPRECATED is not set
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y

and crypto:
# CONFIG_CRYPTO is not set

making the following change fixes:
-# CONFIG_CRYPTO is not set
+CONFIG_CRYPTO=m

Should NFSD_V4 select CRYPTO? Should it select other things?

--
Microsoft has beaten Volkswagen's world record. Volkswagen only created 22
million bugs.


2011-06-06 18:23:21

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] nfsd: v4 support requires CRYPTO

From: Randy Dunlap <[email protected]>

nfsd V4 support uses crypto interfaces, so select CRYPTO
to fix build errors in 2.6.39:

ERROR: "crypto_destroy_tfm" [fs/nfsd/nfsd.ko] undefined!
ERROR: "crypto_alloc_base" [fs/nfsd/nfsd.ko] undefined!

Reported-by: Wakko Warner <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Cc: [email protected]
---
fs/nfsd/Kconfig | 1 +
1 file changed, 1 insertion(+)

--- linux-2.6.39.orig/fs/nfsd/Kconfig
+++ linux-2.6.39/fs/nfsd/Kconfig
@@ -82,6 +82,7 @@ config NFSD_V4
select NFSD_V3
select FS_POSIX_ACL
select SUNRPC_GSS
+ select CRYPTO
help
This option enables support in your system's NFS server for
version 4 of the NFS protocol (RFC 3530).

2011-06-06 22:41:37

by J. Bruce Fields

[permalink] [raw]
Subject: Re: [PATCH] nfsd: v4 support requires CRYPTO

On Mon, Jun 06, 2011 at 11:22:17AM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <[email protected]>
>
> nfsd V4 support uses crypto interfaces, so select CRYPTO
> to fix build errors in 2.6.39:

Thanks, applying for 3.0.--b.

>
> ERROR: "crypto_destroy_tfm" [fs/nfsd/nfsd.ko] undefined!
> ERROR: "crypto_alloc_base" [fs/nfsd/nfsd.ko] undefined!
>
> Reported-by: Wakko Warner <[email protected]>
> Signed-off-by: Randy Dunlap <[email protected]>
> Cc: [email protected]
> ---
> fs/nfsd/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> --- linux-2.6.39.orig/fs/nfsd/Kconfig
> +++ linux-2.6.39/fs/nfsd/Kconfig
> @@ -82,6 +82,7 @@ config NFSD_V4
> select NFSD_V3
> select FS_POSIX_ACL
> select SUNRPC_GSS
> + select CRYPTO
> help
> This option enables support in your system's NFS server for
> version 4 of the NFS protocol (RFC 3530).