nxhttp compilation error
-
$uname
6.0-RELEASE FreeBSD 6.0-RELEASE 1: Tue May 29 08:54:16 EEST 2007/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 1https://www.netxms.org/bugtrack/view.php?id=173 (more detailes)
-
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 -
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 1used 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 amd64please help
-
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 ...
-
https://www.netxms.org/cgi-bin/mwf/topic_show.pl?pid=201#pid201
dabi ne floodit`
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login