View Single Post
Old 06-08-04, 10:18 AM   #1
imroberts
Registered User
 
Join Date: Jun 2004
Posts: 2
Default 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>
imroberts is offline   Reply With Quote