Hello!
Can you please try to change
# if (RL_READLINE_VERSION && RL_VERSION_MAJOR >= 4 && RL_VERSION_MINOR
>= 2) || __FreeBSD__ >= 5
to
# if (RL_READLINE_VERSION && ((RL_VERSION_MAJOR == 4 && RL_VERSION_MINOR
>= 2) || (RL_VERSION_MAJOR >= 5)) || __FreeBSD__ >= 5
and report me if this helps or not.
Thank you in advance!
Regards,
Victor
-----Original Message-----
From: Christoffer Blindheim [mailto:netxms_at_christoffer.totalnett.no]
Sent: Wednesday, August 17, 2005 1:51 AM
To: NetXMS Users
Subject: [netxms-users] Problem compiling netxms-0.2.3 on Gentoo Linux
Hi... experience some problems compiling the newest netxms.
My build stops at every point this following check is done: Seems like
it likes the latter rl_bind_key.
nxadm.cpp:116: error: invalid conversion from `int (*)()' to `int
(*)(int, int)
#if USE_READLINE
// Initialize readline library if we use it
# if (RL_READLINE_VERSION && RL_VERSION_MAJOR >= 4 && RL_VERSION_MINOR
>= 2) || __FreeBSD__ >= 5
rl_bind_key('\t', (rl_command_func_t *)rl_insert);
# else
rl_bind_key('\t', (Function *)rl_insert);
# endif
#endif
Solved this issue temporarly by commenting out all but
rl_bind_key('\t', (rl_command_func_t *)rl_insert);
The files with this issue
src/server/core/main.cpp
src/server/tools/nxadm.cpp
-- Christoffer BlindheimReceived on Wed Aug 17 2005 - 09:45:56 EEST
This archive was generated by hypermail 2.2.0 : Wed Aug 17 2005 - 09:54:26 EEST