<?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[[PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function)]]></title><description><![CDATA[<p dir="auto">Trying to build NetXMS-1.2.11 on FreeBSD 9.2 I'm runing into an error message..<br />
I configured like this: <em>./configure --with-openssl --with-mysql --with-server --with-snmp --with-agent --prefix=/usr/local/netxms</em></p>
<p dir="auto">Then when I try to 'make' it ends in error.<br />
I have sqlite3 installed.</p>
<blockquote>
<p dir="auto">Making all in sqlite<br />
  CC     libnxsqlite_la-sqlite3.lo<br />
sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function)<br />
*** [libnxsqlite_la-sqlite3.lo] Error code 1</p>
</blockquote>
<p dir="auto">I fixed it by adding <em>#include &lt;sys/stat.h&gt;</em> to <em>netxms-1.2.11/src/sqlite/sqlite3.c</em><br />
It's probably not the best place to put it but at least it works <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Maybe it can be added to the next version so FreeBSD it can be compiled on FreeBSD without the need to google <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--stuck_out_tongue" style="height:1.4em;width:auto;vertical-align:middle" title=":P" alt="😛" /></p>
]]></description><link>https://forum.netxms.org/topic/2881/patch-sqlite3.c-23531-error-fchmod-undeclared-here-not-in-a-function</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:05:31 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2881.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Jan 2014 13:04:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function) on Wed, 29 Jan 2014 09:40:16 GMT]]></title><description><![CDATA[<p dir="auto">you're welcome. <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--sunglasses" style="height:1.4em;width:auto;vertical-align:middle" title="8)" alt="😎" /></p>
]]></description><link>https://forum.netxms.org/post/12597</link><guid isPermaLink="true">https://forum.netxms.org/post/12597</guid><dc:creator><![CDATA[possamai]]></dc:creator><pubDate>Wed, 29 Jan 2014 09:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to [PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function) on Wed, 29 Jan 2014 08:17:07 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it's what I was interested in. Thank you!</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12596</link><guid isPermaLink="true">https://forum.netxms.org/post/12596</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 29 Jan 2014 08:17:07 GMT</pubDate></item><item><title><![CDATA[Reply to [PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function) on Tue, 28 Jan 2014 22:06:44 GMT]]></title><description><![CDATA[<p dir="auto">I could..... but I'm not really sure how..<br />
"<em>gcc sqlite3.c shell.c -o sqlite</em>" compiles without error but I'm not sure if that's how I'm suposed to compile it.</p>
]]></description><link>https://forum.netxms.org/post/12591</link><guid isPermaLink="true">https://forum.netxms.org/post/12591</guid><dc:creator><![CDATA[possamai]]></dc:creator><pubDate>Tue, 28 Jan 2014 22:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to [PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function) on Tue, 28 Jan 2014 17:19:18 GMT]]></title><description><![CDATA[<p dir="auto">Can you please check that latest SQLite amalgamation (<a href="http://www.sqlite.org/2013/sqlite-amalgamation-3080200.zip" rel="nofollow ugc">http://www.sqlite.org/2013/sqlite-amalgamation-3080200.zip</a>) compiles on FreeBSD 9.2? If yes, I'll just replace current version with latest one.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12587</link><guid isPermaLink="true">https://forum.netxms.org/post/12587</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 28 Jan 2014 17:19:18 GMT</pubDate></item></channel></rss>