09-22-2017 11:00 PM
I successfully installed NI4882-17.0.0 drivers (CentOS release 7.4.1708). I get the following message when I try to run gpibexplorer:
[xtant@localhost bin]$ ./gpibexplorer
libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
Aborted (core dumped)
Then when I run "updateNIDrivers" I get the following:
[xtant@localhost bin]$ su
Password:
[root@localhost bin]# ./updateNIDrivers
Configuring NI-KAL for kernel version 3.10.0-693.2.2.el7.x86_64...
Building module nikal...
nikal: CC [M] /var/lib/nikal/3.10.0-693.2.2.el7.x86_64/nikal/nikal.o
nikal: /var/lib/nikal/3.10.0-693.2.2.el7.x86_64/nikal/nikal.c: In function ‘nNIKAL240_do_munmap’:
nikal: /var/lib/nikal/3.10.0-693.2.2.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-693.2.2.el7.x86_64/nikal/nikal.c:61:0:
nikal: include/linux/mm.h:1931:12: note: declared here
nikal: extern int do_munmap(struct mm_struct *, unsigned long, size_t,
nikal: ^
nikal: make[2]: *** [/var/lib/nikal/3.10.0-693.2.2.el7.x86_64/nikal/nikal.o] Error 1
nikal: make[1]: *** [_module_/var/lib/nikal/3.10.0-693.2.2.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.
[root@localhost bin]# ./INSTALL
bash: ./INSTALL: No such file or directory
[root@localhost bin]# ./updateNIDrivers
Configuring NI-KAL for kernel version 3.10.0-693.2.2.el7.x86_64...
Building module nikal...
nikal: CC [M] /var/lib/nikal/3.10.0-693.2.2.el7.x86_64/nikal/nikal.o
nikal: /var/lib/nikal/3.10.0-693.2.2.el7.x86_64/nikal/nikal.c: In function ‘nNIKAL240_do_munmap’:
nikal: /var/lib/nikal/3.10.0-693.2.2.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-693.2.2.el7.x86_64/nikal/nikal.c:61:0:
nikal: include/linux/mm.h:1931:12: note: declared here
nikal: extern int do_munmap(struct mm_struct *, unsigned long, size_t,
nikal: ^
nikal: make[2]: *** [/var/lib/nikal/3.10.0-693.2.2.el7.x86_64/nikal/nikal.o] Error 1
nikal: make[1]: *** [_module_/var/lib/nikal/3.10.0-693.2.2.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.
I'm stuck. Any ideas? Thank you.
09-23-2017 02:49 AM
as said in the other thread, do_munmap needs NULL as a 4th argument.
09-23-2017 07:19 AM
Thanks! That did the trick. A pretty simple fix.
09-25-2017 06:02 AM
Hello guy
how did you fix this?
thanks
09-25-2017 06:31 AM - edited 09-25-2017 06:32 AM
Please see response by marvin24. Use a text editor to modify the file nikal.c. Search for the function "do_munmap "and add the fourth argument "NULL". Re-run updatedrivers.