<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11950</bug_id>
          
          <creation_ts>2017-08-18 16:27:33 +0000</creation_ts>
          <short_desc>(refkit) Error compiling libtpm-native-1.0</short_desc>
          <delta_ts>2017-11-14 13:03:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>IoT Reference OS Kit</product>
          <component>intel-iot-refkit-security</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          <blocked>11951</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Mikko Ylinen">mikko.ylinen</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="yeoh ee peng">ee.peng.yeoh</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75995</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-08-18 16:27:33 +0000</bug_when>
    <thetext>As seen in Autobuilder:
https://autobuilder.yocto.io/builders/nightly-refkit/builds/122/steps/BuildImages/logs/stdio

relevant errors:

| x86_64-linux-libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -isystem/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-refkit/build/build/tmp-glibc/work/x86_64-linux/libtpm-native/1.0+gitAUTOINC+ad44846dda-r0/recipe-sysroot-native/usr/include -include tpm_library_conf.h -I../include/libtpms -fstack-protector-strong -Wl,-z,relro -Wl,-z,now -DTPM_V12 -DTPM_PCCLIENT -DTPM_VOLATILE_LOAD -DTPM_ENABLE_ACTIVATE -DTPM_AES -DTPM_LIBTPMS_CALLBACKS -DTPM_NV_DISK -DTPM_POSIX -isystem/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-refkit/build/build/tmp-glibc/work/x86_64-linux/libtpm-native/1.0+gitAUTOINC+ad44846dda-r0/recipe-sysroot-native/usr/include -O2 -pipe -Wall -Werror -Wreturn-type -Wsign-compare -c tpm12/tpm_delegate.c  -fPIC -DPIC -o tpm12/.libs/libtpms_tpm12_la-tpm_delegate.o
| tpm12/tpm_crypto.c: In function ‘TPM_RSAGenerateKeyPair’:
| tpm12/tpm_crypto.c:362:9: error: ‘RSA_generate_key’ is deprecated [-Werror=deprecated-declarations]
|          rsa = RSA_generate_key(num_bits, e, NULL, NULL);                /* freed @1 */
|          ^~~
| In file included from /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-refkit/build/build/tmp-glibc/work/x86_64-linux/libtpm-native/1.0+gitAUTOINC+ad44846dda-r0/recipe-sysroot-native/usr/include/openssl/asn1.h:15:0,
|                  from /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-refkit/build/build/tmp-glibc/work/x86_64-linux/libtpm-native/1.0+gitAUTOINC+ad44846dda-r0/recipe-sysroot-native/usr/include/openssl/rsa.h:16,
|                  from /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-refkit/build/build/tmp-glibc/work/x86_64-linux/libtpm-native/1.0+gitAUTOINC+ad44846dda-r0/recipe-sysroot-native/usr/include/openssl/engine.h:24,
|                  from tpm12/tpm_crypto.c:50:
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-refkit/build/build/tmp-glibc/work/x86_64-linux/libtpm-native/1.0+gitAUTOINC+ad44846dda-r0/recipe-sysroot-native/usr/include/openssl/rsa.h:193:1: note: declared here
|  DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
|  ^
| tpm12/tpm_crypto.c:370:58: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
|          rc = TPM_bn2binMalloc(n, &amp;nbytes, (TPM_BIGNUM)rsa-&gt;n, num_bits/8); /* freed by caller */
|</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76111</commentid>
    <comment_count>1</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-08-24 03:18:27 +0000</bug_when>
    <thetext>This is due to openssl/openssl10 that now got changed back to openssl only in OE-core. Should be RESOLVED/OBSOLETE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76127</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-08-24 14:42:10 +0000</bug_when>
    <thetext>We will end up moving to 1.1 so I think this needs to stay open to remind us this will need fixing eventually</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76154</commentid>
    <comment_count>3</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-08-25 09:37:32 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; We will end up moving to 1.1 so I think this needs to stay open to remind us
&gt; this will need fixing eventually


This can be done with a SRCREV update but the core problem currently is the openssl/openssl10 co-existence in the sysroot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78199</commentid>
    <comment_count>4</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-11-14 13:03:24 +0000</bug_when>
    <thetext>Oe-core went back to openssl 1.0 and no plans to move to 1.1 just yet. Closing as obsolete for now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>