Discussion:
ERROR: GPL-incompatible module nikal.ko uses GPL-only symbol 'usb_unlink_urb'
(too old to reply)
cryotak
2008-06-25 17:40:19 UTC
Permalink
Another problem in getting the PCI-GPIB card running under openSuSE 11.0 and the "2.6.25.5-1.1-pae" kernel.

After fixing the problem with the wrong gcc version number and finding that
in the /usr/local/natinst/src/nikal.c the SA_INTERRUPT variable has
been replaced by IRQF_DISABLED and SA_SHIRQ has been replaced with
IRQF_SHARED,I am now stuck on the follwing
error.

The following shows up when I try and update the driver using "updateNIDrivers":
..
Uninstalling NI-KAL (nikal): done
/bin/rm -rf objects
Updating NI-KAL:
 NI-KAL update failed.
 
/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.25.5-1.1-pae/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1'
  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: modpost: GPL-incompatible module nikal.ko uses GPL-only symbol 'usb_unlink_urb'
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1'
make: *** [objects/nikal.ko] 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.
Any help would be most appreciated.
rsw
2008-06-26 06:40:09 UTC
Permalink
Hi,
 
It appears as though the module creation has come across an issue when trying to use the function to unlink the urb (Linux USB communication protocol) which is leading you to these issues. Sadly as OpenSuSE 11.0 is currently unsupported by National Instruments I am unable to offer you further support regarding the NI-KAL issues you are having, I'm sure this is something R&D will come across during testing if OpenSuSE 11.0 is due for linux support by National Instruments.
 
Sorry I can't be of more help, it looks like a fairly final error to get from the shared objects
All the best,
ak2sc
2008-08-11 20:40:10 UTC
Permalink
Hi, I am having the same problem on openSuSE11.0. Just wondering if anyone found the solution yet?Thanks
cryotak
2008-08-12 08:40:09 UTC
Permalink
I don't know of a solution and to be honest I believe its down to the NI guys to fix that little license conflict. There is a nasty fix which works, but I am not sure how many rules its breaking. So only as an academic exercise: If you were to look in the right C file(s), I believe it may be called nikal.c, and change the definition of the MODULE_LICENSE variable from the NI blurb to "GPL", then that may fool the installation process into thinking that the software is actually GPL and not some encumbered piece of NI software.Just a thought and no guarantees given.Since NI supports openSUSE 10.3 it can only be hoped that they will move on and support its successor soon.
Loading...