modprobe error with Accelport XEM and centos 4.4


I’am struggling with dgap-1.3-6.src.rpm and Centos 4.4

uname -r
lscpi|grep -i xem
05:0a.0 Communication controller: Digi International AccelePort Xem (rev 01)

Installation method:
yum -y install gcc libtool rpm-build kernel-devel ncurses-devel
mkdir -p /usr/src/redhat/
cd /usr/src/
ln -s kernels/2.6.9-42.0.8.EL-i686/ linux-2.6.9-42.0.8.ELsmp
cd -
rpm -i 40002347_c.src.rpm
cd /usr/src/redhat/
rpmbuild --rebuild ./SRPMS/dgap-1.3-6.src.rpm
rpm -i ./RPMS/i386/dgap-1.3-6.i386.rpm
depmod -ae
modprobe dgap
FATAL: Error inserting dgap (/lib/modules/2.6.9-42.0.8.ELsmp/misc/dgap.ko): Invalid module format
tail -n1 /var/log/
Feb 6 16:48:27 fep2 kernel: dgap: disagrees about version of symbol struct_module

Thanks for any help.

Same error happens to me when installed in ubuntu breezy from tar.gz


Message was edited by: alex

This sounds like there could be a kernel/kernel-source mismatch. Was the kernel-smp-devel-2.6.9-42.0.8 package installed (rpm -qa | grep kernel)?

If so, make sure the architecture matches (ie. 686, x86_64, etc…) between the running kernel and kernel sources.

If this does not pan out, I recommend sending a typescript of the complete driver compilation/installation results:

rpm -e dgap
rpmbuild --rebuild 4002347_c.src.rpm
rpm -i /usr/src/(distro)/RPMS/i386/dgap-1.3-6.i386.rpm
/etc/init.d/dgap start

The “typescript” will reside in the directory where the script command was run.