<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error:  (.text+0xb0): undefined reference to `sgx_unseal_data' in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Error-text-0xb0-undefined-reference-to-sgx-unseal-data/m-p/1151344#M2573</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Hello every one,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am developing a simple program as a beginner to implement SGX&amp;nbsp;data sealing. &amp;nbsp;while calling&amp;nbsp;`sgx_unseal_data' from SGX SDK, it prompts compilation error. I did in the following way:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sgx_status_t ecall_unseal(sgx_sealed_data_t* sealed_data, size_t sealed_size,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sgx_sealed_data_t* plaintext, uint32_t plaintext_len)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sgx_status_t status = sgx_unseal_data(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sealed_data,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(uint8_t*)&amp;amp; plaintext,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;plaintext_len);&lt;BR /&gt;return &amp;nbsp;status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;==================================&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It seems all &amp;nbsp;make file, enclave edl file, eclave configuration file are set well.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;The error while compiling is as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$ sgx-file-enc git:(master) ✗ make&lt;BR /&gt;cc -m64 -O2 -fPIC -Wno-attributes -I/opt/sgxsdk/include -DNDEBUG -DEDEBUG -UDEBUG -c enclave_u.c -o enclave_u.o&lt;BR /&gt;cc enclave_u.o app.o -o app -m64 -O2 -L/opt/sgxsdk/lib64 -lsgx_urts -lpthread -lsgx_uae_service&lt;BR /&gt;/usr/bin/ld: enclave_u.o: in function `ecall_unseal':&lt;BR /&gt;enclave_u.c:(.text+0xb0): undefined reference to `sgx_unseal_data'&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;make: *** [Makefile:76: app] Error 1&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;would you help me in solving the error prompted?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you a lot in advance.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 13:56:00 GMT</pubDate>
    <dc:creator>degefa__Fikadu</dc:creator>
    <dc:date>2019-12-04T13:56:00Z</dc:date>
    <item>
      <title>Error:  (.text+0xb0): undefined reference to `sgx_unseal_data'</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Error-text-0xb0-undefined-reference-to-sgx-unseal-data/m-p/1151344#M2573</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Hello every one,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am developing a simple program as a beginner to implement SGX&amp;nbsp;data sealing. &amp;nbsp;while calling&amp;nbsp;`sgx_unseal_data' from SGX SDK, it prompts compilation error. I did in the following way:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sgx_status_t ecall_unseal(sgx_sealed_data_t* sealed_data, size_t sealed_size,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sgx_sealed_data_t* plaintext, uint32_t plaintext_len)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sgx_status_t status = sgx_unseal_data(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sealed_data,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(uint8_t*)&amp;amp; plaintext,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;plaintext_len);&lt;BR /&gt;return &amp;nbsp;status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;==================================&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It seems all &amp;nbsp;make file, enclave edl file, eclave configuration file are set well.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;The error while compiling is as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$ sgx-file-enc git:(master) ✗ make&lt;BR /&gt;cc -m64 -O2 -fPIC -Wno-attributes -I/opt/sgxsdk/include -DNDEBUG -DEDEBUG -UDEBUG -c enclave_u.c -o enclave_u.o&lt;BR /&gt;cc enclave_u.o app.o -o app -m64 -O2 -L/opt/sgxsdk/lib64 -lsgx_urts -lpthread -lsgx_uae_service&lt;BR /&gt;/usr/bin/ld: enclave_u.o: in function `ecall_unseal':&lt;BR /&gt;enclave_u.c:(.text+0xb0): undefined reference to `sgx_unseal_data'&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;make: *** [Makefile:76: app] Error 1&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;would you help me in solving the error prompted?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you a lot in advance.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 13:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Error-text-0xb0-undefined-reference-to-sgx-unseal-data/m-p/1151344#M2573</guid>
      <dc:creator>degefa__Fikadu</dc:creator>
      <dc:date>2019-12-04T13:56:00Z</dc:date>
    </item>
  </channel>
</rss>

