Open jasonchenTJ opened 2 months ago
After I installed matched kernal version RPM , got below error:
INFRA [root@dc02psqldbuat07 kernel]# make
make -C /lib/modules/4.14.35-1902.301.1.el7uek.x86_64/build M=/root/mhvtl-1.7-1_release/kernel modules
make[1]: Entering directory /usr/src/kernels/4.14.35-1902.301.1.el7uek.x86_64' CC [M] /root/mhvtl-1.7-1_release/kernel/mhvtl.o In file included from /root/mhvtl-1.7-1_release/kernel/mhvtl.c:96:0: /root/mhvtl-1.7-1_release/kernel/backport.h:12:28: error: conflicting types for ‘slab_flags_t’ typedef unsigned __bitwise slab_flags_t; ^ In file included from ./include/linux/list.h:5:0, from ./include/linux/module.h:9, from /root/mhvtl-1.7-1_release/kernel/mhvtl.c:47: ./include/linux/types.h:159:33: note: previous declaration of ‘slab_flags_t’ was here typedef unsigned long __bitwise slab_flags_t; ^ make[2]: *** [/root/mhvtl-1.7-1_release/kernel/mhvtl.o] Error 1 make[1]: *** [_module_/root/mhvtl-1.7-1_release/kernel] Error 2 make[1]: Leaving directory
/usr/src/kernels/4.14.35-1902.301.1.el7uek.x86_64'
make: *** [default] Error 2
Thanks for the report. I can't say I've encountered the above conflict before. Let me install a EL 7.8 (don't have access to RH, probably be rocky...
Try and do a 'make distclean' in the kernel directory - just to make sure there is nothing left behind from a previous build attempt & try the 'make' again.
FWIW: There is now a simple helper script installed (/usr/bin/mhvtl_kernel_mod_build) which will build a new kernel module for you - but of course would fail until the manual build process works.
#!/bin/bash
# Used to automate the building of the mhvtl.ko module
# on a running system - without requiring the whole source
BUILD=$(mktemp -u -t tmp.XXXXXXXXXX)
module_source=/usr/lib/firmware/mhvtl/mhvtl_kernel.tgz
if [ ! -d ${BUILD} ]; then
mkdir -p ${BUILD}
fi
cd ${BUILD}
tar xfz ${module_source}
make && sudo make install
rm -r ${BUILD}
Tried a build on fresh install of OracleLinux 7.9
[markh@oracleLinux7 kernel]$ cat /etc/*release
Oracle Linux Server release 7.9
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Oracle Linux Server release 7.9
clone git repo:
[markh@oracleLinux7 src]$ git clone https://github.com/markh794/mhvtl.git
Cloning into 'mhvtl'...
remote: Enumerating objects: 8339, done.
remote: Counting objects: 100% (923/923), done.
remote: Compressing objects: 100% (309/309), done.
remote: Total 8339 (delta 642), reused 862 (delta 611), pack-reused 7416 (from 1)
Receiving objects: 100% (8339/8339), 3.29 MiB | 0 bytes/s, done.
Resolving deltas: 100% (6022/6022), done.
cd into kernel module:
[markh@oracleLinux7 src]$ cd mhvtl/
[markh@oracleLinux7 mhvtl]$ cd kernel/
[markh@oracleLinux7 kernel]$ make
./config.sh
grep: /lib/modules/5.4.17-2102.201.3.el7uek.x86_64/build/include/linux/scsi_host.h: No such file or directory
make -C /lib/modules/5.4.17-2102.201.3.el7uek.x86_64/build M=/home/markh/src/mhvtl/kernel modules
make[1]: Entering directory `/usr/src/kernels/5.4.17-2102.201.3.el7uek.x86_64'
CC [M] /home/markh/src/mhvtl/kernel/mhvtl.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /home/markh/src/mhvtl/kernel/mhvtl.mod.o
CTF
LD [M] /home/markh/src/mhvtl/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/kernels/5.4.17-2102.201.3.el7uek.x86_64'
[markh@oracleLinux7 kernel]$ sudo make install
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for markh:
install -o root -g root -m 644 mhvtl.ko /lib/modules/5.4.17-2102.201.3.el7uek.x86_64/kernel/drivers/scsi/; \
depmod -a; \
if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \
fi
Build user-space:
[markh@oracleLinux7 kernel]$ cd ../
[markh@oracleLinux7 mhvtl]$ make
make -C usr
make[1]: Entering directory `/home/markh/src/mhvtl/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic log.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic mode.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic vtllib.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic spc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic smc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic q.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic subprocess.c
cc -shared -o libvtlscsi.so vtllib.o spc.o smc.o q.o \
mode.o log.o subprocess.o -lpthread
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic log.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic q.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic -o vtlcart.o vtlcart.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic vtllib.c
cc -shared -o libvtlcart.so vtllib.o vtlcart.o q.o log.o \
-lpthread
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtltape.o vtltape.c
vtltape.c:98:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^
compilation terminated.
make[1]: *** [vtltape.o] Error 1
make[1]: Leaving directory `/home/markh/src/mhvtl/usr'
make: *** [usr] Error 2
oops - missing zlib development package.. Install
[markh@oracleLinux7 mhvtl]$ sudo yum install zlib-devel
Loaded plugins: langpacks, ulninfo
ol7_UEKR6 | 3.0 kB 00:00:00
ol7_latest | 3.6 kB 00:00:00
(1/5): ol7_latest/x86_64/group_gz | 136 kB 00:00:00
(2/5): ol7_UEKR6/x86_64/updateinfo | 1.2 MB 00:00:00
(3/5): ol7_latest/x86_64/updateinfo | 3.6 MB 00:00:00
(4/5): ol7_latest/x86_64/primary_db | 52 MB 00:00:10
(5/5): ol7_UEKR6/x86_64/primary_db | 80 MB 00:00:13
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.x86_64 0:1.2.7-21.el7_9 will be installed
--> Processing Dependency: zlib = 1.2.7-21.el7_9 for package: zlib-devel-1.2.7-21.el7_9.x86_64
--> Running transaction check
---> Package zlib.x86_64 0:1.2.7-18.el7 will be updated
---> Package zlib.x86_64 0:1.2.7-21.el7_9 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================================================================================
Installing:
zlib-devel x86_64 1.2.7-21.el7_9 ol7_latest 50 k
Updating for dependencies:
zlib x86_64 1.2.7-21.el7_9 ol7_latest 90 k
Transaction Summary
=========================================================================================================================================================================================================================
Install 1 Package
Upgrade ( 1 Dependent package)
Total download size: 139 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for ol7_latest
warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/zlib-1.2.7-21.el7_9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for zlib-1.2.7-21.el7_9.x86_64.rpm is not installed
(1/2): zlib-1.2.7-21.el7_9.x86_64.rpm | 90 kB 00:00:00
(2/2): zlib-devel-1.2.7-21.el7_9.x86_64.rpm | 50 kB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 292 kB/s | 139 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Importing GPG key 0xEC551F03:
Userid : "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>"
Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03
Package : 7:oraclelinux-release-7.9-1.0.9.el7.x86_64 (@anaconda/7.9)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : zlib-1.2.7-21.el7_9.x86_64 1/3
Installing : zlib-devel-1.2.7-21.el7_9.x86_64 2/3
Cleanup : zlib-1.2.7-18.el7.x86_64 3/3
Verifying : zlib-devel-1.2.7-21.el7_9.x86_64 1/3
Verifying : zlib-1.2.7-21.el7_9.x86_64 2/3
Verifying : zlib-1.2.7-18.el7.x86_64 3/3
Installed:
zlib-devel.x86_64 0:1.2.7-21.el7_9
Dependency Updated:
zlib.x86_64 0:1.2.7-21.el7_9
Complete!
Re-try the user space build:
[markh@oracleLinux7 mhvtl]$ make
make -C usr
make[1]: Entering directory `/home/markh/src/mhvtl/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtltape.o vtltape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ssc.o ssc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o default_ssc_pm.o default_ssc_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ult3580_pm.o ult3580_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o hp_ultrium_pm.o hp_ultrium_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o stk9x40_pm.o stk9x40_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o quantum_dlt_pm.o quantum_dlt_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ait_pm.o ait_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o t10000_pm.o t10000_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ibm_03592_pm.o ibm_03592_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o minilzo.o -c minilzo.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -std=gnu99 -o crc32c.o -c crc32c.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -std=gnu99 -o reed-solomon.o -c reed-solomon.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -std=gnu99 -o mhvtl_io.o -c mhvtl_io.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o vtltape vtltape.o ssc.o \
default_ssc_pm.o \
ult3580_pm.o \
hp_ultrium_pm.o \
stk9x40_pm.o \
quantum_dlt_pm.o \
ait_pm.o t10000_pm.o ibm_03592_pm.o \
minilzo.o \
crc32c.o \
reed-solomon.o \
mhvtl_io.o \
-lz -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -fPIC -std=gnu99 -o tape_util.o -c tape_util.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o dump_tape crc32c.o mhvtl_io.o reed-solomon.o tape_util.o minilzo.o default_ssc_pm.o -L. \
-lz -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtlcmd.o vtlcmd.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o vtlcmd vtlcmd.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o dump_messageQ.o dump_messageQ.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o dump_messageQ dump_messageQ.o -L. -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o mktape.o mktape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o mktape mktape.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o edit_tape.o edit_tape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o edit_tape edit_tape.o -L. -lvtlcart -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtllibrary.o vtllibrary.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtl_cart_type.o vtl_cart_type.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o stklxx_pm.o stklxx_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o hp_smc_pm.o hp_smc_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o overland_pm.o overland_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o spectra_pm.o spectra_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o scalar_pm.o scalar_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ibm_smc_pm.o ibm_smc_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o default_smc_pm.o default_smc_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o vtllibrary vtllibrary.o -L. -lvtlscsi \
vtl_cart_type.o \
stklxx_pm.o \
hp_smc_pm.o \
overland_pm.o \
spectra_pm.o \
scalar_pm.o \
ibm_smc_pm.o \
default_smc_pm.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o tapeexerciser tapeexerciser.c
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' make_vtl_media.in > make_vtl_media
chmod 755 make_vtl_media
sed -e s'|@FIRMWAREDIR@|/usr/lib/firmware|' mhvtl_kernel_mod_build.in > mhvtl_kernel_mod_build
chmod 755 mhvtl_kernel_mod_build
ln -s dump_tape preload_tape
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" mhvtl-device-conf-generator.c -o mhvtl-device-conf-generator
make[1]: Leaving directory `/home/markh/src/mhvtl/usr'
make -C etc
make[1]: Entering directory `/home/markh/src/mhvtl/etc'
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' mhvtl.conf.in > mhvtl.conf
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' vtltape@.service.in > vtltape@.service
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' vtllibrary@.service.in > vtllibrary@.service
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' mhvtl-load-modules.service.in > mhvtl-load-modules.service
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' generate_device_conf.in > generate_device_conf
chmod 755 generate_device_conf
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' \
-e s'/@HOME_PATH@/\/opt\/mhvtl/' generate_library_contents.in > generate_library_contents
chmod 755 generate_library_contents
bash ./generate_device_conf --force --home-dir=/opt/mhvtl --override-home
===> Generating: ./device.conf ...
bash ./generate_library_contents --force --config=.
===> Generating: ./library_contents.10 ...
===> Generating: ./library_contents.30 ...
make[1]: Leaving directory `/home/markh/src/mhvtl/etc'
make -C scripts
make[1]: Entering directory `/home/markh/src/mhvtl/scripts'
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' update_device.conf.in > update_device.conf
make[1]: Leaving directory `/home/markh/src/mhvtl/scripts'
Install:
[markh@oracleLinux7 mhvtl]$ sudo make install
make -C usr
make[1]: Entering directory `/home/markh/src/mhvtl/usr'
make[1]: Leaving directory `/home/markh/src/mhvtl/usr'
make -C etc
make[1]: Entering directory `/home/markh/src/mhvtl/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/markh/src/mhvtl/etc'
[snip]
install library_contents.5 /usr/share/man/man5/
make[1]: Leaving directory `/home/markh/src/mhvtl/man'
[ -d /opt/mhvtl ] || mkdir -p /opt/mhvtl
(cd kernel; tar --sort=name --mtime=@1 --format=gnu -czf ../mhvtl_kernel.tgz *)
tar: unrecognized option '--sort=name'
Try `tar --help' or `tar --usage' for more information.
make: *** [install] Error 64
Failed: I need to roll back (or make it conditional) the commit: df7bd006eb3b89efc1d0cf3ae345aee8b27f32a5
[markh@oracleLinux7 mhvtl]$ git apply -R df7bd006eb3b89efc1d0cf3ae345aee8b27f32a5
fatal: can't open patch 'df7bd006eb3b89efc1d0cf3ae345aee8b27f32a5': No such file or directory
[markh@oracleLinux7 mhvtl]$ git revert df7bd006eb3b89efc1d0cf3ae345aee8b27f32a5
[master 912bd25] Revert "Normalize tar file"
Committer: Mark Harvey <markh@oracleLinux7.localdomain>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 1 insertion(+), 1 deletion(-)
Clean up and re-try make
[markh@oracleLinux7 mhvtl]$ make distclean
make -C usr distclean
[snip]
Rebuild from source
[markh@oracleLinux7 mhvtl]$ make
make -C usr
make[1]: Entering directory `/home/markh/src/mhvtl/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic log.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic mode.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic vtllib.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic spc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic smc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic q.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ 912bd25\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic subprocess.c
cc -shared -o libvtlscsi.so vtllib.o spc.o smc.o q.o \
[snip]
make -C scripts
make[1]: Entering directory `/home/markh/src/mhvtl/scripts'
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' update_device.conf.in > update_device.conf
make[1]: Leaving directory `/home/markh/src/mhvtl/scripts'
[markh@oracleLinux7 mhvtl]$
install
[markh@oracleLinux7 mhvtl]$ sudo make install
[sudo] password for markh:
make -C usr
make[1]: Entering directory `/home/markh/src/mhvtl/usr'
make[1]: Leaving directory `/home/markh/src/mhvtl/usr'
make -C etc
make[1]: Entering directory `/home/markh/src/mhvtl/etc'
[snip]
===> Creating entry: /opt/mhvtl/G03039TA ...
Creating tape data ...
Creating new media directory: /opt/mhvtl/G03039TA
Creating new media data file: /opt/mhvtl/G03039TA/data
Creating new media index file: /opt/mhvtl/G03039TA/indx
Creating new media meta file: /opt/mhvtl/G03039TA/meta
mktape: create_tape(): /opt/mhvtl/G03039TA files created
[markh@oracleLinux7 mhvtl]$
Now start daemons:
[markh@oracleLinux7 mhvtl]$ sudo systemctl start mhvtl.target
[markh@oracleLinux7 mhvtl]$ lsscsi -g
[0:0:0:0] cd/dvd QEMU QEMU DVD-ROM 2.5+ /dev/sr0 /dev/sg1
[2:0:0:0] disk NUTANIX VDISK 0 /dev/sda /dev/sg0
[3:0:0:0] mediumx STK L700 0107 /dev/sch1 /dev/sg10
[3:0:1:0] tape IBM ULT3580-TD8 0107 /dev/st1 /dev/sg3
[3:0:2:0] tape IBM ULT3580-TD8 0107 /dev/st3 /dev/sg5
[3:0:3:0] tape IBM ULT3580-TD6 0107 /dev/st2 /dev/sg4
[3:0:4:0] tape IBM ULT3580-TD6 0107 /dev/st4 /dev/sg7
[3:0:8:0] mediumx STK L80 0107 /dev/sch0 /dev/sg6
[3:0:9:0] tape STK T10000B 0107 /dev/st0 /dev/sg2
[3:0:10:0] tape STK T10000B 0107 /dev/st7 /dev/sg11
[3:0:11:0] tape STK T10000B 0107 /dev/st5 /dev/sg8
[3:0:12:0] tape STK T10000B 0107 /dev/st6 /dev/sg9
[markh@oracleLinux7 mhvtl]$
All started successfully
I just tested a full build of the kernel module only (no install) on Tumbleweed, and all worked well.
On Sep 4, 2024, at 8:19 PM, Mark Harvey @.***> wrote:
Tried a build on fresh install of OracleLinux 7.9
@.** kernel]$ cat /etc/release Oracle Linux Server release 7.9 NAME="Oracle Linux Server" VERSION="7.9" ID="ol" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.9" PRETTY_NAME="Oracle Linux Server 7.9" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:oracle:linux:7:9:server" HOME_URL="https://linux.oracle.com/" BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7" ORACLE_BUGZILLA_PRODUCT_VERSION=7.9 ORACLE_SUPPORT_PRODUCT="Oracle Linux" ORACLE_SUPPORT_PRODUCT_VERSION=7.9 Red Hat Enterprise Linux Server release 7.9 (Maipo) Oracle Linux Server release 7.9 clone git repo:
@.*** src]$ git clone https://github.com/markh794/mhvtl.git Cloning into 'mhvtl'... remote: Enumerating objects: 8339, done. remote: Counting objects: 100% (923/923), done. remote: Compressing objects: 100% (309/309), done. remote: Total 8339 (delta 642), reused 862 (delta 611), pack-reused 7416 (from 1) Receiving objects: 100% (8339/8339), 3.29 MiB | 0 bytes/s, done. Resolving deltas: 100% (6022/6022), done. cd into kernel module:
@. src]$ cd mhvtl/ @. mhvtl]$ cd kernel/ @. kernel]$ make ./config.sh grep: /lib/modules/5.4.17-2102.201.3.el7uek.x86_64/build/include/linux/scsi_host.h: No such file or directory make -C /lib/modules/5.4.17-2102.201.3.el7uek.x86_64/build M=/home/markh/src/mhvtl/kernel modules make[1]: Entering directory
/usr/src/kernels/5.4.17-2102.201.3.el7uek.x86_64' CC [M] /home/markh/src/mhvtl/kernel/mhvtl.o Building modules, stage 2. MODPOST 1 modules CC [M] /home/markh/src/mhvtl/kernel/mhvtl.mod.o CTF LD [M] /home/markh/src/mhvtl/kernel/mhvtl.ko make[1]: Leaving directory
/usr/src/kernels/5.4.17-2102.201.3.el7uek.x86_64' @. kernel]$ sudo make installWe trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.
[sudo] password for markh: install -o root -g root -m 644 mhvtl.ko /lib/modules/5.4.17-2102.201.3.el7uek.x86_64/kernel/drivers/scsi/; \ depmod -a; \ if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \ sed -i 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules; \ fi Build user-space:
@. kernel]$ cd ../ @. mhvtl]$ make make -C usr make[1]: Entering directory `/home/markh/src/mhvtl/usr' cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic log.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic mode.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic vtllib.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic spc.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic smc.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic q.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic subprocess.c cc -shared -o libvtlscsi.so vtllib.o spc.o smc.o q.o \ mode.o log.o subprocess.o -lpthread cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic log.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic q.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic -o vtlcart.o vtlcart.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -fpic vtllib.c cc -shared -o libvtlcart.so vtllib.o vtlcart.o q.o log.o \ -lpthread cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtltape.o vtltape.c vtltape.c:98:18: fatal error: zlib.h: No such file or directory
include
^
compilation terminated. make[1]: [vtltape.o] Error 1 make[1]: Leaving directory `/home/markh/src/mhvtl/usr' make: [usr] Error 2 oops - missing zlib development package.. Install
@.*** mhvtl]$ sudo yum install zlib-devel Loaded plugins: langpacks, ulninfo ol7_UEKR6 | 3.0 kB 00:00:00
ol7_latest | 3.6 kB 00:00:00
(1/5): ol7_latest/x86_64/group_gz | 136 kB 00:00:00
(2/5): ol7_UEKR6/x86_64/updateinfo | 1.2 MB 00:00:00
(3/5): ol7_latest/x86_64/updateinfo | 3.6 MB 00:00:00
(4/5): ol7_latest/x86_64/primary_db | 52 MB 00:00:10
(5/5): ol7_UEKR6/x86_64/primary_db | 80 MB 00:00:13
Resolving Dependencies --> Running transaction check ---> Package zlib-devel.x86_64 0:1.2.7-21.el7_9 will be installed --> Processing Dependency: zlib = 1.2.7-21.el7_9 for package: zlib-devel-1.2.7-21.el7_9.x86_64 --> Running transaction check ---> Package zlib.x86_64 0:1.2.7-18.el7 will be updated ---> Package zlib.x86_64 0:1.2.7-21.el7_9 will be an update --> Finished Dependency ResolutionDependencies Resolved
========================================================================================================================================================================================================================= Package Arch Version Repository Size
Installing: zlib-devel x86_64 1.2.7-21.el7_9 ol7_latest 50 k Updating for dependencies: zlib x86_64 1.2.7-21.el7_9 ol7_latest 90 k
Transaction Summary
Install 1 Package Upgrade ( 1 Dependent package)
Total download size: 139 k Is this ok [y/d/N]: y Downloading packages: No Presto metadata available for ol7_latest warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/zlib-1.2.7-21.el7_9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA Public key for zlib-1.2.7-21.el7_9.x86_64.rpm is not installed (1/2): zlib-1.2.7-21.el7_9.x86_64.rpm | 90 kB 00:00:00
(2/2): zlib-devel-1.2.7-21.el7_9.x86_64.rpm | 50 kB 00:00:00Total 292 kB/s | 139 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle Importing GPG key 0xEC551F03: Userid : "Oracle OSS group (Open Source Software group) @.>" Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03 Package : 7:oraclelinux-release-7.9-1.0.9.el7.x86_64 @./7.9) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : zlib-1.2.7-21.el7_9.x86_64 1/3 Installing : zlib-devel-1.2.7-21.el7_9.x86_64 2/3 Cleanup : zlib-1.2.7-18.el7.x86_64 3/3 Verifying : zlib-devel-1.2.7-21.el7_9.x86_64 1/3 Verifying : zlib-1.2.7-21.el7_9.x86_64 2/3 Verifying : zlib-1.2.7-18.el7.x86_64 3/3Installed: zlib-devel.x86_64 0:1.2.7-21.el7_9
Dependency Updated: zlib.x86_64 0:1.2.7-21.el7_9
Complete! Re-try the user space build:
@.* mhvtl]$ make make -C usr make[1]: Entering directory `/home/markh/src/mhvtl/usr' cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtltape.o vtltape.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ssc.o ssc.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o default_ssc_pm.o default_ssc_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ult3580_pm.o ult3580_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o hp_ultrium_pm.o hp_ultrium_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o stk9x40_pm.o stk9x40_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o quantum_dlt_pm.o quantum_dlt_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ait_pm.o ait_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o t10000_pm.o t10000_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ibm_03592_pm.o ibm_03592_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o minilzo.o -c minilzo.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -std=gnu99 -o crc32c.o -c crc32c.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -std=gnu99 -o reed-solomon.o -c reed-solomon.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -std=gnu99 -o mhvtl_io.o -c mhvtl_io.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o vtltape vtltape.o ssc.o \ default_ssc_pm.o \ ult3580_pm.o \ hp_ultrium_pm.o \ stk9x40_pm.o \ quantum_dlt_pm.o \ ait_pm.o t10000_pm.o ibm_03592_pm.o \ minilzo.o \ crc32c.o \ reed-solomon.o \ mhvtl_io.o \ -lz -L. -lvtlcart -lvtlscsi cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -fPIC -std=gnu99 -o tape_util.o -c tape_util.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o dump_tape crc32c.o mhvtl_io.o reed-solomon.o tape_util.o minilzo.o default_ssc_pm.o -L. \ -lz -L. -lvtlcart -lvtlscsi cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtlcmd.o vtlcmd.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o vtlcmd vtlcmd.o -L. -lvtlcart -lvtlscsi cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o dump_messageQ.o dump_messageQ.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o dump_messageQ dump_messageQ.o -L. -lvtlscsi cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o mktape.o mktape.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o mktape mktape.o -L. -lvtlcart -lvtlscsi cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o edit_tape.o edit_tape.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o edit_tape edit_tape.o -L. -lvtlcart -lvtlscsi cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtllibrary.o vtllibrary.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o vtl_cart_type.o vtl_cart_type.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o stklxx_pm.o stklxx_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o hp_smc_pm.o hp_smc_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o overland_pm.o overland_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o spectra_pm.o spectra_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o scalar_pm.o scalar_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o ibm_smc_pm.o ibm_smc_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -c -o default_smc_pm.o default_smc_pm.c cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o vtllibrary vtllibrary.o -L. -lvtlscsi \ vtl_cart_type.o \ stklxx_pm.o \ hp_smc_pm.o \ overland_pm.o \ spectra_pm.o \ scalar_pm.o \ ibm_smc_pm.o \ default_smc_pm.o cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" -o tapeexerciser tapeexerciser.c sed -e *@._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' make_vtl_media.in > make_vtl_media chmod 755 make_vtl_media sed -e @.@|/usr/lib/firmware|' mhvtl_kernel_mod_build.in > mhvtl_kernel_mod_build chmod 755 mhvtl_kernel_mod_build ln -s dump_tape preload_tape cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION=\"1.7.1\" -DMHVTL_GITDATE=\"%aI\" -DMHVTL_GITHASH=\"commit:\ f88d9e5\" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -DSYSTEMD_SERVICE_DIR=\"/lib/systemd/system\" mhvtl-device-conf-generator.c -o mhvtl-device-conf-generator make[1]: Leaving directory
/home/markh/src/mhvtl/usr' make -C etc make[1]: Entering directory
/home/markh/src/mhvtl/etc' sed -e @._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' mhvtl.conf.in > mhvtl.conf sed -e @._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' @. > @. sed -e @._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' @. > @. sed -e @._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' mhvtl-load-modules.service.in > mhvtl-load-modules.service sed -e @._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' generate_device_conf.in > generate_device_conf chmod 755 generate_device_conf sed -e @._PATH@/\/etc\/mhvtl/' \ -e @._PATH@/\/opt\/mhvtl/' generate_library_contents.in > generate_library_contents chmod 755 generate_library_contents bash ./generate_device_conf --force --home-dir=/opt/mhvtl --override-home ===> Generating: ./device.conf ... bash ./generate_library_contents --force --config=. ===> Generating: ./library_contents.10 ... ===> Generating: ./library_contents.30 ... make[1]: Leaving directory/home/markh/src/mhvtl/etc' make -C scripts make[1]: Entering directory
/home/markh/src/mhvtl/scripts' sed -e @.***_PATH@/\/etc\/mhvtl/' update_device.conf.in > update_device.conf make[1]: Leaving directory `/home/markh/src/mhvtl/scripts' Install:@.*** mhvtl]$ sudo make install make -C usr make[1]: Entering directory
/home/markh/src/mhvtl/usr' make[1]: Leaving directory
/home/markh/src/mhvtl/usr' make -C etc make[1]: Entering directory/home/markh/src/mhvtl/etc' make[1]: Nothing to be done for
all'. make[1]: Leaving directory `/home/markh/src/mhvtl/etc'[snip] install library_contents.5 /usr/share/man/man5/ make[1]: Leaving directory
/home/markh/src/mhvtl/man' [ -d /opt/mhvtl ] || mkdir -p /opt/mhvtl (cd kernel; tar --sort=name ***@***.*** --format=gnu -czf ../mhvtl_kernel.tgz *) tar: unrecognized option '--sort=name' Try
tar --help' or `tar --usage' for more information. make: *** [install] Error 64 Failed: I need to roll back (or make it conditional) the commit: df7bd00 https://github.com/markh794/mhvtl/commit/df7bd006eb3b89efc1d0cf3ae345aee8b27f32a5 — Reply to this email directly, view it on GitHub https://github.com/markh794/mhvtl/issues/135#issuecomment-2330517025, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOJGHEJPWII6VWA3PFA6VDZU7ESLAVCNFSM6AAAAABNFYM6XWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQGUYTOMBSGU. You are receiving this because you are subscribed to this thread.
@markh794 Thanks for your very detail testing! Really helpful for me! will try again on mysql env.
Thanks Jason
Hi Mark,
when a install version 1.7.1 , got below error:
INFRA [root@dc02psqldbuat07 mhvtl-1.7-1_release]# cd kernel/ INFRA [root@dc02psqldbuat07 kernel]# make ./config.sh error: you must supply environment variable KDIR or you do not have the kernel-devel installed make: *** [config.h] Error 1
I install the RPM of kernel-devel : INFRA [root@dc02psqldbuat07 kernel]# rpm -qa | grep kernel-devel kernel-devel-3.10.0-1160.119.1.0.1.el7.x86_64
My linux version:
INFRA [root@dc02psqldbuat07 kernel]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.8 (Maipo)
kernal info: INFRA [root@dc02psqldbuat07 kernel]# uname -r 4.14.35-1902.301.1.el7uek.x86_64
Is there something mis-match with RPM kernal version?
Thanks Jason