Menu

Installation error

LEO JIA
2019-02-13
2019-02-13
  • LEO JIA

    LEO JIA - 2019-02-13

    I tried to install this on Fedora 28 VM and encountered this error after I ran the following scipt

    $ mkdir ibmtpm && cd ibmtpm
    $ wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm974.tar.gz
    $ tar -zxvf ibmtpm974.tar.gz
    $ cd src
    $ make -j5
    

    Error:

    /usr/bin/gcc -Wall -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Werror -Wsign-compare -c -ggdb -O0 -DTPM_POSIX -D_POSIX_ -I../utils -I. CryptUtil.c -o CryptUtil.o
    In file included from TpmBuildSwitches.h:74,
                     from Implementation.h:65,
                     from Tpm.h:66,
                     from CryptRand.c:62:
    CryptRand.c: In function CryptRandomStir:
    CompilerDependencies.h:145:34: error: dfResult is used uninitialized in this function [-Werror=uninitialized]
     #   define  NOT_REFERENCED(x) (x = x)
                                      ^
    cc1: all warnings being treated as errors
    make: *** [makefile:79: CryptRand.o] Error 1
    make: *** Waiting for unfinished jobs....
    

    My openssl version and gcc version are following

    gcc --version
    gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    openssl version
    OpenSSL 1.1.0i-fips  14 Aug 2018
    

    Is it because I am using a VM. I followed the instruction in the tpm2-tools repo.

     
    • Ken Goldman

      Ken Goldman - 2019-02-13

      I suspect that this was fixed.

      974 is two years old. Is there a reason you must use that, or can you use a new version?

       
      • LEO JIA

        LEO JIA - 2019-02-13

        Thanks for pointing this out. I did realized that. I will go with the newer version.

         

Log in to post a comment.