07-30-2015 04:29 AM
Hi everyone,
I would like to install NI-Visa on my Gnome-based distro with kernel 3.19.0-25.
So I'm first trying to install NI-KAL, last version 2.5 (correct me if this step is not necessary).
The installation goes fine till the compiling of nikal.c, where i get:
Installing NI-KAL:
NI-KAL update failed.
CC
/usr/local/natinst/nikal/src/nikal/nikal.o /usr/local/natinst/nikal/src/nikal/nikal.c:699:4: error: unknown field ‘set_wake’ specified in initializer
.set_wake = nNIKAL100_uartOps_set_wake,
^
/usr/local/natinst/nikal/src/nikal/nikal.c:699:4: warning: initialization from incompatible pointer type
/usr/local/natinst/nikal/src/nikal/nikal.c:699:4: warning: (near initialization for ‘nNIKAL100_uartOps.type’)
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_initDriver’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2027:4: error: implicit declaration of function ‘genl_register_ops’ [-Werror=implicit-function-declaration]
if ((status = genl_register_ops(&nikal_netlink_family, &nikal_netlink_ops))) return status;
^
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL230_getCurrentEffectiveUserID’:
/usr/local/natinst/nikal/src/nikal/nikal.c:7309:4: error: incompatible types when returning type ‘kuid_t’ but ‘nNIKAL100_tU32’ was expected
return current_euid();
^
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_insertCharToSerialRxBuffer’:
/usr/local/natinst/nikal/src/nikal/nikal.c:7564:29: warning: passing argument 1 of ‘tty_insert_flip_char’ from incompatible pointer type
if (tty_insert_flip_char(tty, ch, (unsigned int)errorFlag) == 0)
^
In file included from /usr/local/natinst/nikal/src/nikal/nikal.c:93:0:
include/linux/tty_flip.h:16:19: note: expected ‘struct tty_port *’ but argument is of type ‘struct nLinux_ttyStruct *’
static inline int tty_insert_flip_char(struct tty_port *port,
^
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_pushSerialRxBufferToUser’:
/usr/local/natinst/nikal/src/nikal/nikal.c:7582:25: warning: passing argument 1 of ‘tty_flip_buffer_push’ from incompatible pointer type
tty_flip_buffer_push(tty);
^
In file included from /usr/local/natinst/nikal/src/nikal/nikal.c:93:0:
include/linux/tty_flip.h:13:13: note: expected ‘struct tty_port *’ but argument is of type ‘struct nLinux_ttyStruct *’
extern void tty_flip_buffer_push(struct tty_port *port);
^
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL230_getCurrentEffectiveUserID’:
/usr/local/natinst/nikal/src/nikal/nikal.c:7313:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:263: recipe for target '/usr/local/natinst/nikal/src/nikal/nikal.o' failed
make[2]: *** [/usr/local/natinst/nikal/src/nikal/nikal.o] Error 1
Makefile:1394: recipe for target '_module_/usr/local/natinst/nikal/src/nikal' failed
make[1]: *** [_module_/usr/local/natinst/nikal/src/nikal] Error 2
Makefile:28: recipe for target 'all' failed
make: *** [all] 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'm not an expert by I guess it is an headers problem cause for example there are few types mismatch (I might be wrong).
However, is there any way to fix this?
Thanks in advance to everyone who will reply
Frank
Message was edited by: Frankmtl PS I forgot to tell I have a 64-bits machine
07-30-2015 11:14 AM
You'll need a newer version of NI-KAL than what you've got.
I'm working on getting version 15.0 posted. When it's ready, you should see it posted here:
http://digital.ni.com/public.nsf/allkb/2B4BB2B78A02C2FA86257BD500605CAD?OpenDocument
I'll also make sure that an update gets posted here when it's ready, as well.
07-30-2015 11:31 AM
Great! Thank you very much for your help!
08-06-2015 11:17 AM
I'm sorry - that took longer than I expected.
NI-KAL 15.0 is now posted: http://www.ni.com/download/ni-kal-15.0/5571/en/
08-07-2015 08:52 AM
It worked! Thank you very much!