Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

nigpib-0.8.2 wont compile with RH-7.2 kernel-2.4.18-17.7.x

nigpib-0.8.2 wont compile with RH-7.2 kernel-2.4.18-17.7.x
0 Kudos
Message 1 of 6
(3,597 Views)
Hi,

It's difficult to assume anything with the information you provided. If you could give a short description of what's happening (error messages, hardware used, etc) we might be able to help you.

DiegoF.
National Instruments
0 Kudos
Message 2 of 6
(3,597 Views)
I had the same problem when I tried to install the nigpib-0.8.2 driver with redhat 8.0.

At first, it complains that malloc.h is deprecated, fixed that by simply changing: #include to: #include , in file ib_linux.c.
Then, it compiles the module, but insmod can't load it, complaining that it was compiled with gcc version 2 instead of 3, which the kernel was compiled with. (the module was compiled with gcc 3.2 so i don't know why it's complaining).
The workaround is to force insmod to load the module:
insmod -f nigpib
to have the module be loaded automatically at reboot,
put line: insmod -f nigpib, in /etc/rc.d/rc.local
Remember, after you run ./ibconf, you'll need to reload the updated module again.

Hope there will be a
n udpate to nigpib where these issues are addressed.
Message 3 of 6
(3,597 Views)
I had the same problem when I tried to install the nigpib-0.8.2 driver with redhat 8.0.

At first, it complains that malloc.h is deprecated, fixed that by simply changing: #include to: #include , in file ib_linux.c.
Then, it compiles the module, but insmod can't load it, complaining that it was compiled with gcc version 2 instead of 3, which the kernel was compiled with. (the module was compiled with gcc 3.2 so i don't know why it's complaining).
The workaround is to force insmod to load the module:
insmod -f nigpib
to have the module be loaded automatically at reboot,
put line: insmod -f nigpib, in /etc/rc.d/rc.local
Remember, after you run ./ibconf, you'll need to reload the updated module again.

Hope there will be an ud
pate to nigpib where these issues are addressed.
0 Kudos
Message 4 of 6
(3,597 Views)
The solution and insmod -f nigpib appears to work. Thank you for sharing this.

I too hope that there will be an update to nigpib that will addresse these issues!
0 Kudos
Message 5 of 6
(3,597 Views)
Although using the insmod -f nigpib loads the driver, running the FindLstn command will crash the kernel. I verified this occurs in my application and also when typing in the findlstn command from within ibic.

I don't think we can use the driver until NI compiles it for 8.0.
0 Kudos
Message 6 of 6
(3,597 Views)