![]() |
new legacy releases for FreeBSD-8.0 needed -solved-
Accidentally I updated a FreeBSD system using the 96.43 legacy driver to FreeBSD-8.0.
I needed resync src tree und kernel. Removing Linux support und the spurious version exclude for >8 did the work. 96.43.13 does compile under 8.0. |
Re: new legacy releases for FreeBSD-8.0 needed
What's the correct procedure to get 96.43 to compile under FreeBSD 8.0-RELEASE or 9.0-CURRENT? This is where it errors:
cc -O2 -pipe -DNV_VERSION_STRING=\"96.43.14\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_dev.c nvidia_dev.c:138: error: conflicting types for 'nvidia_dev_mmap' nvidia_dev.c:20: error: previous declaration of 'nvidia_dev_mmap' was here *** Error code 1 Stop in /boot/modules/NVIDIA-FreeBSD-x86-96.43.14/src. *** Error code 1 Stop in /boot/modules/NVIDIA-FreeBSD-x86-96.43.14. |
Re: new legacy releases for FreeBSD-8.0 needed
Quote:
You mentioned 96.43.14. I looked into the ftp server and found 96.43.16, too, there. But both tar.gz's could be extracted by FreeBSD tar. What is happening there? |
Re: new legacy releases for FreeBSD-8.0 needed
Quote:
|
Re: new legacy releases for FreeBSD-8.0 needed
Quote:
The diff is: diff NVIDIA-FreeBSD-x86-96.43.14/src/nv-freebsd.h NVIDIA-FreeBSD-x86-96.43.13/src/nv-freebsd.h 24,26d23 < #if __FreeBSD_version >= 800000 < #error This driver does not support FreeBSD 8.x/-CURRENT! < #endif 173c170 < #define NV_SUPPORT_LINUX_COMPAT --- > #undef NV_SUPPORT_LINUX_COMPAT I don't have access to this machine now. On monday I shall try .14 version. |
Re: new legacy releases for FreeBSD-8.0 needed
Quote:
|
Re: new legacy releases for FreeBSD-8.0 needed
Quote:
|
Re: new legacy releases for FreeBSD-8.0 needed
No because I didn't want to mess up too much of the original code and forgot what I did. Anyways, problem has already been fixed in the Makefile earlier today in the ports tree so /usr/ports/x11/nvidia-driver-96 compiles without issues. There is no need to disable the linux compat either:
root@bigbang [11:31am][/usr/ports/x11/nvidia-driver-96] >> make ===> Vulnerability check disabled, database not found ===> Found saved configuration for nvidia-driver-195.22 ===> Extracting for nvidia-driver-96.43.16 => MD5 Checksum mismatch for NVIDIA-FreeBSD-x86-96.43.16.tar.gz. => SHA256 Checksum mismatch for NVIDIA-FreeBSD-x86-96.43.16.tar.gz. ===> Refetch for 1 more times files: NVIDIA-FreeBSD-x86-96.43.16.tar.gz NVIDIA-FreeBSD-x86-96.43.16.tar.gz ===> Vulnerability check disabled, database not found ===> Found saved configuration for nvidia-driver-195.22 => NVIDIA-FreeBSD-x86-96.43.16.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://jp.download.nvidia.com/freebsd/96.43.16/. NVIDIA-FreeBSD-x86-96.43.16.tar.gz 100% of 11 MB 607 kBps 00m00s ===> Vulnerability check disabled, database not found ===> Found saved configuration for nvidia-driver-195.22 => MD5 Checksum OK for NVIDIA-FreeBSD-x86-96.43.16.tar.gz. => SHA256 Checksum OK for NVIDIA-FreeBSD-x86-96.43.16.tar.gz. ===> Patching for nvidia-driver-96.43.16 ===> Applying FreeBSD patches for nvidia-driver-96.43.16 ===> nvidia-driver-96.43.16 depends on shared library: m.3 - found ===> nvidia-driver-96.43.16 depends on shared library: GL.1 - found ===> Configuring for nvidia-driver-96.43.16 ===> Building for nvidia-driver-96.43.16 ===> src (all) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_dev.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_linux.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_os.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_os_pci.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_os_registry.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_pci.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_subr.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_sysctl.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"96.43.16\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_i2c.c ld -d -warn-common -r -d -o nvidia.kld nv-kernel.o nvidia_ctl.o nvidia_dev.o nvidia_linux.o nvidia_os.o nvidia_os_pci.o nvidia_os_registry.o nvidia_pci.o nvidia_subr.o nvidia_sysctl.o nvidia_i2c.o :> export_syms awk -f /sys/conf/kmod_syms.awk nvidia.kld export_syms | xargs -J% objcopy % nvidia.kld ld -Bshareable -d -warn-common -o nvidia.ko nvidia.kld objcopy --strip-debug nvidia.ko ===> lib (all) ===> lib/libGL (all) ===> lib/libnvidia-tls (all) ===> lib/libnvidia-cfg (all) ===> lib/libGLcore (all) ===> lib/libXvMCNVIDIA (all) ===> lib/compat (all) ===> lib/compat/libGL (all) ===> lib/compat/libnvidia-tls (all) ===> lib/compat/libGLcore (all) ===> x11 (all) ===> x11/driver (all) ===> x11/extension (all) ===> doc (all) root@bigbang [11:31am][/usr/ports/x11/nvidia-driver-96] >> |
| All times are GMT -5. The time now is 02:27 PM. |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2013, nV News.