Unable to install NI-VISA nikal kernel module because of GPL-only symbol 'pgprot_writecombine'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Steps to reproduce:
1. Login to National Instruments site
2. Download NI-VISA 15.0 for linux (NI-VISA-
3. Launch its installation by "sudo ./INSTALL"
4. Get errors on nikal kernel modules compilation about "pgprot_
(
sudo /usr/local/
Configuring NI-KAL for kernel version 4.4.0-16-generic...
Building module nikal...
<11>Mar 31 23:04:51 nikal: CC [M] /var/lib/
<11>Mar 31 23:04:51 nikal: Building modules, stage 2.
<11>Mar 31 23:04:51 nikal: MODPOST 1 modules
<11>Mar 31 23:04:51 nikal: FATAL: modpost: GPL-incompatible module nikal.ko uses GPL-only symbol 'pgprot_
<11>Mar 31 23:04:51 nikal: scripts/
<11>Mar 31 23:04:51 nikal: make[2]: *** [__modpost] Error 1
<11>Mar 31 23:04:51 nikal: Makefile:1399: recipe for target 'modules' failed
<11>Mar 31 23:04:51 nikal: make[1]: *** [modules] Error 2
<11>Mar 31 23:04:51 nikal: Makefile:32: recipe for target 'nikal.ko' failed
<11>Mar 31 23:04:51 nikal: make: *** [nikal.ko] Error 2
<11>Mar 31 23:04:51 nikal: ERROR: failed to build nikal
<11>Mar 31 23:04:51 nikal: ERROR: NI-KAL update failed.
<11>Mar 31 23:04:51 nikal: ERROR: make of nikal kernel module failed, not installing kernel module.
<11>Mar 31 23:04:51 nikal: ERROR: updateNIDrivers should be called again after fixing the problem.
<11>Mar 31 23:04:51 nikal: ERROR: Logging failure...
find: ‘/lib/modules/
<11>Mar 31 23:04:51 nikal: ERROR: Include the file /tmp/niSystemRe
<11>Mar 31 23:04:51 nikal: ERROR: National Instruments for support.
<11>Mar 31 23:04:51 nikal: ERROR: Update of National Instruments drivers failed.
)
Temporary solution:
1. Edit /usr/src/
and change line
0xd544e902 pgprot_writecombine vmlinux EXPORT_SYMBOL_GPL
to
0xd544e902 pgprot_writecombine vmlinux EXPORT_SYMBOL
2. Edit /boot/abi-
and change line
EXPORT_
to
EXPORT_SYMBOL vmlinux 0xd544e902 pgprot_writecombine
but it does not help - I get "nikal: Unknown symbol pgprot_writecombine (err 0)" in syslog.
Expected results:
0. The 'pgprot_
1. Ubuntu can compile and load NI nikal module.
Actual results:
Unable to use NI-VISA under Ubuntu.
Reference (openSUSE):
http://
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-16-generic i686
ApportVersion: 2.20-0ubuntu3
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: Unity
Date: Thu Mar 31 18:16:37 2016
InstallationDate: Installed on 2016-03-26 (4 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta i386 (20160323)
IwConfig:
lo no wireless extensions.
enp1s0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.157
RfKill:
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/09/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: FD
dmi.board.
dmi.board.name: F2A55M-DS2
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To be filled by O.E.M.
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
description: | updated |
tags: | added: trusty |
tags: | removed: trusty |
description: | updated |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
This change was made by a bot.