Re: Compile Problems on SuSE SLES 9.0

From: TIM MOORE <MOORET10_at_DOMAIN_REMOVED>
Date: Thu, 02 Feb 2006 10:39:18 -0500

Ok,
I made the change to the nxmibc.h and I got a little further. But
still go another error.

Is there another file I need to do the same thing with?

if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include
-DPREFIX=\"/opt\" -fno-exceptions -I/usr/local/include
-I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include
-I/usr/local/include/mysql -I/usr/local/mysql/include/mysql
-I/usr/mysql/include/mysql -DDATADIR=\"/opt/share/netxms\"
-DLIBDIR=\"/opt/lib\" -g -O2 -MT trap.o -MD -MP -MF ".deps/trap.Tpo" \
  -c -o trap.o `test -f 'trap.cpp' || echo './'`trap.cpp; \
then mv -f ".deps/trap.Tpo" ".deps/trap.Po"; \
else rm -f ".deps/trap.Tpo"; exit 1; \
fi
trap.cpp: In function `void SendTrap(long unsigned int, char*, ...)':
trap.cpp:95: error: `va_start' undeclared (first use this function)
trap.cpp:95: error: (Each undeclared identifier is reported only once
for each
   function it appears in.)
trap.cpp:102: error: syntax error before `*' token
trap.cpp:106: error: syntax error before `)' token
trap.cpp:106: error: `va_arg' undeclared (first use this function)
trap.cpp:111: error: syntax error before `)' token
trap.cpp:115: error: syntax error before `)' token
trap.cpp:122: error: `va_end' undeclared (first use this function)
make[4]: *** [trap.o] Error 1
make[4]: Leaving directory
`/usr/src/packages/SOURCES/netxms-0.2.9/src/agent/core'

--------------------------------------
Tim Moore
614.387.8197
Network Operations Center
ODJFS

>>> alk_at_ctco.lv 2/2/2006 10:13:33 AM >>>

hello.

change file netxms-version/src/nxmibc/nxmibc.h:

add '#include <stdarg.h>' after '#include <getopt.h>' and before
'#include <nxsnmp.h>'

after that it should be like this:

...
#ifndef _nxmibc_h_
#define _nxmibc_h_

#ifdef __cplusplus

#include <nms_common.h>
#include <nms_util.h>
#include <getopt.h>
#include <stdarg.h>
#include <nxsnmp.h>

wbr, alex.

TIM MOORE wrote:
> I am having trouble compiling 0.2.9 on a SuSE SLES server. Any
help?

-- 
Alex Kirhenshtein
C.T.Co
Cellular: +371-9145688
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and/or privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, employee, or agent responsible for delivering this message, please contact the sender by reply e-mail and destroy all copies of the original e-mail message.
Received on Thu Feb 02 2006 - 17:39:18 EET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2006 - 17:42:02 EET