nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   Trouble compiling (http://www.nvnews.net/vbulletin/showthread.php?t=29708)

imroberts 06-08-04 10:18 AM

Trouble compiling
 
I'm trying to compile the Nvidia nForce drivers under Mandrake 10 - I'm relatively new but I'm having no luck. I get the following output from the utility:

<div class="moz-text-flowed" style="font-family: -moz-fixed">
[root@host-172-17-9-106 ian]# rpmbuild --rebuild
NVIDIA_nforce-1.0-0274.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
+ umask 022
+ cd /usr/src/RPM/BUILD
+ echo '---- Copying Sources ----'
+ cd /usr/src/RPM/BUILD
+ rm -rf nforce
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvnet.tgz
+ tar -xvvf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvaudio.tgz
+ tar -xvvf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvmaster.tgz
+ tar -xvvf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvgart.tgz
+ tar -xvvf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ exit 0
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd nforce
+ echo '---- Building Drivers ----'
+ make
In file included from /usr/include/linux/cpumask.h:8,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from nvenet.h:20,
from nvenet.c:22:
/usr/include/linux/bitmap.h: In function `bitmap_shift_right':
/usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared (first use in
this function)
/usr/include/linux/bitmap.h:85: error: (Each undeclared identifier is
reported only once
/usr/include/linux/bitmap.h:85: error: for each function it appears in.)
/usr/include/linux/bitmap.h: In function `bitmap_shift_left':
/usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared (first use in
this function)
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from nvenet.h:20,
from nvenet.c:22:
/usr/include/linux/cpumask.h:10:5: missing binary operator before token "("
/usr/include/linux/cpumask.h:34:5: missing binary operator before token "("
In file included from /usr/include/asm/siginfo.h:4,
from /usr/include/linux/signal.h:7,
from /usr/include/linux/sched.h:24,
from /usr/include/linux/module.h:9,
from nvenet.h:20,
from nvenet.c:22:
/usr/include/asm-generic/siginfo.h: At top level:
/usr/include/asm-generic/siginfo.h:53: error: size of array `_pad' is too
large
In file included from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from /usr/include/linux/percpu.h:4,
from /usr/include/linux/sched.h:30,
from /usr/include/linux/module.h:9,
from nvenet.h:20,
from nvenet.c:22:
/usr/include/linux/mmzone.h:333: error: parse error before '(' token
/usr/include/linux/mmzone.h:334: error: parse error before numeric constant
In file included from /usr/include/linux/module.h:20,
from nvenet.h:20,
from nvenet.c:22:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/usr/include/linux/irq.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/irq.h:68: error: requested alignment is not a constant
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a
function)
In file included from /usr/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not
in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a
function)
In file included from /usr/include/linux/interrupt.h:11,
from nvenet.h:30,
from nvenet.c:22:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from nvenet.h:31,
from nvenet.c:22:
/usr/include/linux/version.h:2:2: #error
"================================================= ======"
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build
exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35:2: #error
"================================================= ======"
In file included from /usr/include/linux/mm.h:206,
from /usr/include/asm/pci.h:7,
from /usr/include/linux/pci.h:721,
from nvenet.h:32,
from nvenet.c:22:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a
constant
nvenet.c:35:41: missing binary operator before token "("
nvenet.c: In function `nvenet_open':
nvenet.c:692: warning: passing arg 2 of `request_irq' from incompatible
pointer type
nvenet.c: In function `nvenet_remove':
nvenet.c:1214: error: structure has no member named `driver_data'
nvenet.c: In function `nvenet_reboot_handler':
nvenet.c:2360: warning: implicit declaration of function `pci_for_each_dev'
nvenet.c:2361: error: parse error before '{' token
nvenet.c: At top level:
nvenet.c:2367: error: parse error before '}' token
nvenet.c: In function `remove_nvenet_proc_entries':
nvenet.c:2532: warning: unused variable `priv'
nvenet.c: In function `nvenet_proc_full_info_open':
nvenet.c:2605: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:495)
nvenet.c: In function `nvenet_proc_hardware_info_open':
nvenet.c:2645: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:495)
nvenet.c: In function `nvenet_proc_command_line_open':
nvenet.c:2686: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:495)
nvenet.c: In function `nvenet_proc_configuration_open':
nvenet.c:2727: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:495)
nvenet.c: In function `nvenet_proc_rx_stats_open':
nvenet.c:2762: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:495)
nvenet.c: In function `nvenet_proc_tx_stats_open':
nvenet.c:2804: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:495)
nvenet.c: In function `nvenet_proc_release':
nvenet.c:2821: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:507)
make[1]: *** [nvnet.o] Error 1
make: *** [nvnet_make] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.11497 (%build)
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.11497 (%build)
[root@host-172-17-9-106 ian]#

</div>

geowiz 06-09-04 04:00 PM

Re: Trouble compiling
 
In the 2.6.X series the Nforce drivers are built in. In addition, the Nforce drivers rpm from Nvidia are for the 2.4.X kernel and Mandrake 10 uses the 2.6.x kernel.

In the 2.6 kernel, the ethernet driver is "forcedeth" and the audio is the "snd_intel8x0" (at least on my mobo). So, no need for Nvidias drivers.

Good luck

imroberts 06-09-04 04:55 PM

Re: Trouble compiling
 
The inbuilt drivers don't allow me to use the SPDIF output on my motherboard though (A7N8X Deluxe)

crache 06-13-04 12:55 AM

Re: Trouble compiling
 
good point, and alsa they don't have that new nvpanel thing. Has anyone worked on a patch ?

blueworm 06-15-04 11:36 AM

Re: Trouble compiling
 
SPDIF works with alsa read the comments at bottom of this page.
Of course the nvpanel wont work. If you want to use the nvpanel you have no choice but to compile a 2.4 kernel.
All linux users should know or at least aspire to know how to compile their own kernel. http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html
It is a lot easier that it sounds.

Mare 06-15-04 08:01 PM

Re: Trouble compiling
 
geowiz, ok, in Mandrake 10 the nforce drivers are built in, but is there a GART driver??
i have A7N8X-E Deluxe, and i think, that this driver is necessary to support 3D grafics, isn't it??

I still don't have any drivers installed. I've just started to use MandrakeLinux10.0 and i'm still a litle bit confused...using windows all my life ;)

geowiz 06-15-04 09:09 PM

Re: Trouble compiling
 
There is a AGPGART in 2.6.x . I presume that Mandrake has built it in. I haven't installed Mandrake in more years than I wish to admit ;-)

If you are using an Nvidia card with the Nvidia proprietary driver, they supply the GART.

I don't have an ATI card and can't speak to their implementaion in their proprietary graphics driver.

You might check your graphics card's web site to see what drivers exist. ( www.nvidia.com and www.ati.com )

Keep plugging along - bit of a learning curve but good brain food and a reliable system (no BSOD's !)

Good luck

blueworm 06-16-04 12:10 AM

Re: Trouble compiling
 
Only use AGPGART if you are using a non nvidia card if not use NvAGP.


All times are GMT -5. The time now is 04:03 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.