Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

nigpib-linux driver compile problem

I am running SUSE 9.0, and while trying to install nigpib-linux-0.8.6.tar.gz, I get the following compile error:
----------------------------------------------------

Your kernel appears to be configured properly to build NI-GPIB for Linux.
Do you want to proceed? [yn] y

gcc -c -O2 -D__KERNEL__ -I/lib/modules/2.4.21-260-default/build/include -DMODULE -DMODVERSIONS -include /lib/modules/2.4.21-260-default/build/include/linux/modversions.h -D__GPIBDRIVER__ -o ib_linux-2.4.21-260-default.o ib_linux.c
ib_linux.c:419:7: missing binary operator before token "("
make: *** [ib_linux-2.4.21-260-default.o] Error 1
Couldn't build driver.
----------------------------------------------------

It has to do with the HZ definition.

Thanks for any help anyone can give!
0 Kudos
Message 1 of 3
(2,849 Views)
dsb,

Here is a link to a lengthy thread on this very problem. There appears to be a workaround or two mentioned in the post:

Linux Driver Compiling Problem

Let me know if the suggestions in that thread help out!

Craig H.
NI Applications Engineering
0 Kudos
Message 2 of 3
(2,835 Views)
Thanks for the help. I tried the workaround for redefining HZ to __HZ, and that seemed to work. I'm not sure what implications this has, or what problems or performance issuses may arise, but we'll see.
0 Kudos
Message 3 of 3
(2,831 Views)