Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 195407

Summary: net-fs/openafs-kernel doesn't compile with vserver-sources: Unknown symbol vx_rmap_pid
Product: Gentoo Linux Reporter: Adrian Perez <adrian+gentoo>
Component: [OLD] ServerAssignee: Stefaan De Roeck (RETIRED) <stefaan>
Status: RESOLVED FIXED    
Severity: major CC: net-fs
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Allows building openafs-kernel with vserver-sources

Description Adrian Perez 2007-10-10 18:03:38 UTC
When building net-fs/openafs-kernel the compiler complains about vx_rmap_pid being implicitly defined, but the module builds and installs. When the module is inserted in the kernel, it will produce the following error:

  libafs: Unknown symbol vx_rmap_pid

Reproducible: Always

Steps to Reproduce:
1. emerge vserver-sources
2. emerge openafs-kernel
3. modprobe libafs

Actual Results:  
Kernel produces error:

  libafs: Unknown symbol vx_rmap_pid

when trying to load the module.

Expected Results:  
The module should load and work.

Some info here:
http://www.openafs.org/pipermail/openafs-info/2005-October/019749.html
Comment 1 Adrian Perez 2007-10-10 18:05:03 UTC
Created attachment 133069 [details, diff]
Allows building openafs-kernel with vserver-sources

Proposed patch. It only includes <linux/vs_cvirt.h> when CONFIG_VSERVER is enabled, so it effectively does nothing at all in stock kernels or when VServer is disabled.
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2007-10-13 14:45:28 UTC
Looks clean, trusting you there :)
Applied in net-fs/openafs-kernel-1.4.5_pre1
Thanks for the patch.