[Asterisk-Users] Re: Invalid module format in 2.6.5 after running make linux26

Rob McGee asterisk at richardthecomputerguy.com
Fri May 14 16:08:37 MST 2004


On Monday 12 April 2004 18:24, Andrew D Kirch wrote:
>  [root at asterisk zaptel]# modprobe ztdummy
>  WARNING: Error inserting zaptel
>  (/lib/modules/2.6.5-1.315/misc/zaptel.ko): Invalid module format
>  WARNING: Error inserting zaptel
>
> Also I found this in my syslog while trying to solve the problem:
>
> Apr 12 18:48:45 asterisk kernel: zaptel: version magic
> '2.6.5-1.315custom 686 REGPARM 4KSTACKS gcc-3.3' should be
> '2.6.5-1.315 686 REGPARM 4KSTACKS gcc-3.3' Apr 12 18:48:45 asterisk
> kernel: zaptel: version magic '2.6.5-1.315custom 686 REGPARM 4KSTACKS
> gcc-3.3' should be '2.6.5-1.315 686 REGPARM 4KSTACKS gcc-3.3' Apr 12

I am getting this too ... just upgraded to 2.6.6. Mine is slightly
different:
zaptel: version magic '2.6.6-skas-rob0 preempt K7 gcc-3.3' should be '2.6.6-skas-rob0 preempt K7 gcc-3.2'

I compiled the kernel on a Slackware 9.1 (gcc 3.2) box (with a better
CPU, of course :) and compiled the zaptel on the slackware-current (gcc
3.3) box which will be running it (where it was working in 2.4.x.)

I am guessing that the zaptel and the kernel need to be built with the
same compiler. I am also guessing that if I set the symlink as the
README-Linux26 file said, and then run "make install" on the Asterisk
machine, I'll be okay. (The Asterisk machine can mount the 9.1's NFS
share.)

I suppose another possibility is to take a hex editor to the modules,
but I don't like that idea very much. :)

I will try the above idea and report back. If anyone has any words of
wisdom and/or ridicule for me, please be so kind as to CC: them to
research at richardthecomputerguy dot com, because I am not able to
keep up with this mailing list.
-- 
    Rob - /dev/rob0



More information about the asterisk-users mailing list