I am trying to build the 2.4.1 dahdi packages as RPMS on <br>CentOS 5.5. However, I am getting an error about the kernel<br>version when I load the modules. I can force load (--force)<br>and the modules appear to work. My O/S info:<br>
<br> Kernel: 2.6.18-194.26.1.el5<br> O/S: CentOS 5.5 up to date<br><br>On this same server, I have no problems loading the <br>prebuilt RPM packages from: <br> <a href="http://packages.asterisk.org/centos/5/current/i386/RPMS/">http://packages.asterisk.org/centos/5/current/i386/RPMS/</a> <br>
<br>I got the same error trying to load modules when I rebuilt the<br>2.4.0 RPMS so it may be a problem with my RPM environment?<br><br> rpmbuild --rebuild dahdi-linux-kmod-2.4.0-1.centos5.2.6.18_195.26.1.el5.src.rpm<br>
<br>Also, is there a simple procedure for taking the SPECs and <br>tarballs and building Dahdi RPMs? I have taken the CentOS 2.4.0<br>RPMs and built RPMs but it is somewhat of a pain.<br><br>So far, I found that I had to:<br>
setup my user-build RPM environment<br> edit the ~/.rpmmacros to define %_sbindir /usr/sbin<br> install some missing packages:<br> yum install yum-kmod libusb-devel<br> <br>I installed the three 2.4.0 SRC RPMs and extracted the<br>
SPEC files. I then edited them to change to 2.4.1. <br><br>Next I copied the tarballs and made a new one for the dahdi-linux-kmod<br>(why is this necessary?):<br> tar xvzf dahdi-linux-2.4.1.tar.gz<br> mv dahdi-linux-2.4.1 dahdi-linux-kmod-2.4.1 <br>
tar cvzf dahdi-linux-kmod-2.4.1.tar.gz dahdi-linux-kmod-2.4.1<br> cp dahdi-linux-2.4.1.tar.gz ~/rpmbuild/SOURCES<br> cp dahdi-linux-kmod-2.4.1.tar.gz ~/rpmbuild/SOURCES<br> cp dahdi-tools-2.4.1.tar.gz ~/rpmbuild/SOURCES<br>
<br>I then made the driver. It has issues loading:<br> rpmbuild -ba dahdi-linux-kmod.spec<br> rpm -Uvh ~/rpmbuild/RMS/i386/kmod-dahdi-linux-2.4.1*rpm<br><br>I get error: Failed dependencies:<br> kernel-i386 = 2.6.18-194.26.1.el5 is needed....<br>
<br>If I use a --force on the rpm -Uvh, it loads the module and <br>the module appears to work. I suspect the module is looking<br>for a i686 module. <br><br>If I try to build with --target i686, it requires xen and PAE,<br>
but I am not on a xen or PAE kernel?<br><br>Thanks,<br>--<br>Wade Hampton<br>