Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CentOS 7: updateNIDrivers failed

Hi,

I have a fresh installation of CentOS 7 (DVD CentOS-7-x86_64-DVD-1908.iso) with kernel

 

Linux <hostname> 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

 

updateNIDriverers fails:

 

Configuring NI-KAL for kernel version 3.10.0-1062.el7.x86_64...
Building module nikal...
nikal: CC [M] /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.o
nikal: /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.c:2043:10: error: ‘GENL_ID_GENERATE’ undeclared here (not in a function)
nikal: .id = GENL_ID_GENERATE,
nikal: ^
nikal: /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.c: In function ‘nNIKAL100_initDriver’:
nikal: /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.c:2083:4: error: implicit declaration of function ‘genl_register_family_with_ops’ [-Werror=implicit-function-declaration]
nikal: if ((status = genl_register_family_with_ops(&nikal_netlink_family, nikal_netlink_ops, 1))) return status;
nikal: ^
nikal: /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.c: In function ‘nNIKAL240_do_munmap’:
nikal: /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.c:3723:4: error: too few arguments to function ‘do_munmap’
nikal: return do_munmap(mm, addr, len);
nikal: ^
nikal: In file included from /var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.c:61:0:
nikal: include/linux/mm.h:2088:12: note: declared here
nikal: extern int do_munmap(struct mm_struct *, unsigned long, size_t,
nikal: ^
nikal: cc1: some warnings being treated as errors
nikal: make[2]: *** [/var/lib/nikal/3.10.0-1062.el7.x86_64/nikal/nikal.o] Error 1
nikal: make[1]: *** [_module_/var/lib/nikal/3.10.0-1062.el7.x86_64/nikal] Error 2
nikal: make: *** [nikal.ko] Error 2
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.

0 Kudos
Message 1 of 3
(2,899 Views)

Have you found a solution for this issue? I am in the middle of trying to do the exact same setup (same OS, same kernel) and I have run into the exact same problem.

 

Another thread I found suggested updating NI-KAL to 17.5.1, but that made no difference for me. Here is the thread for anyone interested:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kJMmSAM&l=en-US

0 Kudos
Message 2 of 3
(2,784 Views)

There is no solution so far.

 

Actually I'm in contact with NI support, trying to get NI drivers running on a 32 bit version of CentOS (7.1 to 7.7 available).

 

Additionally I tried several 32 bit CentOS versions in combination with different NI driver versions. Til now I found no working combination.

 

However, I have a working 64 bit CentOS 8 installation with working NI drivers. But here I'm not sure, whether my 32 bit software will work with the 64 bit kernel modules.

0 Kudos
Message 3 of 3
(2,781 Views)