Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

updateNIDrivers fails on Fedora Core 8 at compile time. error: ‘nLinux_pciDr

I just upgraded from Fedora core 7 kernel 2.6.21-1.3194.fc7  to Fedora core 8 kernel 2.6.23.8-63.fc8 .  I am attempting to run updateNIDrivers so that NIKAL 1.6 will work and eventually I can get my GPIB-USB-B hardware to work.  I have done this when upgrading from a 2.6.15 to 2.6.21 kernel with no problem.  Now, I get some errors when it attempts to compile.  I don't know what to do now.  Please help.  Below is the output

/usr/local/natinst/nikal/src make:
/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.23.8-63.fc8/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.8-63.fc8-i686'
  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_registerPCIDriver’:
/usr/local/natinst/nikal/src/objects/nikal.c:2696: error: ‘nLinux_pciDriver’ has no member named ‘enable_wake’
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_reserveInterrupt’:
/usr/local/natinst/nikal/src/objects/nikal.c:4008: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:64
)
/usr/local/natinst/nikal/src/objects/nikal.c:4008: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:64
)
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.23.8-63.fc8-i686'
make: *** [objects/nikal.ko] Error 2

0 Kudos
Message 1 of 6
(5,531 Views)
spiro,

National Instruments currently only supports the following: Mandriva Linux Official, Red Hat Enterprise Linux WS, and SUSE Linux. For more information please reference the following KnowledgeBase 3XAAMQV4: What Linux Distributions Do National Instruments Drivers and Software Suppor...

However, through doing some research, I have found a few additional resources that you may want to reference when it comes to these errors.

Information concerning the "warning: ‘deprecated_irq_flag’ is deprecated" can be found at the following link: The Fedora Community Portal: madwifi fails to compile in rawhide

For information that references what enable_wake is referring to, when the error: ‘nLinux_pciDriver’ has no member named ‘enable_wake’ is seen, information can be found at the following link: PCI Power Management and LinuxQuestions.org: how to write a driver for PCI bridge?

I hope these are able to aid in troubleshooting these errors you are currently seeing.
Sarah S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(5,506 Views)
Sarah,
Thanks for the quick response.  I found a "hack" solution that is working now.  I simply commented line 2696 in nikal.c where the field enable_wake gets set to NULL.  If the field enable_wake doesn't exist in the nLinux_pciDriver, I don't see any harm in commenting the line that attempts to set it's value.  I couldn't find any places where this field was used.  After this, updateNIDrivers completes successfully and my application works!
    
0 Kudos
Message 3 of 6
(5,501 Views)
Hi Spiro,
I met the same problem as yours and I can solve it by the same way as yours.

But the DAQ6218 I am using now does not work under Fedora Core 8.

(1)output of  uname -a on my machine is
Linux localhost.localdomain 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux

(2)I can find the device by running lsdaq
[root@localhost bin]# ./lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6218: "Dev1"    (USB0::0x3923::0x7272::012E65EA::RAW)
--------------------------------

(3) The problems is that when I run example under folder /examples/ai, the converted value is 0.000.

Would you please tell me how you get your device work?
Thank you!
      Chengsen
When I run example under folder /examples/ao, there is no output.

0 Kudos
Message 4 of 6
(5,036 Views)
Hi Chengsen,
I have not used a USB-6218, so I don't know how to answer your question.  I'm using the USB-GPIB Controller for my application, which means I am using NI488.2 drivers, not NI DAQmx.  Both of these require NIKAL, so the first topic that I brought up was relevant to both of us.  I know this sounds silly, but after I had everything installed, I had to unplug and replug in the USB device to make it work.  Let me know if you solve this because I have to figure this kind  of stuff out all the time at work, and I like to know the  "tricks".

Spiro
0 Kudos
Message 5 of 6
(5,011 Views)
Hi Spiro,
  Thank you for your reply. I switch to Mandriva 2007.
0 Kudos
Message 6 of 6
(4,963 Views)