Problem installing driver on CentOS8
Søren Koch via Linux-gpib-general <[email protected]> Wed, 19 Feb 2020 08:57:11 +0100
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] http://www.ecs.dtu.dk _______________________________________________ Linux-gpib-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEJ+fUXJapUy3prNPwoYNZoboDBMYFAl5M6lsACgkQoYNZoboD BMby+xAA1Xyt1LoJUoMWg8fOntoFn/OkfchpqLzqeFGgeremXI9OBnvvTPTMzQJo r/cg1yBM+kfLByzwXz8/UzpeE5y54ZQ9KarZvVuUjPXiORZsMc5w0sxpNgxkR0gr hCYZepkuOVwsXLbC5AoHFcCwl8EMgCDZdUWOK7ucNfYBQf0jKMGV2ztdXZxlxL2e l/ZdBnTj3vUXxn4lXGYDOGyMfducv/tUyDuip2uVLhSqoBKA+RcmVNfuotfwBSue loiu5jmIRywcbCAwZCA/hUGtPPfrbBgL7mL0c9ohhTKX/h9rkfcVDFuHSqc1B1Vc pGHbVnEBkWnrOtonkygXkPcAaU8EvNGLo5ZSHYFPM9ymTkv6+yj5jyu+XrzIsRKN 7FOpJIVegiHuy2bVX1KXvgk1kmYoX/lju9rswyxS8QNG4QQLZf9aKxK/CeB+wcPG ISVQsdI/iB2bLO0v/T2mf2IX+ZvvWFo1/V7mfvVX8hias4rREaKQwU3SGd/eaG5b RGtYeqkW25PITXXpvsNu2U30euaXqAF/gSJ0cSMwO0KSf/dqo9G7mepIWNj2Srzs VCMU1TGgaGaSP6xiVJCDCuApDRYX7LxBrZH+nkc8AJdrL28gWp6v3XSnyMY4lPaM h+q6nRUqeadskGkPE/eITSvSs5l4RXyaSGoDSVmcNIl47Y7udws= =bAZl -----END PGP SIGNATURE-----