Running updateNIDrivers Fails and Returns NI-KAL Errors After Linux Kernel Update

Updated Nov 8, 2018

Reported In

Operating System

  • Linux

Issue Details

I've just updated my Linux kernel and went to update my NI device drivers by running /usr/local/bin/updateNIDrivers but the command fails and returns the following:


Configuring NI-KAL for kernel version 3.10.0-862.el7.x86_64...
Building module nikal...
nikal: CC [M] /var/lib/nikal/3.10.0-862.el7.x86_64/nikal/nikal.o
nikal: /var/lib/nikal/3.10.0-862.el7.x86_64/nikal/nikal.c:2043:10: error: GENL_ID_GENERATE undeclared here (not in a function)
nikal: ERROR: failed to build nikal
nikal: ERROR: NI-KAL update failed.
nikal: ERROR: make of nikal kernel module failed, not installing kernel module.
nikal: ERROR: updateNIDrivers should be called again after fixing the problem.
nikal: ERROR: Update of National Instruments drivers failed.


This issue is caused by an incompatibility between the National Instruments Kernal Abstraction Layer (NI-KAL) and version 3.10.0-862.el7.x86_64 of the Linux kernel. This issue can be solved in one of two ways:
  1. The preferred solution would be that you update all of your NI device drivers to version 18.0 or later. NOTE: this requires uninstalling all NI device drivers prior to version 18.0.
  2. If you are unable to update your NI device drivers to 18.0 or later, updating NI-KAL to the most recent 17.5.X version should also resolve the issue.


Not Helpful