NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: nxhttp compilation error  (Read 4238 times)

wolf

  • Newbie
  • *
  • Posts: 2
    • View Profile
nxhttp compilation error
« on: June 20, 2007, 04:23:22 pm »

$uname
6.0-RELEASE FreeBSD 6.0-RELEASE 1: Tue May 29 08:54:16 EEST 2007

1)
/configure --with-server --with-agent --with-mysql --prefix=/usr/local/netxms -
-with-nxhttpd CPPFLAGS=-I/usr/local/include LIBS=-L/usr/local/lib/
2)
# make
Making all in status
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -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 -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DDATADIR=\"/usr/local/netxms/share/netxms\" -DLIBDIR=\"/usr/local/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -MT alarm.o -MD -MP -MF .deps/alarm.Tpo -c -o alarm.o alarm.cpp
In file included from alarm.cpp:24:
nxhttpd.h:31:22: messages.h: No such file or directory
In file included from alarm.cpp:24:

https://www.netxms.org/bugtrack/view.php?id=171'>https://www.netxms.org/bugtrack/view.php?id=171 (more detailes)
3)
# make clean
# cd src/nxhttpd
# perl ../../tools/mc.pl  messages.mc
4)
# make
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/include -I/usr/lo
cal/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 -I/usr/local/
include -D_THREAD_SAFE -D_THREAD_SAFE -DDATADIR=\"/usr/local/netxms/share/netxms
\" -DLIBDIR=\"/usr/local/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -MT alar
m.o -MD -MP -MF .deps/alarm.Tpo -c -o alarm.o alarm.cpp
In file included from alarm.cpp:24:
nxhttpd.h: In member function `void HttpResponse::EndBox(BOOL)':
nxhttpd.h:173: error: invalid conversion from `const char*' to `char*'
nxhttpd.h:173: error: initializing argument 1 of `void HttpResponse::AppendBod
y(char*, int)'
alarm.cpp: In member function `void ClientSession::ShowAlarmList(HttpResponse&,
NXC_OBJECT*, BOOL, char*)':
alarm.cpp:227: error: invalid conversion from `const char*' to `char*'
alarm.cpp:227: error: initializing argument 1 of `const String& String::operat
or=(char*)'
*** Error code 1

https://www.netxms.org/bugtrack/view.php?id=173'>https://www.netxms.org/bugtrack/view.php?id=173 (more detailes)
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6509
    • View Profile
nxhttp compilation error
« Reply #1 on: June 21, 2007, 12:27:55 am »

Hello!

I hope that I fix all nxhttpd build problems now. New cvs snapshot will be created this night (21 Jun 4:15 EET) and should include all changes. You can try to build nxhttpd from this snapshot.

Best regards,
Victor
Logged

weec

  • Full Member
  • ***
  • Posts: 194
    • View Profile
nxhttp compilation error
« Reply #2 on: June 29, 2007, 02:02:14 pm »

 alarm.cpp
In file included from alarm.cpp:24:
nxhttpd.h:31:22: messages.h: No such file or directory
In file included from alarm.cpp:24:
nxhttpd.h: In member function `void HttpResponse::EndBox(BOOL)':
nxhttpd.h:173: error: invalid conversion from `const char*' to `char*'
nxhttpd.h:173: error:   initializing argument 1 of `void HttpResponse::AppendBody(char*, int)'
alarm.cpp: In member function `void ClientSession::ShowAlarmList(HttpResponse&, NXC_OBJECT*, BOOL, char*)':
alarm.cpp:227: error: invalid conversion from `const char*' to `char*'
alarm.cpp:227: error:   initializing argument 1 of `const String& String::operator=(char*)'
*** Error code 1

used current https://www.netxms.org/download/netxms-cvs.tar.gz'>https://www.netxms.org/download/netxms-cvs.tar.gz

uname
6.2-STABLE FreeBSD 6.2-STABLE #2: Fri Jun  1 17:33:46 MSD 2007     root@homer:/usr/obj/usr/src/sys/STONE  amd64

please help
Logged

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 912
    • View Profile
nxhttp compilation error
« Reply #3 on: July 02, 2007, 10:03:54 am »

Please try this version: https://www.netxms.org/download/rc/netxms-0.2.18-rc2.tar.gz'>https://www.netxms.org/download/rc/netxms-0.2.18-rc2.tar.gz

try to configure it that ways (will be fixed in release):

CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LIBS=-L/usr/local/lib/ ./configure --prefix=/optl/netxms --with-server --with-agent ...
Logged

weec

  • Full Member
  • ***
  • Posts: 194
    • View Profile
Logged