From: Søren K. <sq...@dt...> - 2020-02-19 10:11:24
|
Hi all. I have just tried to installl Linux-gpib-4.3 on a new CentOS 8 system, and i get the following error when running make: [root@trolley-08 linux-gpib-kernel-4.3.0]# make make -C /lib/modules/`uname -r`/build V=0 modules \ M="$PWD/drivers/gpib" \ GPIB_TOP_DIR=$PWD \ CONFIG_GPIB_ISA="" \ HAVE_DEV_OF_NODE= \ GPIB_CONFIG_KERNEL_DEBUG=0 make[1]: Entering directory '/usr/src/kernels/4.18.0-147.5.1.el8_1.x86_64' CC [M] /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.o /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c: In function ‘read_ioctl’: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:565:52: error: macro "access_ok" passed 3 arguments, but takes just 2 if(!COMPAT_ACCESS_OK(VERIFY_WRITE, userbuf, remain)) ^ In file included from ./include/asm-generic/termios.h:6, from ./arch/x86/include/uapi/asm/termios.h:1, from ./include/uapi/linux/termios.h:6, from ./include/linux/tty.h:7, from /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/ibsys.h:5, from /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:18: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/compat/include/linux/uaccess.h:26:2: error: ‘access_ok’ undeclared (first use in this function) access_ok(type, addr, size) ^~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:565:6: note: in expansion of macro ‘COMPAT_ACCESS_OK’ if(!COMPAT_ACCESS_OK(VERIFY_WRITE, userbuf, remain)) ^~~~~~~~~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/compat/include/linux/uaccess.h:26:2: note: each undeclared identifier is reported only once for each function it appears in access_ok(type, addr, size) ^~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:565:6: note: in expansion of macro ‘COMPAT_ACCESS_OK’ if(!COMPAT_ACCESS_OK(VERIFY_WRITE, userbuf, remain)) ^~~~~~~~~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c: In function ‘command_ioctl’: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:640:51: error: macro "access_ok" passed 3 arguments, but takes just 2 if(!COMPAT_ACCESS_OK(VERIFY_READ, userbuf, remain)) ^ In file included from ./include/asm-generic/termios.h:6, from ./arch/x86/include/uapi/asm/termios.h:1, from ./include/uapi/linux/termios.h:6, from ./include/linux/tty.h:7, from /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/ibsys.h:5, from /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:18: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/compat/include/linux/uaccess.h:26:2: error: ‘access_ok’ undeclared (first use in this function) access_ok(type, addr, size) ^~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:640:6: note: in expansion of macro ‘COMPAT_ACCESS_OK’ if(!COMPAT_ACCESS_OK(VERIFY_READ, userbuf, remain)) ^~~~~~~~~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c: In function ‘write_ioctl’: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:719:51: error: macro "access_ok" passed 3 arguments, but takes just 2 if(!COMPAT_ACCESS_OK(VERIFY_READ, userbuf, remain)) ^ In file included from ./include/asm-generic/termios.h:6, from ./arch/x86/include/uapi/asm/termios.h:1, from ./include/uapi/linux/termios.h:6, from ./include/linux/tty.h:7, from /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/ibsys.h:5, from /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:18: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/compat/include/linux/uaccess.h:26:2: error: ‘access_ok’ undeclared (first use in this function) access_ok(type, addr, size) ^~~~~~~~~ /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.c:719:6: note: in expansion of macro ‘COMPAT_ACCESS_OK’ if(!COMPAT_ACCESS_OK(VERIFY_READ, userbuf, remain)) ^~~~~~~~~~~~~~~~ make[3]: *** [scripts/Makefile.build:313: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys/osfuncs.o] Error 1 make[2]: *** [scripts/Makefile.build:553: /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/sys] Error 2 make[1]: *** [Makefile:1547: _module_/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib] Error 2 make[1]: Leaving directory '/usr/src/kernels/4.18.0-147.5.1.el8_1.x86_64' make: [Makefile:9: all] Error 2 (ignored) [root@trolley-08 linux-gpib-kernel-4.3.0]# I can run make install, but I can not load the driver: [root@trolley-08 linux-gpib-kernel-4.3.0]# make install make -C /lib/modules/`uname -r`/build V=0 modules_install\ M="$PWD/drivers/gpib" \ GPIB_TOP_DIR=$PWD \ INSTALL_MOD_DIR=gpib make[1]: Entering directory '/usr/src/kernels/4.18.0-147.5.1.el8_1.x86_64' INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/agilent_82350b/agilent_82350b.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/agilent_82350b/agilent_82350b.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/agilent_82350b/agilent_82350b.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/agilent_82357a/agilent_82357a.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/agilent_82357a/agilent_82357a.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/agilent_82357a/agilent_82357a.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/cb7210/cb7210.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/cb7210/cb7210.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/cb7210/cb7210.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/cec/cec_gpib.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/cec/cec_gpib.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/cec/cec_gpib.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/hp_82335/hp82335.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/hp_82335/hp82335.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/hp_82335/hp82335.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/hp_82341/hp_82341.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/hp_82341/hp_82341.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/hp_82341/hp_82341.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/ines/ines_gpib.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/ines/ines_gpib.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/ines/ines_gpib.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/lpvo_usb_gpib/lpvo_usb_gpib.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/nec7210/nec7210.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/nec7210/nec7210.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/nec7210/nec7210.ko: No such file or directory INSTALL /root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/ni_usb/ni_usb_gpib.ko cp: cannot stat '/root/linux-gpib-4.3.0/linux-gpib-kernel-4.3.0/drivers/gpib/ni_usb/ni_usb_gpib.ko': No such file or directory At main.c:291: - SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:72 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:79 sign-file: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/gpib/ni_usb/ni_usb_gpib.ko: No such file or directory DEPMOD 4.18.0-147.5.1.el8_1.x86_64 make[1]: Leaving directory '/usr/src/kernels/4.18.0-147.5.1.el8_1.x86_64' [root@trolley-08 linux-gpib-kernel-4.3.0]# When running modprobe I get this: [root@trolley-08 linux-gpib-kernel-4.3.0]# modprobe tnt4882 modprobe: FATAL: Module tnt4882 not found in directory /lib/modules/4.18.0-147.5.1.el8_1.x86_64 [root@trolley-08 linux-gpib-kernel-4.3.0]# (I am using a NI-gpib card and on CentOS7 it worked with version 4.2.0) I have also tried without luck to install 4.2.0, but apparently the change from CewntOS7 to 8 broke something.... My system is a fully updated and freshly installed CentOS8: [root@trolley-08 linux-gpib-kernel-4.3.0]# uname -a Linux trolley-08.energy.dtu.dk 4.18.0-147.5.1.el8_1.x86_64 #1 SMP Wed Feb 5 02:00:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [root@trolley-08 linux-gpib-kernel-4.3.0]# I hope that someone can help out so I can get the driver to install properly. Best regards -- Søren Koch Senior Development Engineer DTU Energy ------------------------------------------- Technical University of Denmark Department of Energy Conversion and Storage Fysikvej Building 310, 1.sal 2800 Kongens Lyngby Direct +45 46775816 sq...@dt... http://www.ecs.dtu.dk |