That what i did, the problem is, when i change this line:
Code:
MODULE_PARM(vapu_enable, "i");
to:
Code:
module_param(vapu_enable, int, 0444);
I got this nforce-intaller.log:
Code:
include/asm/io.h: In function `check_signature':
include/asm/io.h:245: warning: wrong type argument to increment
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c: At top level:
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: error: syntax error before "int"
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: warning: type defaults to `int' in declaration of `module_
parm'
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: warning: function declaration isn't a prototype
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: warning: data definition has no type or storage class
make[4]: *** [/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-p
kg1/nvsound/main/nvmain.o] Error 1
But, if i not change this line:
Code:
MODULE_PARM(vapu_enable, "i");
I got this nforce-installer.log:
Code:
include/asm/io.h: In function `check_signature':
include/asm/io.h:245: warning: wrong type argument to increment
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c: At top level:
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2190: error: syntax error before string constant
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2190: warning: type defaults to `int' in declaration of `MODULE_
PARM'
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2190: warning: function declaration isn't a prototype
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2190: warning: data definition has no type or storage class
make[4]: *** [/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-p
kg1/nvsound/main/nvmain.o] Error 1
How to fix the Syntax error, or Any ideas.
edit: sSory, the nforce-installer.log on Mandriva 2005 in my first post, is wrong, this the right one:
Code:
nforce-installer log file '/var/log/nvidia-nforce-installer.log'
creation time: Sat Sep 30 15:45:46 2006
option status:
license pre-accepted : false
expert : false
uninstall : false
driver info : false
no precompiled interface : false
no ncurses color : false
no questions : false
silent : false
Installer install prefix : /usr
kernel source path : (not specified)
net kernel install path : (not specified)
audio kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /root/tmp
Using: nvidia-installer ncurses user interface
-> Found package NVIDIA audio driver for Linux-x86
-> Found package NVIDIA network driver for Linux-x86
-> Please select packages for installation:
Selections:
NVIDIA audio driver for Linux-x86 (1.0-7)
-> Starting install of NVIDIA audio driver for Linux-x86
-> Checking for loaded module nvsound
-> Checking for loaded module nvaudio
-> License accepted.
-> Skipping check for conflicting rpms.
-> /proc/version is Linux version 2.6.18 (root@localhost) (gcc version 3.4.3
(Mandrakelinux 10.2 3.4.3-7mdk)) #1 Sat Sep 30 14:52:36 WIT 2006
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.18/source'
-> Kernel output path: '/lib/modules/2.6.18/build'
-> Performing cc_version_check with CC="cc".
-> running command /bin/grep "^PATCHLEVEL ="
/lib/modules/2.6.18/source/Makefile | /bin/cut -d " " -f 3
-> Kernel module filename is nvsound.ko
Cleaning kernel module build directory.
executing: 'cd ./nvsound/main; make clean'...
rm -f *.ko *mod.* *.cmd nv*.o *~ core
-> Building kernel module:
executing: 'cd ./nvsound/main; make module SYSSRC=/lib/modules/2.6.18/source
SYSOUT=/lib/modules/2.6.18/build'...
make -C /lib/modules/2.6.18/build \
KBUILD_SRC=/usr/src/linux-2.6.18 \
KBUILD_EXTMOD="/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-
pkg1/nvsound/main" -f /usr/src/linux-2.6.18/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are miss
ing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it.
"; \
echo; \
/bin/false)
mkdir -p /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/n
vsound/main/.tmp_versions
rm -f /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvso
und/main/.tmp_versions/*
make -f /usr/src/linux-2.6.18/scripts/Makefile.build obj=/os/data-1/ftp/pub/
SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main
cc -Wp,-MD,/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pk
g1/nvsound/main/.nvalinux.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandrake
-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-
2.6.18/include -include include/linux/autoconf.h -I/os/data-1/ftp/pub/Syste
mDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main -Wall -Wundef -Wstric
t-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msof
t-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -ffrees
tanding -I/usr/src/linux-2.6.18/include/asm-i386/mach-default -Iinclude/asm-
i386/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdecl
aration-after-statement -I/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x
86-1.0-0310-pkg1/nvsound/main -O3 -Wall -march=athlon-xp -mtune=athlon-xp -W
implicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wp
ointer-arith -Wno-multichar -Werror -O -MD -Wno-cast-qual -Wno-error -DNV_RE
MAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s
)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvalinux)" -D"KBUILD_MODNAME=KBUILD_STR
(nvsound)" -c -o /os/data-1
/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvalinu
x.o /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsoun
d/main/nvalinux.c
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvalinux.c:19:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvalinux.c:25:
include/asm/io.h: In function `check_signature':
include/asm/io.h:245: warning: wrong type argument to increment
cc -Wp,-MD,/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pk
g1/nvsound/main/.nvmixer.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandrake-
linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2
.6.18/include -include include/linux/autoconf.h -I/os/data-1/ftp/pub/System
DanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main -Wall -Wundef -Wstrict
-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft
-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -ffreest
anding -I/usr/src/linux-2.6.18/include/asm-i386/mach-default -Iinclude/asm-i
386/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdecla
ration-after-statement -I/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x8
6-1.0-0310-pkg1/nvsound/main -O3 -Wall -march=athlon-xp -mtune=athlon-xp -Wi
mplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpo
inter-arith -Wno-multichar -Werror -O -MD -Wno-cast-qual -Wno-error -DNV_REM
AP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DM
ODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvmixer)" -D"KBUIL
D_MODNAME=KBUILD_STR(nvsound)" -c -o /os/data-1/ftp/pub/SystemDanDriver/NFOR
CE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmixer.o /os/data-1/ftp/pub/SystemD
anDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmixer.c
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvhw.h:29,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvmixer.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:564,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvhw.h:35,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvmixer.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:245: warning: wrong type argument to increment
cc -Wp,-MD,/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pk
g1/nvsound/main/.nvmain.o.d -nostdinc -isystem /usr/lib/gcc/i586-mandrake-l
inux-gnu/3.4.3/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.
6.18/include -include include/linux/autoconf.h -I/os/data-1/ftp/pub/SystemD
anDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-
float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -ffreesta
nding -I/usr/src/linux-2.6.18/include/asm-i386/mach-default -Iinclude/asm-i3
86/mach-default -fno-omit-frame-pointer -f
no-optimize-sibling-calls -Wdeclaration-after-statement -I/os/data-1/ftp/pu
b/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main -O3 -Wall -mar
ch=athlon-xp -mtune=athlon-xp -Wimplicit -Wreturn-type -Wswitch -Wformat -Wc
har-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -MD -
Wno-cast-qual -Wno-error -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_
PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvmain)"
-D"KBUILD_MODNAME=KBUILD_STR(nvsound)" -c -o /os/data-1/ftp/pub/SystemDanDr
iver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmain.o /os/data-1/ftp/pub
/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/main/nvmain.c
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvmain.c:27:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:564,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvhw.h:35,
from /os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main/nvmain.c:29:
include/asm/io.h: In function `check_signature':
include/asm/io.h:245: warning: wrong type argument to increment
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c: At top level:
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: error: syntax error before "int"
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: warning: type defaults to `int' in declaration of `module_
parm'
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: warning: function declaration isn't a prototype
/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-pkg1/nvsound/ma
in/nvmain.c:2191: warning: data definition has no type or storage class
make[4]: *** [/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.0-0310-p
kg1/nvsound/main/nvmain.o] Error 1
make[3]: *** [_module_/os/data-1/ftp/pub/SystemDanDriver/NFORCE-Linux-x86-1.
0-0310-pkg1/nvsound/main] Error 2
make[2]: *** [modules] Error 2
-> Error.
ERROR: The NVIDIA kernel module was not created.
ERROR: Installation of the audio driver has failed. Please see the file
'/var/log/nvidia-nforce-installer.log' for details. You may find
suggestions on fixing installation problems in the README available on
the Linux driver download page at www.nvidia.com.
nb: Sory for my bad english.
Bookmarks