Mandrake 10.0 Nforce 2 src.rpm build failure
Hi,
I hope someone can help with this. I have an MSI K7N2 mobo with the nforce2 chipset. I have installed Mandrake 10.0 and all works fine apart from the sound which flashes up an error and then tells me sound will go to null. I have grabbed the latest nforce2 driver from Nvidia, I took the src.rpm as the pre-built ones are for 9.2 and I have tried to build this as I figure this will help the problem. I have kernel-2.6.3.4mdk-1-1mdk and kernel-source-2.6.3.4mdk installed. When I run: rpm --rebuild NVIDIA_nforce-1.0-0261.src.rpm I get the output which follows at the end. I have tried creating a buildmeister user which gets rid of those errors but it still exits badly. Can anyone point me in the right direction to get this rpm built and hopefully my sound working? Cheers Iain Output of rebuild: Installing NVIDIA_nforce-1.0-0261.src.rpm warning: user buildmeister does not exist - using root warning: user buildmeister does not exist - using root warning: user buildmeister does not exist - using root warning: user buildmeister does not exist - using root warning: user buildmeister does not exist - using root Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.27310 + umask 022 + cd /usr/src/RPM/BUILD + echo '---- Copying Sources ----' ---- Copying Sources ---- + cd /usr/src/RPM/BUILD + rm -rf nforce + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvnet.tgz + tar -xvvf - drwxr-xr-x buildmeister/adm 0 2003-05-06 20:36:14 nforce/ drwxr-xr-x buildmeister/adm 0 2003-05-06 20:39:37 nforce/nvnet/ -r--r--r-- buildmeister/adm 16904 2003-05-06 20:39:37 nforce/nvnet/adapter.h -r--r--r-- buildmeister/adm 794 2003-05-06 20:39:37 nforce/nvnet/basetype.h -r--r--r-- buildmeister/adm 6752 2003-05-06 20:39:37 nforce/nvnet/nvnet.h -r--r--r-- buildmeister/adm 4437 2003-05-06 20:39:37 nforce/nvnet/os.h -r--r--r-- buildmeister/adm 4749 2003-05-06 20:39:37 nforce/nvnet/phy.h -r--r--r-- buildmeister/adm 37870 2003-05-06 20:39:37 nforce/nvnet/nvnet.c -rw-r--r-- buildmeister/adm 21504 2003-05-06 20:39:37 nforce/nvnet/nvnetlib.o -r--r--r-- buildmeister/adm 3088 2003-05-06 20:39:37 nforce/nvnet/Makefile + STATUS=0 + '[' 0 -ne 0 ']' + cd nforce + cd /usr/src/RPM/BUILD + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvaudio.tgz + tar -xvvf - drwxr-xr-x buildmeister/adm 0 2003-05-06 20:39:38 nforce/ drwxr-xr-x buildmeister/adm 0 2003-05-06 20:39:38 nforce/nvaudio/ -r--r--r-- buildmeister/adm 2522 2003-05-06 20:39:38 nforce/nvaudio/Makefile -r--r--r-- buildmeister/adm 58241 2003-05-06 20:39:38 nforce/nvaudio/nvcrush.c -r--r--r-- buildmeister/adm 32174 2003-05-06 20:39:38 nforce/nvaudio/nvhw.c -r--r--r-- buildmeister/adm 33857 2003-05-06 20:39:38 nforce/nvaudio/nvmain.c -r--r--r-- buildmeister/adm 8314 2003-05-06 20:39:38 nforce/nvaudio/nvrec.c -r--r--r-- buildmeister/adm 26382 2003-05-06 20:39:38 nforce/nvaudio/nvspdif.c -r--r--r-- buildmeister/adm 14709 2003-05-06 20:39:38 nforce/nvaudio/nvwavout.c -r--r--r-- buildmeister/adm 4546 2003-05-06 20:39:38 nforce/nvaudio/chaninfo.h -r--r--r-- buildmeister/adm 5065 2003-05-06 20:39:38 nforce/nvaudio/nvhw.h -r--r--r-- buildmeister/adm 1570 2003-05-06 20:39:38 nforce/nvaudio/nvioctl.h -r--r--r-- buildmeister/adm 1392 2003-05-06 20:39:38 nforce/nvaudio/nvrec.h -r--r--r-- buildmeister/adm 1618 2003-05-06 20:39:38 nforce/nvaudio/nvspdif.h -r--r--r-- buildmeister/adm 1499 2003-05-06 20:39:38 nforce/nvaudio/nvwavout.h + STATUS=0 + '[' 0 -ne 0 ']' + cd nforce + cd /usr/src/RPM/BUILD + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvmaster.tgz + tar -xvvf - drwxr-xr-x buildmeister/adm 0 2003-05-06 20:39:36 nforce/ -r--r--r-- buildmeister/adm 1091 2003-05-06 20:39:36 nforce/Makefile -r--r--r-- buildmeister/adm 5404 2003-05-06 20:39:36 nforce/NVLicense.txt -r--r--r-- buildmeister/adm 18007 2003-05-06 20:39:36 nforce/GNULicense.txt -r--r--r-- buildmeister/adm 23612 2003-05-06 20:39:36 nforce/ReleaseNotes.html + STATUS=0 + '[' 0 -ne 0 ']' + cd nforce + cd /usr/src/RPM/BUILD + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvgart.tgz + tar -xvvf - drwxr-xr-x buildmeister/adm 0 2003-05-06 20:39:38 nforce/ drwxr-xr-x buildmeister/adm 0 2003-05-06 20:39:38 nforce/nvgart/ -r--r--r-- buildmeister/adm 590 2003-05-06 20:39:38 nforce/nvgart/Makefile -r--r--r-- buildmeister/adm 1231 2003-05-06 20:39:38 nforce/nvgart/README -r--r--r-- buildmeister/adm 14033 2003-05-06 20:39:38 nforce/nvgart/linux-2.4.20-agpgart.diff + STATUS=0 + '[' 0 -ne 0 ']' + cd nforce + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.27310 + umask 022 + cd /usr/src/RPM/BUILD + cd nforce + echo '---- Building Drivers ----' ---- Building Drivers ---- + make make -C nvnet make[1]: Entering directory `/usr/src/RPM/BUILD/nforce/nvnet' cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.6.3-4mdk/build/include nvnet.c In file included from /lib/modules/2.6.3-4mdk/build/include/linux/irq.h:20, from /lib/modules/2.6.3-4mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-4mdk/build/include/linux/interrupt.h:11, from nvnet.h:30, from nvnet.c:21: /lib/modules/2.6.3-4mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /lib/modules/2.6.3-4mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-4mdk/build/include/linux/interrupt.h:11, from nvnet.h:30, from nvnet.c:21: /lib/modules/2.6.3-4mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /lib/modules/2.6.3-4mdk/build/include/linux/irq.h:72, from /lib/modules/2.6.3-4mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-4mdk/build/include/linux/interrupt.h:11, from nvnet.h:30, from nvnet.c:21: /lib/modules/2.6.3-4mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /lib/modules/2.6.3-4mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) nvnet.c: In function `nvnet_open': nvnet.c:735: warning: passing arg 2 of `request_irq' from incompatible pointer type nvnet.c: In function `nvnet_remove': nvnet.c:1248: error: structure has no member named `driver_data' make[1]: *** [nvnet.o] Error 1 make[1]: Leaving directory `/usr/src/RPM/BUILD/nforce/nvnet' make: *** [nvnet_make] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.27310 (%build) RPM build errors: user buildmeister does not exist - using root user buildmeister does not exist - using root user buildmeister does not exist - using root user buildmeister does not exist - using root user buildmeister does not exist - using root Bad exit status from /var/tmp/rpm-tmp.27310 (%build) |
Don't worry about the user buildmeister, root will work fine. That isn't your trouble.
Look in /usr/src and see if there is a symbolic link named linux that points to your running kernel source code. # Compiling/installing kernel modules You will need to have installed: 1. The developmental packages (compiler) 2. The kernel-source code that matches your running kernel 3. The module source or install code Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed: Code:
[fancy@tinwhistle fancy]$ su - Code:
[root@tinwhistle root]# cd /usr/src If you don't see something similiar to this (but in color), you will need to install the kernel source. NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now: Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux Next, did I install the compiler? Code:
[root@tinwhistle src]# gcc -v If you don't have those two things installed, you have to install them first off your install CD. If they are installed, download the source and happy compiling. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study: |
Hi,
Now that's a fast response! I am still having some bother. All the packages and links seem fine as follows: Code:
iain@frodo iain]$ su Code:
[root@frodo iain]# cd /usr/src/ Code:
[root@frodo src]# gcc -v Trying to build the src.rpm gives the previous problem so I tried to install from source as follows: Code:
iain@frodo iain]$ tar -xvzf NVIDIA_nforce-1.0-0261.tar.gz Code:
cd /lib/modules/ Your thoughts on this would be greatly appreciated. Cheers Iain |
Perhaps that driver is too old for your kernel. I think NVIDIA-Linux-x86-1.0-5336-pkg1.run is the latest.
I haven't played around with the 2.6 kernels, but I understand there are big changes. I know they integrated the sound differently, possibly the video drivers are dealt with differently. Have you checked the nvidia drivers and kernel forums/mailing lists for ideas? |
I grabbed the latest nforce driver from Nvidia earlier today. The nvidia forums are full of various conflicting bits of information which didn't help so that's why I came here and I've already got loads more help than over there! Thanks for that, I love this place.
To clarify it is the nforce chipset driver I am trying to install and not the graphics driver although that will be my next task! I does look like something to do with the modules directory. Where the output I posted refers to //lib/modules/2.6.3-4mdk/build...I've checked this and build is a link as follows: Code:
iain@frodo 2.6.3-4mdk]$ ls -alc I am assuming that this should work ok? I'm wondering whether I should just shove my old sound card in and try this when Mandrake 10.0 had become a little more stable but I don't like to admit defeat ;) I appreciate all the help. Cheers Iain |
I am having the exact problem, does anyone know a solution?
So far I have disabled DRM and made a new kernel, but that doesn't work as well. I have a @linux that points to the kernel. This is very anoying, its been 2 weeks and no results |
Same problem here with custom build 2.6.7 kernel under Red Hat linux with nforce3 based platform. Tried make those nforce drivers from NVIDIA_nforce-1.0-0274.tar.gz file but same thing.
/lib/modules/2.6.7_a/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In my case /lib/modules/2.6.7_a/build is symbolic link to /usr/src/redhat/BUILD/kernel-2.6.7_a path /usr/src/redhat/BUILD/kernel-2.6.7_a/include/asm is symbolic link to /usr/src/redhat/BUILD/kernel-2.6.7_a/include/asm-i386 That directory contains irq.h file which tries to include irq_vectors.h file which unfortunately lies under /usr/src/redhat/BUILD/kernel-2.6.7_a/include/asm-i386/mach-default directory. I would need help as well. What is wrong ? Wrong symbolic links or what ? |
Well I got mine working and I didn't even need to install nforce drivers
If you are running madrake 10, nforce drivers are already installed so I just compiled a new kernel without DRM, made sure that nforce was selected then when modprobe agpgart, modprobe nvidia_agp installed drivers for ati and bing! it workeD |
All times are GMT -5. The time now is 10:24 PM. |