Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

libnipalu.so failed to initialize.

Solved!
Go to solution

Hi

 

I am trying to use NIDAQmxBase with NI-USB 6009 device. However when i try to run the example c files I get the message: libnipalu.so failed to initialize. I saw that other people have had the same problem and have included some information that was useful for them. I am using Fedora 9. 

 

I tried to reinstall NIDAQmxBase but that did not help. 

 

After entering rpm -qa | grep ^ni I get the following:

 

niexfinder-base-1.0-8.i386
nipalki-2.3.0-f1.i386
nispyi-2.6.0-f0.i386
nidaqmxbase-board-support-3.2.0-f1.i386
nivisa-devel-4.4.0-f0.i386
nirpci-4.0.0-f1.i386
niorbi-1.9.0-f0.i386
nicvirte-8.0-7.i386
nivisa-config-4.4.0-f0.i386
niwebpipeline20_dep-2.0-5.i586
nidaqmxbase-cinterface-3.2.0-f1.i386
nikali-1.8.0-f0.noarch
nidimi-1.9.0-f0.i386
nipxirmi-1.6.0-f0.i386
nivisak-4.4.0-f0.i386
nivisaserver-4.4.0-f0.i386
nidaqmxbase-usb-support-3.2.0-f1.i386
nivisa-4.4.0-f0.i386
nipali-2.3.0-f1.i386
nidaqmxbase-common-3.2.0-f1.i386

 

Attached is the system log file after running the niSystemReport.

 

When I try to run updateNIDrivers I get the following:

 

Configuring for linux kernel version 2.6.27.19-78.2.30.fc9.i686.
 
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.27.19-78.2.30.fc9.i686/source.
If this does not correspond to the location of the 2.6.27.19-78.2.30.fc9.i686 headers,
then define KERNELHEADERS in your environment to point to the location
of the kernel headers, define KERNELTARGET as the version of the
kernel for which to compile, and then rerun ./configure.
********************************* NOTE *********************************
 
Kernel has reparent_to_init(): no
Number of arguments for do_munmap(): 3
pte_offset function: pte_offset_kernel()
Levels in page table: 4
Kernel has remap_pfn_range: yes
USB altsetting name: cur_altsetting
Kernel has usb_get_intf(): yes
Kernel has intf_cache member in usb_host_config: yes
Kernel has ep[] members in usb_device: yes
Kernel exports usb_set_configuration(): no
Units of USB_CTRL_GET_TIMEOUT: msec
Kernel has owner member in usb_driver: no
Kernel has put_page_testzero(): yes
Kernel has mutex method: yes
Kernel has kthread: yes
Kernel has config.h: no
Kernel has ioctl32.h: no
IRQ handlers have pt_regs: no
Kernel has work_struct and delayed_work: yes
 
Storing configuration in Makefile.in
If the values stored are incorrect they can be changed before running make.
 
Uninstalling NI-KAL (nikal): done
/bin/rm -rf objects
Updating NI-KAL:
 NI-KAL update failed.
 
/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.27.19-78.2.30.fc9.i686/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/kernels/2.6.27.19-78.2.30.fc9.i686'
  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c:447: error: unknown field ‘nopage’ specified in initializer
/usr/local/natinst/nikal/src/objects/nikal.c:447: warning: initialization from incompatible pointer type
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_destroySemaphore’:
/usr/local/natinst/nikal/src/objects/nikal.c:2355: error: ‘nLinux_semaphore’ has no member named ‘sleepers’
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_releaseSemaphore’:
/usr/local/natinst/nikal/src/objects/nikal.c:2420: error: request for member ‘counter’ in something not a structure or union
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.19-78.2.30.fc9.i686'
make: *** [objects/nikal.ko] Error 2
 
ERROR: make of nikal kernel module failed, not installing kernel module.
   updateNIDrivers should be called again after fixing the problem.
   Logging failure...
   Include the file /tmp/niSystemReport.out.gz when contacting
   National Instruments for support.
 
I have also included the file from /tmp/niSystemReport.out.gz.. perhaps that is the same thing as above.

 

Thanks so much for your help!

 

cannonball

Download All
0 Kudos
Message 1 of 4
(3,911 Views)

cannonball,

 

Thank you for posting on the NI Forums. I was able to look around and see some common threads in regards to this issue. This error that you are getting happens when using more than 4 GB of memory with the system. This is due to the fact that on a 32-bit system the max amount of addressable memory is only 4 GB. There is a KnowledgeBase article on our site here that mentions how to resolve this issue.  I found this information listed on the post for Need help on error: libnipalu.so failed to initialize. I would also like to point you to our Linux Community which is a site where a lot of our Linux users hang out and a couple of our Linux guys monitor on a regular basis. It is a good place to go for Linux information and questions. Let me know if you have any other questions. 

 

Linux Users Community

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 2 of 4
(3,898 Views)
Solution
Accepted by cannonball

@cannonball wrote:

 

/usr/local/natinst/nikal/src/objects/nikal.c:447: error: unknown field ‘nopage’ specified in initializer
/usr/local/natinst/nikal/src/objects/nikal.c:447: warning: initialization from incompatible pointer type
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_destroySemaphore’:
/usr/local/natinst/nikal/src/objects/nikal.c:2355: error: ‘nLinux_semaphore’ has no member named ‘sleepers’
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_releaseSemaphore’:
/usr/local/natinst/nikal/src/objects/nikal.c:2420: error: request for member ‘counter’ in something not a structure or union


NI-KAL is failing to compile.  The latest version of NI-KAL (currently NI-KAL 1.9) should fix this.  Just install NI-KAL 1.9, and then run updateNIDrivers and hopefully everything should work.

 

Shawn Bohrer

National Instruments

Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 3 of 4
(3,893 Views)

Thanks for your help! I updated NIKAL and it works!

 

Thanks so much!

 

cannonball 

Message Edited by cannonball on 04-13-2009 11:18 AM
0 Kudos
Message 4 of 4
(3,864 Views)