Solved NVIDIA Geforce 9400M driver doesn't surpport FreeBSD 12

Wait official update I guess. Maybe you could edit Makefile or wherever this #ifdef is as well and bypass the limitation.
 
The makefile from the root of Nvidia's driver package and the makefile from the corresponding port are different files. Although, I don't believe there are version checks in either one.
1. make install is executed in /usr/ports/x11/nvidia-driver-340
2. As far as I remember, it reports it doesn't support FreeBSD 12 CURRENT
 
BTW, the corresponding port can't be built successfully by default, is it normal that a port can't be built successfully?
Works just fine.
Code:
root@williscorto:~ # pkg info nvidia-driver
nvidia-driver-390.87
Name           : nvidia-driver
Version        : 390.87
Installed on   : Thu Nov 15 18:58:57 2018 CET
Origin         : x11/nvidia-driver
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : x11 kld
Licenses       : NVIDIA
Maintainer     : danfe@FreeBSD.org
WWW            : http://www.nvidia.com/object/unix.html
Comment        : NVidia graphics card binary drivers for hardware OpenGL rendering
Options        :
        ACPI_PM        : on
        DOCS           : on
        LINUX          : on
        WBINVD         : off
Shared Libs required:
        libXext.so.6
        libX11.so.6
Shared Libs provided:
        libnvidia-ml.so.1
        libnvidia-eglcore.so.1
        libGL.so.1
        libvdpau_nvidia.so.1
        libnvidia-glsi.so.1
        libnvidia-cfg.so.1
        libGLESv1_CM.so.1
        libEGL.so.1
        libGLESv2.so.2
        libnvidia-glcore.so.1
        libnvidia-tls.so.1
Annotations    :
        FreeBSD_version: 1200086
        repo_type      : binary
        repository     : dicelan
Flat size      : 168MiB
Description    :
These are the official NVidia binary drivers for hardware OpenGL rendering
in X11, using the GLX extensions.

WWW: http://www.nvidia.com/object/unix.html
root@williscorto:~ # uname -a
FreeBSD williscorto.dicelan.home 12.0-STABLE FreeBSD 12.0-STABLE r342053 GENERIC  amd64



12-CURRENT doesn't exist any more since 12.0 got released. Any -CURRENT version is not supported. I suggest you update to 12.0-RELEASE.

Topics about unsupported FreeBSD versions
 
According to the release schedule, 12-STABLE branch was created on 19 October 2018. I don't even want to explain what this means, that should be mandatory reading.
12-CURRENT doesn't exist any more since 12.0 got released. Any -CURRENT version is not supported. I suggest you update to 12.0-RELEASE.

Reinstalled FreeBSD 12 Release, /usr/ports/x11/nvidia-driver-340 can be made successfully now. I'm not sure why it is not successful at the last time, maybe because I insalled FreeBSD src manually (copy the source code compressed file from the installation media, and uncompressed it). OK, ports should always work, thanks.
 
Back
Top