<?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[`pthread_cond_reltimedwait_np' was not declared building agent on Solaris]]></title><description><![CDATA[<p dir="auto">Hi Trying to build the agent on Sparc Solaris 5.8, using gcc<br />
using<br />
./configure --prefix=/opt/netxms   --with-agent --disable-encryption --disable-iconv<br />
make<br />
and I get the error</p>
<p dir="auto">DISABLE_ICONV -D_THREAD_SAFE -DPREFIX=\"/opt/netxms\" -DPREFIXW=L\"/opt/netxms\" -DDATADIR=\"/opt/netxms/share/netxms\" -DLIBDIR=\"/opt/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -fno-const-strings -Wno-deprecated -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.cpp  -fPIC -DPIC -o .libs/base64.o<br />
In file included from ../../include/nms_util.h:40,<br />
                 from libnetxms.h:28,<br />
                 from base64.cpp:44:<br />
../../include/nms_threads.h: In function `BOOL ConditionWait(netxms_condition_t*, DWORD)':<br />
../../include/nms_threads.h:849: error: `pthread_cond_reltimedwait_np' was not declared in this scope<br />
make[3]: *** [base64.lo] Error 1</p>
<p dir="auto">uname -a<br />
SunOS cscsydhnms56 5.8 Generic_117350-59 sun4u sparc SUNW,UltraAX-i2 Solaris<br />
 <br />
gcc -v<br />
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs<br />
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77<br />
Thread model: posix<br />
gcc version 3.4.6</p>
<p dir="auto">config.log attached (had to gzip it)</p>
<p dir="auto">Any Ideas?</p>
<p dir="auto">thanks</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000269-config.log.gz">config.log.gz</a></p>
]]></description><link>https://forum.netxms.org/topic/716/pthread_cond_reltimedwait_np-was-not-declared-building-agent-on-solaris</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:49:14 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/716.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Sep 2009 04:40:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to `pthread_cond_reltimedwait_np' was not declared building agent on Solaris on Tue, 15 Sep 2009 07:39:18 GMT]]></title><description><![CDATA[<p dir="auto">Thanks again Victor the work around was a success.  I have attached the pthread.h.<br />
It seems that it is only Solaris 8, Solaris 9 built ok with out the hack.</p>
<p dir="auto">I had another issue with expat being too old I received this error in case some on else has the issue<br />
 “message.cpp:297: `XML_STATUS_ERROR' undeclared (first use this function)”  Upgraded expat and all went ok.<br />
 <br />
Thanks Again.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000270-pthread.h">pthread.h</a></p>
]]></description><link>https://forum.netxms.org/post/3370</link><guid isPermaLink="true">https://forum.netxms.org/post/3370</guid><dc:creator><![CDATA[code4pay]]></dc:creator><pubDate>Tue, 15 Sep 2009 07:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to `pthread_cond_reltimedwait_np' was not declared building agent on Solaris on Mon, 14 Sep 2009 09:02:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Very strange - configure found that this function exists, but looks like it is not declared. Could you please post pthread.h from your system? Unfortunately I don't have any Sparc Solaris systems available, only Solaris 10 for x86, on which everything compiles without problems. Also, as a workaround, you can comment out or remove line</p>
<pre><code>#define HAVE_PTHREAD_COND_RELTIMEDWAIT_NP 1
</code></pre>
<p dir="auto">in config.h.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/3369</link><guid isPermaLink="true">https://forum.netxms.org/post/3369</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 14 Sep 2009 09:02:26 GMT</pubDate></item></channel></rss>