From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-140759-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 058BD138010
	for <garchives@archives.gentoo.org>; Tue, 21 Aug 2012 09:17:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D7A6C21C00D;
	Tue, 21 Aug 2012 09:16:42 +0000 (UTC)
Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66])
	by pigeon.gentoo.org (Postfix) with ESMTP id 67C93E07E4
	for <gentoo-user@lists.gentoo.org>; Tue, 21 Aug 2012 09:14:36 +0000 (UTC)
Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69])
          by outpost1.zedat.fu-berlin.de (Exim 4.69)
          for gentoo-user@lists.gentoo.org with esmtp
          (envelope-from <h.v.bruinehsen@fu-berlin.de>)
          id <1T3kXj-0008Hl-Qc>; Tue, 21 Aug 2012 11:14:35 +0200
Received: from imp051235.vpn.mi.fu-berlin.de ([130.133.51.235])
          by inpost2.zedat.fu-berlin.de (Exim 4.69)
          for gentoo-user@lists.gentoo.org with esmtpsa
          (envelope-from <h.v.bruinehsen@fu-berlin.de>)
          id <1T3kXj-00089k-NN>; Tue, 21 Aug 2012 11:14:35 +0200
Message-ID: <5033517A.2010403@fu-berlin.de>
Date: Tue, 21 Aug 2012 11:14:34 +0200
From: Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120721 Thunderbird/14.0
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Invalid module format
References: <50312EF9.2090900@googlemail.com> <8460.1345416299@ccs.covici.com> <503212F4.5070004@fu-berlin.de> <5032625A.7080804@googlemail.com>
In-Reply-To: <5032625A.7080804@googlemail.com>
X-Enigmail-Version: 1.5a1pre
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: 130.133.51.235
X-Archives-Salt: a94b60bb-758a-47ff-a961-154255613b93
X-Archives-Hash: a09b5c1eff7bf708b4f0a852a0d8c069

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20.08.2012 18:14, Tamer Higazi wrote:
> Hi Hinnerk! I did what you say, now the magic issue comes, the
> kernel drivers ARE BUILT for this kernel, here the modinfo output:
> 
> tamer@office ~ $ sudo modinfo 
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko 
> +filename:
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanpipe.ko 
> license:        GPL description:    Sangoma WANPIPE: WAN
> Multi-Protocol Driver author:         Nenad Corbic
> <ncorbic@sangoma.com> depends:        sdladrv,wanrouter vermagic:
> 3.3.8-gentoo SMP mod_unload modversions tamer@office ~ $ sudo
> modinfo 
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/wanrouter.ko
> 
> 
> tamer@office ~ $ sudo modinfo 
> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko 
> filename:
> /lib/modules/3.3.8-gentoo/kernel/net/wanrouter/wanrouter.ko 
> license:        GPL description:    Sangoma WANPIPE: Proc & User
> Interface author:         Nenad Corbic <ncorbic@sangoma.com> 
> depends:        sdladrv vermagic:       3.3.8-gentoo SMP mod_unload
> modversions
> 
> 
> tamer@office ~ $ sudo modprobe sdladrv WARNING: Deprecated config
> file /etc/modprobe.conf, all config files belong into
> /etc/modprobe.d/. FATAL: Error inserting sdladrv 
> (/lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko):
> Invalid module format tamer@office ~ $ sudo modinfo 
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko 
> filename:
> /lib/modules/3.3.8-gentoo/kernel/drivers/net/wan/sdladrv.ko 
> license:        GPL description:    Sangoma WANPIPE: HW Layer 
> author:         Alex Feldman <al.feldman@sangoma.com> depends: 
> vermagic:       3.3.8-gentoo SMP mod_unload modversions
> 
> 
> I am running the 3.3.8 SMP kernel, and I don't know why he doesn't
> load the modules. This is what droves me crazy about it....
> 
> 
> any other ideas?!
> 
<SNIP>
> 
> 

I would try to recompile the kernel. You should also set the
/usr/src/linux symlink accordingly (to your actual kernel sources).
Reboot to machine after rebuilding the kernel and then rebuild the
module itself.
Maybe try - as Wonko stated in another mail - module versioning support.

For the whole process make sure that you use a consistent toolchain
(gcc, linux-headers, kernel-sources, glibc, binutils come to mind)

WKR
Hinnerk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQM1F5AAoJEJwwOFaNFkYcncMH/i3sUwg7Vdo82Olx45eemGNh
i003wxAd/3I5Kr0jHK/1VTWnOb6mHIku1BJQRGUSMMCVelqyYVDFh4hO+DfNok17
hOYXY/sxCsgP0f3oMMZxb7W+6aoLfGtm2vDIOdkthp3+O4z+BTyjjq/ikyaHJtDp
l+4xuHc1E0SYlUJf2JsBcKQjEWHmUNfCcZoratDjgghgNS9zYGNv3NJo7A1Bpx1N
M3dwh2S2aL9bs5kqWARgX/zYdX5mJOrxjP5gxRc4xqNzBoQBEVsCMtbt89VtVV4A
uZI/KqECQBm6kajbMMRR5ELbu2MkeyVXw6xhKqmZqkgsWhij5gZrARzUSmLA7No=
=Qa3/
-----END PGP SIGNATURE-----