<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)"]]></title><description><![CDATA[<p dir="auto">Hi, I am giving NetXMS a try. Since I'm CentOS 7, I'm doing 'from source' which seems well explained. I have run into a couple missing dependencies - OpenSSL (saw the document warning, thought that was already installed, but ok, fixed), curl (needed libcurl-devel, OK), libssh and libssh-devel, then this:</p>
<blockquote>
<p dir="auto">checking size of wchar_t... configure: error: in `/home/a-ptrivino/Downloads/netxms-2.2.13':<br />
configure: error: cannot compute sizeof (wchar_t)<br />
See `config.log' for more details</p>
</blockquote>
<p dir="auto">(That last line is a hoot, this is FROM config.log... :D)</p>
<p dir="auto">But I don't find anything about this in this forum. The germane part of config.log seems to be this:</p>
<pre><code>| #if HAVE_WCHAR_H
| #include &lt;wchar.h&gt;
| #endif
|
|
| static long int longval () { return (long int) (sizeof (wchar_t)); }
| static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
| #include &lt;stdio.h&gt;
| #include &lt;stdlib.h&gt;
| int
| main ()
| {
|
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     return 1;
|   if (((long int) (sizeof (wchar_t))) &lt; 0)
|     {
|       long int i = longval ();
|       if (i != ((long int) (sizeof (wchar_t))))
|       return 1;
|       fprintf (f, "%ld", i);
|     }
|   else
|     {
|       unsigned long int i = ulongval ();
|       if (i != ((long int) (sizeof (wchar_t))))
|       return 1;
|       fprintf (f, "%lu", i);
|     }
|   /* Do not output a trailing newline, as this causes \r\n confusion
|      on some platforms.  */
|   return ferror (f) || fclose (f) != 0;
|
|   ;
|   return 0;
| }
configure:26002: error: in `/home/a-ptrivino/Downloads/netxms-2.2.13':
configure:26004: error: cannot compute sizeof (wchar_t)
See `config.log' for more details
</code></pre>
<p dir="auto">Please let me know what else I should provide to help find the cause of this.  Thank you!</p>
<p dir="auto">Paul</p>
]]></description><link>https://forum.netxms.org/topic/5903/centos7-v2.2.13-configure-cannot-compute-sizeof-wchar_t</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:44:03 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5903.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2019 01:29:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Thu, 18 Apr 2019 18:22:35 GMT]]></title><description><![CDATA[<p dir="auto">Victor, thanks, I have worked my way through the rest of the needed packages and/or set configure options to avoid them (mosquitto for example). Thanks.</p>
]]></description><link>https://forum.netxms.org/post/25610</link><guid isPermaLink="true">https://forum.netxms.org/post/25610</guid><dc:creator><![CDATA[ptrivino]]></dc:creator><pubDate>Thu, 18 Apr 2019 18:22:35 GMT</pubDate></item><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Thu, 18 Apr 2019 15:06:44 GMT]]></title><description><![CDATA[<p dir="auto">Did you install openssl-devel package?</p>
<p dir="auto">This is from my RHEL 7 system:</p>
<p dir="auto">build-rhel-7-x64:~$ rpm -qa | grep openssl<br />
openssl-libs-1.0.2k-16.el7_6.1.x86_64<br />
openssl-devel-1.0.2k-16.el7_6.1.x86_64<br />
openssl-1.0.2k-16.el7_6.1.x86_64</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25607</link><guid isPermaLink="true">https://forum.netxms.org/post/25607</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 18 Apr 2019 15:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Wed, 17 Apr 2019 19:44:37 GMT]]></title><description><![CDATA[<p dir="auto">OK, I started over - built a new CentOS 7 VM, and this time I verified that OpenSSL (v1.0.2k) is installed. I also then installed/updated MySQL, perl-core, libcurl-devel, and libssh-devel because those were what were complained about on the first tries. I then untar NetXMS (netxms-2.2.13.tar.gz), and do</p>
<pre><code>./configure --with-server --with-mysql --with-agent
</code></pre>
<p dir="auto">which then gives these last three lines:</p>
<blockquote>
<p dir="auto">checking openssl/crypto.h presence... no<br />
checking for openssl/crypto.h... no<br />
configure: error: OpenSSL is required for encryption support</p>
</blockquote>
<p dir="auto">I do see that there are crypto.h files in the /usr/src/kernels (not what we want I'm sure). I also see that the tar for openssl v1.0.2r does have that file.</p>
<p dir="auto">Finding the --with-bundled-openssl config option, I tried that:</p>
<blockquote>
<p dir="auto">checking openssl/crypto.h usability... no<br />
checking openssl/crypto.h presence... configure: error: OpenSSL is required for encryption support<br />
no<br />
checking for openssl/crypto.h... no</p>
</blockquote>
<p dir="auto">So, I'm stumped.</p>
<p dir="auto">Paul</p>
]]></description><link>https://forum.netxms.org/post/25603</link><guid isPermaLink="true">https://forum.netxms.org/post/25603</guid><dc:creator><![CDATA[ptrivino]]></dc:creator><pubDate>Wed, 17 Apr 2019 19:44:37 GMT</pubDate></item><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Tue, 16 Apr 2019 19:00:44 GMT]]></title><description><![CDATA[<p dir="auto">OK I now see I have 1.0.2k and 1.1.1b of OpenSSL both installed (kinda), I'll try getting out of that. the 1.1.1b <a href="http://libssl.so" rel="nofollow ugc">libssl.so</a> is in /usr/local/lib64 but not in my libpath. But I don't want two versions at all, so...</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.netxms.org/post/25595</link><guid isPermaLink="true">https://forum.netxms.org/post/25595</guid><dc:creator><![CDATA[ptrivino]]></dc:creator><pubDate>Tue, 16 Apr 2019 19:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Tue, 16 Apr 2019 16:57:19 GMT]]></title><description><![CDATA[<p dir="auto">Actual failure related to OpenSSL libraries:</p>
<p dir="auto">./conftest: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory</p>
<p dir="auto">Make sure you have matching libssl development and binary packages and that correct <a href="http://libssl.so" rel="nofollow ugc">libssl.so</a> is in library path.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25594</link><guid isPermaLink="true">https://forum.netxms.org/post/25594</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 16 Apr 2019 16:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Mon, 15 Apr 2019 16:22:14 GMT]]></title><description><![CDATA[<p dir="auto">Surely, attached. Thanks.</p>
<p dir="auto">Paul</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000004448-config.log">config.log</a></p>
]]></description><link>https://forum.netxms.org/post/25587</link><guid isPermaLink="true">https://forum.netxms.org/post/25587</guid><dc:creator><![CDATA[ptrivino]]></dc:creator><pubDate>Mon, 15 Apr 2019 16:22:14 GMT</pubDate></item><item><title><![CDATA[Reply to CentOS7/V2.2.13 configure "cannot compute sizeof (wchar_t)" on Mon, 15 Apr 2019 14:39:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">could you please provide full config.log?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25585</link><guid isPermaLink="true">https://forum.netxms.org/post/25585</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 15 Apr 2019 14:39:17 GMT</pubDate></item></channel></rss>