News:

We really need your input in this questionnaire

Main Menu

nxhttp compilation error

Started by Alex, June 20, 2007, 04:23:22 PM

Previous topic - Next topic

wolf

$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 (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 (more detailes)

Victor Kirhenshtein

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

weec

 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

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

Alex Kirhenshtein

Please try this version: 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 ...