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 error
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
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 1
uname -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.6
config.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 1
in 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.