The last dahdi-linux-kmod was compiled for CentOS v5.8 kernel version 308.24.1.
The src rpm for it is at:
dahdi-linux-kmod-2.6.1-1_centos5.2.6.18_308.24.1.el5.src.rpmThe
src rpm file has been patched for the
xdefs.h bug and is available at:
dahdi-linux-kmod-2.6.1-1_centos5.2.6.18_348.1.1.el5.src.rpmAttempting to rebuild the rpm from it only creates the i386 build version of the rpm:
kmod-dahdi-linux-2.6.1-1_centos5.2.6.18_348.1.1.el5.i386.rpm
Note the change in names of the RPM and the SRPM.
How do we get the i686 version of it?
yum install kernel-devel kernel-xen-devel kernel-PAE-devel
was also done.
Even the
rpmbuild --target i686 --define 'kvariants ""' was also done to no avail.
Line 160 of the file
/usr/src/kernels/2.6.18-348.1.1.el5-i686/Makefile:
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
shows that the
i686 command line argument for the target ARCH gets changed to
i386.
Any workaround other than to tinker with the kernel Makefile to generate the i686 version of the rpm?
On making the said line:
SUBARCH := $(shell uname -m | sed -e s/i.86/i686/ -e s/sun4u/sparc64/ \
We now get the following error:
make[1]: Entering directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686'
Makefile:495: /usr/src/kernels/2.6.18-348.1.1.el5-i686/arch/i686/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/kernels/2.6.18-348.1.1.el5-i686/arch/i686/Makefile'. Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686'
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.90501 (%build)
The said folder /usr/src/kernels/2.6.18-348.1.1.el5-i686/arch/i686/ does not exists and hence the missing Makefile error.
Now do we just
1. symlink or copy the i386 equivalent in as i686 (both tested to
produce only the i386 rpm) or
2. is there any rpm from which it is obtained or
3. do we copy over the i386 folder and (where to and what) tweak it?
CPU Architecture 'i686' does not support VPMADT032 or HPEC. Skipping.