Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Install NI-VXI on openSUSE

I am trying to install NI-VXI on a machine with openSUSE 10.3 (Linux kernel 2.6.22.17). I got LabVIEW 8.5, NI-KAL 1.7 and NI-VISA installed and working perfectly. But when I run the .INSTALL script for NI-VXI, I get the following output when the makefile is building the VXI driver
*************

Would you like to automatically configure and build the driver? [Yn] Y

Configuring the NIVXI Makefile to build on your system.

Kernel sources headers found in /lib/modules/2.6.22.17-0.1-default/source/include.
The kernel contains the vprintk symbol.
The remap_pfn_range() function is from a post-2.6.9 kernel.

Editing Makefile

Finished configuring.

Attempting to build the NI-VXI driver.
make -C /lib/modules/2.6.22.17-0.1-default/build SUBDIRS=/usr/local/nivxi/src KBUILD_VERBOSE=0 modules
make[1]: Entering directory `/usr/src/linux-2.6.22.17-0.1-obj/i386/default'
make -C ../../../linux-2.6.22.17-0.1 O=../linux-2.6.22.17-0.1-obj/i386/default modules
  CC [M]  /usr/local/nivxi/src/vxi.o
In file included from /usr/local/nivxi/src/vxi.c:13:
/usr/local/nivxi/src/mutex.h:59:42: error: macro "mutex_acquire" requires 4 arguments, but only 1 given
In file included from /usr/local/nivxi/src/vxi.c:13:
/usr/local/nivxi/src/mutex.h:59: warning: ‘regparm’ attribute only applies to function types
/usr/local/nivxi/src/mutex.h:59: warning: ‘cdecl’ attribute only applies to function types
/usr/local/nivxi/src/mutex.h:61:42: error: macro "mutex_release" requires 3 arguments, but only 1 given
/usr/local/nivxi/src/mutex.h:61: warning: ‘regparm’ attribute only applies to function types
/usr/local/nivxi/src/mutex.h:61: warning: ‘cdecl’ attribute only applies to function types
/usr/local/nivxi/src/vxi.c: In function ‘vxi_install_interrupt_handler’:
/usr/local/nivxi/src/vxi.c:111: warning: ‘deprecated_irq_flag’ is deprecated (declared at /usr/src/linux-2.6.22.17-0.1/include/linux/interrupt.h:66)
/usr/local/nivxi/src/vxi.c:111: warning: ‘deprecated_irq_flag’ is deprecated (declared at /usr/src/linux-2.6.22.17-0.1/include/linux/interrupt.h:66)
/usr/local/nivxi/src/vxi.c:112: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/usr/local/nivxi/src/vxi.c:128:31: error: macro "mutex_acquire" requires 4 arguments, but only 1 given
/usr/local/nivxi/src/vxi.c:133:31: error: macro "mutex_release" requires 3 arguments, but only 1 given
/usr/local/nivxi/src/vxi.c:146:31: error: macro "mutex_acquire" requires 4 arguments, but only 1 given
/usr/local/nivxi/src/vxi.c:158:31: error: macro "mutex_release" requires 3 arguments, but only 1 given
make[4]: *** [/usr/local/nivxi/src/vxi.o] Error 1
make[3]: *** [_module_/usr/local/nivxi/src] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.17-0.1-obj/i386/default'
make: *** [default] Error 2
Done!

*******************

NI tech support said that openSUSE in not supported (even though the web site says it is) and that I need to change my Linux distribution to one that is. Has anyone out there have a workaround to install it on openSUSE. I rather not change the Linux kernel if I can help it since all my other applications are running perfectly.
0 Kudos
Message 1 of 2
(3,062 Views)
Duplicate Post
Sincerely,

Chris G in AE
0 Kudos
Message 2 of 2
(3,035 Views)