Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195407 - net-fs/openafs-kernel doesn't compile with vserver-sources: Unknown symbol vx_rmap_pid
Summary: net-fs/openafs-kernel doesn't compile with vserver-sources: Unknown symbol vx...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 18:03 UTC by Adrian Perez
Modified: 2007-10-13 14:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Allows building openafs-kernel with vserver-sources (openafs+vserver.patch,326 bytes, patch)
2007-10-10 18:05 UTC, Adrian Perez
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.