Menu

#30 Debian 9 install issue (SSL error during the install phase)

1.0
closed
nobody
None
2020-06-04
2019-10-08
Konstantin
No

Cannot install SCST on Debian 9
uname -a
Linux _ 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux

Make phase without any issues, but install crashes at a signing step:

KDIR=/lib/modules/4.9.0-11-amd64/build ../../scripts/sign-modules
Signing /home/strgadm/scst/scst-svn/scst/src/scst.ko
At main.c:158:

  • SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:74
  • SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:81
    sign-file: /home/strgadm/scst/scst-svn/scst/src/certs/scst_module_key.priv: No such file or directory
    Makefile:126: recipe for target 'install' failed
    make[2]: *** [install] Error 1
    make[2]: Leaving directory '/home/strgadm/scst/scst-svn/scst/src'
    Makefile:39: recipe for target 'install' failed
    make[1]: *** [install] Error 2
    make[1]: Leaving directory '/home/strgadm/scst/scst-svn/scst'
    Makefile:218: recipe for target 'scst_install' failed
    make: *** [scst_install] Error 2

Full make output in the attachment.

Is it anything that I can do by myown?

Thanks in advance!
Regards,
Konstantin

1 Attachments

Discussion

1 2 > >> (Page 1 of 2)
  • Konstantin

    Konstantin - 2019-10-08

    I saw familiar case here https://sourceforge.net/p/scst/mailman/message/35810867/
    I thought about kernel upgrade, but I want to deploy SCST on the base Debian 9.

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-08

    With which version of SCST did you encounter this build error? Yesterday I ran 'make dpkg' for the SCST trunk inside an Ubuntu 19.10 virtual machine and that went fine. The most recent fix for module signing that has been checked in on the trunk is r8607.

     
  • Konstantin

    Konstantin - 2019-10-08

    This is for for trunk r8609

     
  • Konstantin

    Konstantin - 2019-10-08

    Just tested the same build for Debian 10 (Linux russtrgtest 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux)
    All builds are finished fine. But I would like to use exactly Debian 9 as more stable, and tested.

     
  • Konstantin

    Konstantin - 2019-10-09

    The problem was in a kernel config (linux-headers) file, a parameter CONFIG_MODULE_SIG_HASH= is absent. That is why ../scst-svn/scst/src/certs/Makefile worked incorrectly. Exactly the following line:
    CONFIG_MODULE_SIG_HASH := $(shell sed -n 's/^CONFIG_MODULE_SIG_HASH="([^"]*)"$$/\1/p' "$(KDIR)/.config" | { read -r line; [ -n "$$line" ] && echo "$$line" || echo sha256; })
    Are you shure that here, between sed part and {}, should be AND operator, not OR?

     
  • Konstantin

    Konstantin - 2019-10-09

    Ok.. OR will not helped :)
    If I make requred cert manually, a buid finishes successfully.

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-09

    The patch I checked in yesterday is a fix for CentOS 6. I'm still working on a fix for Debian 9.

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-11

    Please retest with trunk r8617 on Debian 9.

     
  • Konstantin

    Konstantin - 2019-10-11

    Hi Bart, thanks for the fast response!
    "make" finishes successfully, but with some errors during the build process.
    "make install" cannot be finished due to qla build error. Full build log in the attachment.
    How can I help you?

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-11

    That's very weird. Can you check with "svn status" whether your source tree is clean and whether or not the file qla_def.h has not been deleted accidentally from the source tree?

     
  • Konstantin

    Konstantin - 2019-10-12

    Here is an output of "svn status":

    :/home/strgadmin/scst-svn# svn status
    ?       iscsi-scst/conftest/dev_attr_max_recv_sge/.tmp_versions
    

    And here is find output:

    :/home/strgadmin/scst-svn# find -type f -name "qla_def.h"
    ./qla2x00t/qla_def.h
    ./qla2x00t-32gbit/qla_def.h
    

    Is there anything else how I can help you?

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-12

    How did you invoke 'make'? If I run the following commands SCST build and installs fine on Debian 9:

    export BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y
    for d in scst fcst iscsi-scst scst_local srpt qla2x00t/qla2x00-target; do
       make -sC $d install
    done
    depmod
    
     

    Last edit: Bart Van Assche 2019-10-12
    • Konstantin

      Konstantin - 2019-10-14

      I am doing Debian 9 installation in Expert mode. Is it possible that SCST needs some libraries from default installation?

       
  • Konstantin

    Konstantin - 2019-10-14

    If I am trying to run "make qla"
    I get following output:

    :/home/strgadmin/scst-svn# make qla
    cd qla2xxx-unified-target && make all
    /bin/bash: line 0: cd: qla2xxx-unified-target: No such file or directory
    Makefile:254: recipe for target 'qla' failed
    make: *** [qla] Error 1
    
     
  • Konstantin

    Konstantin - 2019-10-14

    How did you invoke 'make'?
    If I run: make scst scst_install iscsi iscsi_install
    It finishes without errors, I can find it using lsmod:

    lsmod | grep scst
    scst                  991232  0
    dlm                   172032  1 scst
    scsi_mod              225280  5 sd_mod,megaraid_sas,libata,scst,sg
    

    But I cannot find it as a service:

    service status scst
    status: unrecognized service
    

    Error with qla I get when I am trying to run: make install scst scst_install iscsi iscsi_install
    Am I doing wrong?

     
  • Konstantin

    Konstantin - 2019-10-14

    After fresh default clean install runed: "make qla"
    Output the same:

    # make qla
    cd qla2xxx-unified-target && make all
    /bin/bash: line 0: cd: qla2xxx-unified-target: No such file or directory
    Makefile:254: recipe for target 'qla' failed
    make: *** [qla] Error 1
    

    I do not need qla, but due to it the make crashes each time.

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-15

    I have removed all references to the unified target from the Makefile. As one can see running 'make qla' now works fine:

    cd ~/software/scst-trunk/ && make -sC scst && BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y make qla
    cd qla2x00t/qla2x00-target && make all
    make[1]: Entering directory '/home/bart/software/scst-trunk/qla2x00t/qla2x00-target'
    make BUILD_2X_MODULE=y CONFIG_SCSI_QLA2XXX_TARGET=y \
        M=/home/bart/software/scst-trunk/qla2x00t/qla2x00-target/.. -C /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/.. all
    make[2]: Entering directory '/home/bart/software/scst-trunk/qla2x00t'
    make -C /lib/modules/5.3.6+/build M=/home/bart/software/scst-trunk/qla2x00t BUILD_INI=m \
        y=CONFIG_SCSI_QLA2XXX_TARGET
    make[3]: Entering directory '/home/bart/software/linux-kernel/linux-v5.3'
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_os.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_init.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_mbx.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_iocb.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_isr.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_gs.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_dbg.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_sup.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_attr.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_mid.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_dfs.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_bsg.o
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla_nx.o
      LD [M]  /home/bart/software/scst-trunk/qla2x00t/qla2xxx_scst.o
      Building modules, stage 2.
      MODPOST 1 modules
      CC      /home/bart/software/scst-trunk/qla2x00t/qla2xxx_scst.mod.o
      LD [M]  /home/bart/software/scst-trunk/qla2x00t/qla2xxx_scst.ko
    make[3]: Leaving directory '/home/bart/software/linux-kernel/linux-v5.3'
    make[2]: Leaving directory '/home/bart/software/scst-trunk/qla2x00t'
    cp /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/../../scst/src/Module.symvers .
    cat /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/../Module.symvers >>Module.symvers
    make -C /lib/modules/5.3.6+/build M=/home/bart/software/scst-trunk/qla2x00t/qla2x00-target BUILD_INI=m
    make[2]: Entering directory '/home/bart/software/linux-kernel/linux-v5.3'
      CC [M]  /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/qla2x00t.o
      LD [M]  /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/qla2x00tgt.o
      Building modules, stage 2.
      MODPOST 1 modules
      CC      /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/qla2x00tgt.mod.o
      LD [M]  /home/bart/software/scst-trunk/qla2x00t/qla2x00-target/qla2x00tgt.ko
    make[2]: Leaving directory '/home/bart/software/linux-kernel/linux-v5.3'
    make[1]: Leaving directory '/home/bart/software/scst-trunk/qla2x00t/qla2x00-target'
    
     
  • Konstantin

    Konstantin - 2019-10-15

    Hi Bart,
    I Switched to Ubuntu 18.04 LTS:
    Before your fix I had the same output as for Debian:
    make phase (sudo make scst scst_install iscsi iscsi_install) finished without errors.
    install phase (sudo make install scst scst_install iscsi iscsi_install) - the same error as for Debian:

    ...
    make[2]: Entering directory `/usr/src/linux-headers-4.2.0-27-generic'
      LD      /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/built-in.o
      CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o
    In file included from /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.c:43:0:
    /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.h:25:21: fatal error: qla_def.h: No such file or directory
     #include <qla_def.h>
                         ^
    compilation terminated.
    make[3]: *** [/home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o] Error 1
    make[2]: *** [_module_/home/strgadmin/scst-svn/qla2x00t/qla2x00-target] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-4.2.0-27-generic'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/strgadmin/scst-svn/qla2x00t/qla2x00-target'
    make: *** [install] Error 2
    

    After the fix if I run "make install scst scst_install iscsi iscsi_install", I get still the same error as for "make qla":

    ...
    make[1]: Entering directory `/home/strgadmin/scst-svn/qla2x00t/qla2x00-target'
    cp /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/../../scst/src/Module.symvers .
    make -C /lib/modules/4.2.0-27-generic/build M=/home/strgadmin/scst-svn/qla2x00t/qla2x00-target BUILD_INI=m
    make[2]: Entering directory `/usr/src/linux-headers-4.2.0-27-generic'
      LD      /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/built-in.o
      CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o
    In file included from /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.c:43:0:
    /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.h:25:21: fatal error: qla_def.h: No such file or directory
     #include <qla_def.h>
                         ^
    compilation terminated.
    make[3]: *** [/home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o] Error 1
    make[2]: *** [_module_/home/strgadmin/scst-svn/qla2x00t/qla2x00-target] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-4.2.0-27-generic'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/strgadmin/scst-svn/qla2x00t/qla2x00-target'
    make: *** [install] Error 2
    

    However I ran "make" and "make install" for scst, iscsi-scst, scstadmin separately, without any errors.
    I think one of this scenerious "make scst scst_install iscsi iscsi_install" have reference to qla by default. For me make qla is still faulty.

     

    Last edit: Konstantin 2019-10-15
  • Konstantin

    Konstantin - 2019-10-15

    I will make VM for test purposes if you need my help in it.

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-15

    Please reread what I wrote. I think the problem is that you did not run the same commands as I did.

     
    • Konstantin

      Konstantin - 2019-10-16

      Ok. Here is an output for your command:

      scst-svn# make -sC scst && BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y make qla
      
      cd qla2x00t/qla2x00-target && make all
      make[1]: Entering directory '/home/strgadmin/scst-svn/qla2x00t/qla2x00-target'
      make BUILD_2X_MODULE=y CONFIG_SCSI_QLA2XXX_TARGET=y \
              M=/home/strgadmin/scst-svn/qla2x00t/qla2x00-target/.. -C /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/.. all
      make[2]: Entering directory '/home/strgadmin/scst-svn/qla2x00t'
      make -C /lib/modules/4.9.0-11-amd64/build M=/home/strgadmin/scst-svn/qla2x00t BUILD_INI=m \
              y=CONFIG_SCSI_QLA2XXX_TARGET
      make[3]: Entering directory '/usr/src/linux-headers-4.9.0-11-amd64'
        LD      /home/strgadmin/scst-svn/qla2x00t/built-in.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_os.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_init.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_mbx.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_iocb.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_isr.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_gs.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_dbg.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_sup.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_attr.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_mid.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_dfs.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_bsg.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla_nx.o
        LD [M]  /home/strgadmin/scst-svn/qla2x00t/qla2xxx_scst.o
        Building modules, stage 2.
        MODPOST 1 modules
        CC      /home/strgadmin/scst-svn/qla2x00t/qla2xxx_scst.mod.o
        LD [M]  /home/strgadmin/scst-svn/qla2x00t/qla2xxx_scst.ko
      make[3]: Leaving directory '/usr/src/linux-headers-4.9.0-11-amd64'
      make[2]: Leaving directory '/home/strgadmin/scst-svn/qla2x00t'
      cp /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/../../scst/src/Module.symvers .
      cat /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/../Module.symvers >>Module.symvers
      make -C /lib/modules/4.9.0-11-amd64/build M=/home/strgadmin/scst-svn/qla2x00t/qla2x00-target BUILD_INI=m
      make[2]: Entering directory '/usr/src/linux-headers-4.9.0-11-amd64'
        LD      /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/built-in.o
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o
        LD [M]  /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00tgt.o
        Building modules, stage 2.
        MODPOST 1 modules
        CC      /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00tgt.mod.o
        LD [M]  /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00tgt.ko
      make[2]: Leaving directory '/usr/src/linux-headers-4.9.0-11-amd64'
      make[1]: Leaving directory '/home/strgadmin/scst-svn/qla2x00t/qla2x00-target'
      root@russtrg02:/home/strgadmin/scst-svn# cd qla2x00t/qla2x00-target && make all
      make -C /lib/modules/4.9.0-11-amd64/build M=/home/strgadmin/scst-svn/qla2x00t/qla2x00-target BUILD_INI=m
      make[1]: Entering directory '/usr/src/linux-headers-4.9.0-11-amd64'
        CC [M]  /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o
      In file included from /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.c:43:0:
      /home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.h:25:21: fatal error: qla_def.h: No such file or directory
       #include <qla_def.h>
                           ^
      compilation terminated.
      /usr/src/linux-headers-4.9.0-11-common/scripts/Makefile.build:309: recipe for target '/home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o' failed
      make[4]: *** [/home/strgadmin/scst-svn/qla2x00t/qla2x00-target/qla2x00t.o] Error 1
      /usr/src/linux-headers-4.9.0-11-common/Makefile:1543: recipe for target '_module_/home/strgadmin/scst-svn/qla2x00t/qla2x00-target' failed
      make[3]: *** [_module_/home/strgadmin/scst-svn/qla2x00t/qla2x00-target] Error 2
      Makefile:152: recipe for target 'sub-make' failed
      make[2]: *** [sub-make] Error 2
      Makefile:8: recipe for target 'all' failed
      make[1]: *** [all] Error 2
      make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-11-amd64'
      Makefile:97: recipe for target 'all' failed
      make: *** [all] Error 2
      
       
  • Konstantin

    Konstantin - 2019-10-18

    I successfully built a deb packages. SCST target works well. I think manual build of each object is also could solve the problem. I am not sure what is wrong with Make scenario in my case.

     
  • Bart Van Assche

    Bart Van Assche - 2019-10-22

    Are we perhaps using different shells? Would it be possible to share the output of echo $SHELL and ls -l /bin/sh?

     
  • Konstantin

    Konstantin - 2019-11-08

    Hi Bart, I am sorry for the long delay with the reply.
    Here is my output for shell:

    echo $SHELL
    /bin/bash
    
    ls -l /bin/sh
    lrwxrwxrwx 1 root root 4 Jan 24  2017 /bin/sh -> dash
    
     
  • Bart Van Assche

    Bart Van Assche - 2019-11-14

    That's the same output as on my Debian 9 VM.

    No matter what I try, SCST builds fine inside that Debian 9 VM. Unless someone can tell me how to reproduce the build failure I will give up.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB