`pthread_cond_reltimedwait_np' was not declared building agent on Solaris
-
Hi Trying to build the agent on Sparc Solaris 5.8, using gcc
using
./configure --prefix=/opt/netxms --with-agent --disable-encryption --disable-iconv
make
and I get the errorDISABLE_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
In file included from ../../include/nms_util.h:40,
from libnetxms.h:28,
from base64.cpp:44:
../../include/nms_threads.h: In function `BOOL ConditionWait(netxms_condition_t*, DWORD)':
../../include/nms_threads.h:849: error: `pthread_cond_reltimedwait_np' was not declared in this scope
make[3]: *** [base64.lo] Error 1uname -a
SunOS cscsydhnms56 5.8 Generic_117350-59 sun4u sparc SUNW,UltraAX-i2 Solaris
gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6config.log attached (had to gzip it)
Any Ideas?
thanks
-
Hi!
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
#define HAVE_PTHREAD_COND_RELTIMEDWAIT_NP 1in config.h.
Best regards,
Victor -
Thanks again Victor the work around was a success. I have attached the pthread.h.
It seems that it is only Solaris 8, Solaris 9 built ok with out the hack.I had another issue with expat being too old I received this error in case some on else has the issue
“message.cpp:297: `XML_STATUS_ERROR' undeclared (first use this function)” Upgraded expat and all went ok.
Thanks Again.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login