ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Problem withi installing from source #156

Closed leffu33 closed 1 year ago

leffu33 commented 1 year ago

Hi, I have problem with make command. After cloning repo to RHEL8 I run autogen.sh:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/monitor/naemon/lib/pkgconfig/ && ./autogen.sh --with-naemon-config-dir=/opt/monitor/naemon/etc/ --with-naemon-user=naemon --with-naemon-group=naemon --with-pkgconfdir=/opt/monitor/merlin --with-logdir=/var/log/merlin

*export need since I install naemon 1.4.1 also from source.

All above ends with success. Then I try run make and it ends:

module/module.c:679:9: warning: assignment to ‘comment *’ {aka ‘struct comment *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
    cmnt = get_first_comment_by_host(ds->host_name);
         ^
module/module.c:681:23: error: ‘comment’ {aka ‘struct comment’} has no member named ‘nexthash’; did you mean ‘next’?
     next_cmnt = cmnt->nexthash;
                       ^~~~~~~~
                       next
module/module.c:690:16: error: ‘comment_list’ undeclared (first use in this function); did you mean ‘command_list’?
    for (cmnt = comment_list; cmnt; cmnt = next_cmnt) {
                ^~~~~~~~~~~~
                command_list
module/module.c:690:16: note: each undeclared identifier is reported only once for each function it appears in
module/module.c: In function ‘handle_event’:
module/module.c:855:19: warning: comparison of constant ‘3’ with boolean expression is always false [-Wbool-compare]
  if (!node->state == STATE_CONNECTED) {
                   ^~
module/module.c:855:19: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
module/module.c:855:6: note: add parentheses around left hand side expression to silence this warning
  if (!node->state == STATE_CONNECTED) {
      ^~~~~~~~~~~~
      (           )
make[1]: *** [Makefile:2733: module/merlin_la-module.lo] Error 1
make[1]: Leaving directory '/home/monitor_merlin'
make: *** [Makefile:1406: all] Error 2

I need install something or point somehow to dir where I build naemon_core? I think I haves everything installed.

leffu33 commented 1 year ago

Need to clone naemon-core and naemon-livestatus with --branch v1.4.1 and everything works perfectly.