Ray Kohler <[EMAIL PROTECTED]> writes:

> Package: openafs-modules-source
> Version: 1.4.1-3
> Severity: grave
> Justification: renders package unusable

> The module built from this version, at least on AMD64, does not load:

> # modprobe openafs
> FATAL: Error inserting openafs 
> (/lib/modules/2.6.16-2-amd64-k8/fs/openafs.ko): Invalid module format

It works fine if you build the module with the same version of gcc that
the kernel was built with.  The problem is that the AMD64 kernel is built
with gcc 4.0 and the archive in unstable has switched to gcc 4.1 as the
default.

I'm not sure the best solution to this.  It's clearly a bug, but it isn't
really OpenAFS's bug.  It's really a bug in the kernel headers for AMD64
(and possibly other platforms?) which do not explicitly use gcc-4.0 and
instead use whatever the default version of gcc is.  If you look for the
line starting with CC in /usr/src/linux-headers-2.6.16-2-amd64-k8 and
replace gcc with gcc-4.0, everything builds and works correctly.

I'm currently pondering who best to complain to to get this fixed; the
workaround isn't exactly obvious.  OpenAFS just trusts the compiler
setting provided by the kernel headers.

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to