05-04-2011 08:27 PM
------------------------------
Installing NI-KAL:
NI-KAL update failed.
CC [M] /usr/local/natinst/nikal/src/nikal/nikal.o
/usr/local/natinst/nikal/src/nikal/nikal.c:489:4: error: unknown field ‘ioctl’ specified in initializer
/usr/local/natinst/nikal/src/nikal/nikal.c:489:4: warning: initialization from incompatible pointer type
make[2]: *** [/usr/local/natinst/nikal/src/nikal/nikal.o] 错误 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/nikal] 错误 2
make: *** [all] 错误 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.
..............................
Preparing... ########################################### [100%]
1:lvsupport86-daqmxviref ########################################### [ 33%]
2:lvsupport86-daqmxsupp ########################################### [ 67%]
3:lvsupport86-daqmxexmp ########################################### [100%]
Updating modversions database to include newly installed drivers...
FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /media/1846-E901/nidaqmx-8.0.2 AND/OR
www.ni.com/patents
******************************************************************************
* A reboot is required before attempting to use the
* NI-DAQmx for Linux Installer Distribution software.
******************************************************************************
Would you like to reboot now? [yes|no]
--------------------------------------------------------------
What should I do for correctly install it?
05-26-2011 05:38 AM - edited 05-26-2011 05:41 AM
open /usr/local/natinst/nikal/src/nikal/nikal.c
and in line 489 replace
.ioctl
with
.unlocked_ioctl
Regards
Dan