RE: RedHat Compile Problems

From: Miley, Shain <SMiley_at_DOMAIN_REMOVED>
Date: Fri, 4 Nov 2005 13:22:00 -0500

Victor,
well I made the changes that you recommended and the compile process seems to get a bit farther. However I now receive the following errors:
 
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -I../../../src/server
/include -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\" -DLIBD
IR=\"/opt/lib\" -g -O2 -MT acl.lo -MD -MP -MF .deps/acl.Tpo -c acl.cpp -fPIC -D
PIC -o .libs/acl.o
In file included from ../../../src/server/include/nms_core.h:100,
                 from nxcore.h:27,
                 from acl.cpp:23:
../../../src/server/include/nms_dcoll.h:82: error: `const ItemValue& ItemValue::
operator=(INT64)' and `const ItemValue& ItemValue::operator=(long int)' cannot b
e overloaded
make[4]: *** [acl.lo] Error 1
make[4]: Leaving directory `/usr/local/src/netxms-0.2.6/src/server/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/netxms-0.2.6/src/server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/netxms-0.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/netxms-0.2.6'
make: *** [all] Error 2
 
 
Thanks,
 
Shain
 
  
From: Victor Kirhenshtein < victor_at_DOMAIN_REMOVED <mailto:victor_at_DOMAIN_REMOVED?Subject=RE:%20%20RedHat%20Compile%20Problems> >
Date: Thu, 3 Nov 2005 23:54:11 +0200

Hello!
  
Looks like you have 64 bit platform. Can you please try to change the
following code in include/nms_common.h (2 occurences):
  
typedef long int LONG;
typedef unsigned long DWORD;

with
  
#if (SIZEOF_LONG == 4)
typedef long LONG;
#else
typedef int LONG;
#endif
#if (SIZEOF_LONG == 4)
typedef unsigned long DWORD;
#else
typedef unsigned int DWORD;
#endif
  
Best regards,
Victor
  
-----Original Message-----
From: Miley, Shain [mailto:SMiley_at_czn.com]
Sent: Thursday, November 03, 2005 6:17 PM
To: NetXMS Users
Subject: [netxms-users] RedHat Compile Problems

Hello,
I just downloaded the newest version of NetXMS and I am having some
issues compiling the software. Here is the relevant info:
  
NetXMS version 0.2.6
  
# g++ --version
g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
  
Here is the error that I recieve when running make:
  
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -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
crypto.lo -MD -MP -MF .deps/crypto.Tpo -c crypto.cpp -fPIC -DPIC -o
.libs/crypto.o
In file included from libnxcscp.h:30,
                 from crypto.cpp:24:
../../include/nxcscpapi.h:96: error: `void
CSCPMessage::SetVariable(DWORD, QWORD)' and `void
CSCPMessage::SetVariable(DWORD, DWORD)' cannot be overloaded
make[3]: *** [crypto.lo] Error 1
make[3]: Leaving directory `/usr/local/src/netxms-0.2.6/src/libnxcscp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/netxms-0.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/netxms-0.2.6'
make: *** [all] Error 2

Any help would be appreciated.
  
Shain

 
 
 
 
 
Received on Fri Nov 04 2005 - 20:22:00 EET

This archive was generated by hypermail 2.2.0 : Fri Nov 04 2005 - 20:34:45 EET