Quote:
Originally Posted by Brian1
It would be better if you posted the errors.
Also you have the kernel 2.6.16 extracted in /usr/src/linux correct?
Try the commnad like this
rpmbuild --rebuild --recompile viaudiocombo-2.3-3.src.rpm
Brian1
|
***************
Thank you for responding. Here is a sample of errors I get when I run the rpmbuild as you suggested:
***************
[root@localhost viaudiocombo-2.3-1]# rpmbuild --rebuild --recompile viaudiocombo-2.3-1.src.rpm
Installing viaudiocombo-2.3-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.54361
+ umask 022
+ cd /usr/src/RPM/BUILD
[root@localhost viaudiocombo-2.3-1]# CC=/usr/bin/gcc
[root@localhost viaudiocombo-2.3-1]# rpmbuild --rebuild --recompile viaudiocombo-2.3-1.src.rpm
Installing viaudiocombo-2.3-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64430
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf viaudiocombo-2.3
+ /bin/gzip -dc /usr/src/RPM/SOURCES/viaudiocombo-2.3.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd viaudiocombo-2.3
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.64430
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd viaudiocombo-2.3
+ ./install.sh
/usr/bin/gcc -D__KERNEL__ -DMODULE -I/lib/modules/2.6.16/build/include -I/lib/modules/2.6.16/build/drivers/sound -O2 -include/lib/modules/2.6.16/build/include/linux/modversions.h -DMODVERSIONS -c -o viaudio_interface.o viaudio_interface.c
cc1: /lib/modules/2.6.16/build/include/linux/modversions.h: No such file or directory
In file included from /lib/modules/2.6.16/build/include/linux/rwsem.h:27,
from /lib/modules/2.6.16/build/include/asm/semaphore.h:42,
from /lib/modules/2.6.16/build/include/linux/sched.h:20,
from /lib/modules/2.6.16/build/include/linux/module.h:10,
from viaudio_interface.c:51:
/lib/modules/2.6.16/build/include/asm/rwsem.h: In function `__down_read':
/lib/modules/2.6.16/build/include/asm/rwsem.h:105: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/rwsem.h: In function `__down_write':
/lib/modules/2.6.16/build/include/asm/rwsem.h:157: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/rwsem.h: In function `__up_read':
/lib/modules/2.6.16/build/include/asm/rwsem.h:194: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/rwsem.h: In function `__up_write':
/lib/modules/2.6.16/build/include/asm/rwsem.h:220: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/rwsem.h: In function `__downgrade_write':
/lib/modules/2.6.16/build/include/asm/rwsem.h:245: error: syntax error before "KBUILD_BASENAME"
In file included from /lib/modules/2.6.16/build/include/linux/sched.h:20,
from /lib/modules/2.6.16/build/include/linux/module.h:10,
from viaudio_interface.c:51:
/lib/modules/2.6.16/build/include/asm/semaphore.h: In function `down':
/lib/modules/2.6.16/build/include/asm/semaphore.h:105: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/semaphore.h: In function `down_interruptible':
/lib/modules/2.6.16/build/include/asm/semaphore.h:130: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/semaphore.h: In function `down_trylock':
/lib/modules/2.6.16/build/include/asm/semaphore.h:155: error: syntax error before "KBUILD_BASENAME"
/lib/modules/2.6.16/build/include/asm/semaphore.h: In function `up':
/lib/modules/2.6.16/build/include/asm/semaphore.h:179: error: syntax error before "KBUILD_BASENAME"
viaudio_interface.c:65:27: linux/wrapper.h: No such file or directory
In file included from /lib/modules/2.6.16/build/include/linux/irq.h:22,
from /lib/modules/2.6.16/build/include/asm/hardirq.h:6,
from viaudio_interface.c:69:
/lib/modules/2.6.16/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file inc
*************
Also upon checking my /usr/src/RPM/SPEC directory after the failed attempt to complle I found a file called viaudiocombo-2.3.1.spec which upon examinatiom seems to indicate that this package is for the old linux-2.4.X
kernel but --- that isn't how it is listed on the via web site ???
Here is a clip from this .spec file:
Summary: VIA sound driver (VT3074/VT3068).
Name: viaudiocombo
Version: 2.3
Release: 1
Vendor: VIA Multimedia Team
Copyright:VIA Tech
Group: System Environment/Base
Source:viaudiocombo-2.3.tar.gz
BuildRoot:%{_builddir}/%{name}-root
%description
VIA combo audio driver for kernel 2.4.x.
Thanks again & I hope this post doesn't anger anyone because it is quite big. Sorry if this is the case. I'm new to the linuxquestions site.