<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Missing size_t definition when compiling WolfSSL against Linux SGX SDK]]></title>
		<link>https://www.wolfssl.com/forums/topic1775-missing-sizet-definition-when-compiling-wolfssl-against-linux-sgx-sdk.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1775.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Missing size_t definition when compiling WolfSSL against Linux SGX SDK.]]></description>
		<lastBuildDate>Sat, 10 Jul 2021 04:20:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Missing size_t definition when compiling WolfSSL against Linux SGX SDK]]></title>
			<link>https://www.wolfssl.com/forums/post6140.html#p6140</link>
			<description><![CDATA[<p>Looks like that worked, thanks!</p>]]></description>
			<author><![CDATA[null@example.com (ENOTTY)]]></author>
			<pubDate>Sat, 10 Jul 2021 04:20:51 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6140.html#p6140</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing size_t definition when compiling WolfSSL against Linux SGX SDK]]></title>
			<link>https://www.wolfssl.com/forums/post6139.html#p6139</link>
			<description><![CDATA[<p>Hello ENOTTY,</p><p>I was able to reproduce your issue on that commit.&nbsp; Looks like we&#039;ve just checked in a fix here:<br /><a href="https://github.com/wolfSSL/wolfssl/commit/127add4bf7c18f1fb7cc7da889bcc88a742dde57">https://github.com/wolfSSL/wolfssl/comm … 8a742dde57</a><br />I retested with this commit applied and everything is building for me now.&nbsp; Let me know if it works for you.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Sat, 10 Jul 2021 00:00:37 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6139.html#p6139</guid>
		</item>
		<item>
			<title><![CDATA[Missing size_t definition when compiling WolfSSL against Linux SGX SDK]]></title>
			<link>https://www.wolfssl.com/forums/post6136.html#p6136</link>
			<description><![CDATA[<p>Hi all,</p><p>I&#039;m using WolfSSL latest from the master branch (commit a250e1f23a5b1002c57570a29a2db3048eed1316) and the Linux SGX SDK latest from the master branch (just a few commits after 2.13.3) on Ubuntu 20.04. I&#039;ve built the SGX SDK and installed it at /opt/intel/sgxsdk (default location).</p><p>When running build.sh in IDE/LINUX-SGX, I get an error &quot;unknown type name size_t&quot; on line 208 of wolfssl/wolfcrypt/types.h (where wc_ptr_t is defined). The error occurs with this call to gcc:</p><div class="codebox"><pre><code>cc  -DDEBUG_WOLFSSL -Wno-implicit-function-declaration -std=c11 -m64 -O2 -nostdinc -fvisibility=hidden -fpie -fstack-protector -I/wolfssl/ -I/wolfssl/wolfcrypt/ -I/opt/intel/sgxsdk/include -I/opt/intel/sgxsdk/include/tlibc -I/opt/intel/sgxsdk/include/stlport -I/wolfssl/wolfcrypt/test -I/wolfssl/wolfcrypt/benchmark/ -fno-builtin-printf -I. -DWOLFSSL_SGX -DWOLFSSL_HAVE_SP_RSA -DWOLFSSL_HAVE_SP_DH -DWOLFSSL_HAVE_SP_ECC   -c -o /wolfssl/wolfcrypt/src/aes.o /wolfssl/wolfcrypt/src/aes.c
In file included from /wolfssl/wolfssl/wolfcrypt/error-crypt.h:34,
                 from /wolfssl/wolfcrypt/src/aes.c:36:
/wolfssl/wolfssl/wolfcrypt/types.h:208:13: error: unknown type name &#039;size_t&#039;
  208 |     typedef size_t wc_ptr_t;
      |             ^~~~~~</code></pre></div><p>I currently believe that the WolfSSL system of includes isn&#039;t picking up the definition of size_t in the SGX SDK&#039;s tlibc header files (which are found in /opt/intel/sgxsdk/include/tlibc).</p><p>I haven&#039;t yet dug into WolfSSL&#039;s includes to figure out how it picks up either types.h or limits.h yet, but any advice would be appreciated.</p><p>Thanks for reading!</p>]]></description>
			<author><![CDATA[null@example.com (ENOTTY)]]></author>
			<pubDate>Fri, 09 Jul 2021 19:12:30 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6136.html#p6136</guid>
		</item>
	</channel>
</rss>
