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