Linux Users

Highlighted

libnipalu.so failed to initialize

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.

0 Kudos
Message 1 of 5
(2,581 Views)
4 REPLIES 4

Re: libnipalu.so failed to initialize

as said in the other thread, do_munmap needs NULL as a 4th argument.

0 Kudos
Message 2 of 5
(2,559 Views)

Re: libnipalu.so failed to initialize

Thanks! That did the trick. A pretty simple fix.

0 Kudos
Message 3 of 5
(2,543 Views)

Re: libnipalu.so failed to initialize

Hello guy

 

 

how did you fix this?

 

thanks

 

 

0 Kudos
Message 4 of 5
(2,465 Views)

Re: libnipalu.so failed to initialize

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.

0 Kudos
Message 5 of 5
(2,461 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.