Can anybody help me/point me to some docs of how to recompile nxlog for 
Windows. We need to change some hard coded parameters and recompile 
things, but unfortunately I can't make it. Struggling all day long I've 
managed to come to the point with MinGW+MSYS installed. I've also 
compiled apr-1.4.8 and pcre in those enviroments. I can also make 
configure for nxlog, but when I issue make command I have the following 
errors pop up:

$ make
Making all in src
make[1]: Entering directory `/C/MinGW/temp/nxlog-ce-2.8.1248/src'
Making all in common
make[2]: Entering directory `/C/MinGW/temp/nxlog-ce-2.8.1248/src/common'
make  all-am
make[3]: Entering directory `/C/MinGW/temp/nxlog-ce-2.8.1248/src/common'
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I/usr/local/include    -I/usr/local/include -DWIN32 -D__MSVCRT__ 
-D_LARGEFILE64_SOURCE -pipe -W -Wall -Wshadow
-Wno-address -Wcast-qual -Wbad-function-cast -Wsign-compare -Wconversion 
-funsigned-char -Werror-implicit-function-declaration -Wswitch-default 
-fstrict-aliasing -Wpointer-arith -Wcast-
align -Wwrite-strings -Wmissing-noreturn -Wmissing-format-attribute 
-Wformat -Wextra -Werror=format-security -ggdb3 -MT 
libnx_la-config_cache.lo -MD -MP -MF .deps/libnx_la-config_cache.
Tpo -c -o libnx_la-config_cache.lo `test -f 'config_cache.c' || echo 
'./'`config_cache.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/include 
-I/usr/local/include -DWIN32 -D__MSVCRT__ -D_LARGEFILE64_SOURCE -pipe -W 
-Wall -Wshadow -Wno-address -Wcast-qual -Wbad-fu
nction-cast -Wsign-compare -Wconversion -funsigned-char 
-Werror-implicit-function-declaration -Wswitch-default -fstrict-aliasing 
-Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-n
oreturn -Wmissing-format-attribute -Wformat -Wextra 
-Werror=format-security -ggdb3 -MT libnx_la-config_cache.lo -MD -MP -MF 
.deps/libnx_la-config_cache.Tpo -c config_cache.c  -DDLL_EXPO
RT -DPIC -o .libs/libnx_la-config_cache.o
In file included from ../core/../common/value.h:14:0,
                  from ../core/../common/config_cache.h:13,
                  from ../core/nxlog.h:17,
                  from config_cache.c:8:
../core/../common/str.h:50:1: error: unknown type name 'boolean'
  boolean nx_string_validate_utf8(nx_string_t *str, boolean needfix, 
boolean throw);
  ^
../core/../common/str.h:50:51: error: unknown type name 'boolean'
  boolean nx_string_validate_utf8(nx_string_t *str, boolean needfix, 
boolean throw);
                                                    ^
../core/../common/str.h:50:68: error: unknown type name 'boolean'
  boolean nx_string_validate_utf8(nx_string_t *str, boolean needfix, 
boolean throw);
                                                                     ^
../core/../common/str.h:55:1: error: unknown type name 'boolean'
  boolean nx_utf8_is_valid_char(const char *src,
  ^
In file included from ../core/../common/config_cache.h:13:0,
                  from ../core/nxlog.h:17,
                  from config_cache.c:8:
../core/../common/value.h:39:5: error: unknown type name 'boolean'
      boolean  defined;
      ^
../core/../common/value.h:53:2: error: unknown type name 'boolean'
   boolean  boolean;
   ^
../core/../common/value.h:72:34: error: unknown type name 'boolean'
  nx_value_t *nx_value_new_boolean(boolean value);
                                   ^
../core/../common/value.h:84:1: error: unknown type name 'boolean'
  boolean nx_value_eq(const nx_value_t *v1, const nx_value_t *v2);
  ^
In file included from ../core/nxlog.h:17:0,
                  from config_cache.c:8:
../core/../common/config_cache.h:19:5: error: unknown type name 'boolean'
      boolean  used;
      ^
../core/../common/config_cache.h:23:5: error: unknown type name 'boolean'
      boolean  needflush; ///< TRUE when item was updated since last write
      ^
../core/../common/config_cache.h:26:1: error: unknown type name 'boolean'
  boolean nx_config_cache_get_string(const char *module, const char 
*key, const char **result);
  ^
../core/../common/config_cache.h:27:1: error: unknown type name 'boolean'
  boolean nx_config_cache_get_int(const char *module, const char *key, 
int64_t *result);
  ^
In file included from ../core/../common/module.h:20:0,
                  from ../core/ctx.h:12,
                  from ../core/nxlog.h:18,
                  from config_cache.c:8:
../core/../common/logdata.h:59:1: error: unknown type name 'boolean'
  boolean nx_logdata_get_field_value(const nx_logdata_t *logdata,
  ^
../core/../common/logdata.h:64:1: error: unknown type name 'boolean'
  boolean nx_logdata_delete_field(nx_logdata_t *logdata,
  ^
../core/../common/logdata.h:81:8: error: unknown type name 'boolean'
         boolean value);
         ^
In file included from ../core/../common/route.h:14:0,
                  from ../core/../common/module.h:21,
                  from ../core/ctx.h:12,
                  from ../core/nxlog.h:18,
                  from config_cache.c:8:
../core/../common/logqueue.h:30:5: error: unknown type name 'boolean'
      boolean  needpop; ///< TRUE after nx_logqueue_peek has been called
      ^
In file included from ../core/../common/module.h:22:0,
                  from ../core/ctx.h:12,
                  from ../core/nxlog.h:18,
                  from config_cache.c:8:
../core/../common/cfgfile.h:73:5: error: unknown type name 'boolean'
      boolean next_is_child;
      ^
../core/../common/cfgfile.h:86:4: error: unknown type name 'boolean'
     boolean *value);
     ^
In file included from ../core/../common/module.h:25:0,
                  from ../core/ctx.h:12,
                  from ../core/nxlog.h:18,
                  from config_cache.c:8:
../core/../common/expr.h:61:5: error: unknown type name 'boolean'
      boolean  dropped; ///< don't continue further
      ^
../core/../common/expr.h:240:58: error: unknown type name 'boolean'
  nx_expr_t *nx_expr_new_boolean(nx_expr_parser_t *parser, boolean value);
                                                           ^
In file included from ../core/../common/statvar.h:14:0,
                  from ../core/../common/module.h:27,
                  from ../core/ctx.h:12,
                  from ../core/nxlog.h:18,
                  from config_cache.c:8:
../core/../common/event.h:44:5: error: unknown type name 'boolean'
      boolean   delayed;
      ^
In file included from ../core/ctx.h:12:0,
                  from ../core/nxlog.h:18,
                  from config_cache.c:8:
../core/../common/module.h:203:5: error: unknown type name 'boolean'
      boolean  has_config_errors;
      ^
../core/../common/module.h:204:5: error: unknown type name 'boolean'
      boolean  flowcontrol; ///< TRUE if flow-control is in effect
      ^
../core/../common/module.h:249:1: error: unknown type name 'boolean'
  boolean nx_module_can_send(nx_module_t *module, double multiplier);
  ^
../core/../common/module.h:254:1: error: unknown type name 'boolean'
  boolean nx_module_common_keyword(const char *keyword);
  ^
../core/../common/module.h:335:50: error: unknown type name 'boolean'
  void nx_module_pollset_poll(nx_module_t *module, boolean readd);
                                                   ^
In file included from ../core/nxlog.h:18:0,
                  from config_cache.c:8:
../core/ctx.h:53:5: error: unknown type name 'boolean'
      boolean  formatlog; ///< output with timestamp+severity
      ^
../core/ctx.h:54:5: error: unknown type name 'boolean'
      boolean  norepeat;
      ^
../core/ctx.h:60:5: error: unknown type name 'boolean'
      boolean  nofreeonexit; ///< do not free memory on exit: used for 
debugging with valgrind to allow stack traces with dso modules
      ^
In file included from ../core/nxlog.h:18:0,
                  from config_cache.c:8:
../core/ctx.h:61:5: error: unknown type name 'boolean'
      boolean  ignoreerrors; ///< try to ignore configuration errors and 
start anyway
      ^
../core/ctx.h:62:5: error: unknown type name 'boolean'
      boolean  flowcontrol;  ///< use flow-control in all modules 
(default: true)
      ^
../core/ctx.h:67:5: error: unknown type name 'boolean'
      boolean  nocache;
      ^
../core/ctx.h:92:1: error: unknown type name 'boolean'
  boolean nx_ctx_next_job(nx_ctx_t *ctx,
  ^
../core/ctx.h:95:1: error: unknown type name 'boolean'
  boolean nx_ctx_has_jobs(nx_ctx_t *ctx);
  ^
In file included from config_cache.c:8:0:
../core/nxlog.h:32:5: error: unknown type name 'boolean'
      boolean  foreground;  ///< TRUE if should not daemonize
      ^
../core/nxlog.h:33:5: error: unknown type name 'boolean'
      boolean  daemonized;  ///< TRUE if daemonized
      ^
../core/nxlog.h:35:5: error: unknown type name 'boolean'
      boolean  terminate_request;
      ^
../core/nxlog.h:36:5: error: unknown type name 'boolean'
      boolean  terminating;
      ^
../core/nxlog.h:42:5: error: unknown type name 'boolean'
      boolean  verify_conf; ///< verify configuration file then exit
      ^
../core/nxlog.h:43:5: error: unknown type name 'boolean'
      boolean  do_stop; ///< stop a running instance
      ^
../core/nxlog.h:44:5: error: unknown type name 'boolean'
      boolean  do_restart; ///< restart a running instance
      ^
../core/nxlog.h:68:1: error: unknown type name 'boolean'
  boolean nxlog_data_available();
  ^
../core/nxlog.h:69:37: error: unknown type name 'boolean'
  void nxlog_mainloop(nxlog_t *nxlog, boolean offline);
                                      ^
config_cache.c: In function '_read_item':
config_cache.c:158:6: warning: format '%ld' expects argument of type 
'long int', but argument 6 has type 'int64_t' [-Wformat=]
       log_debug("read config cache item: %s=%ld", item->key, 
item->value->integer);
       ^
config_cache.c: At top level:
config_cache.c:384:1: error: unknown type name 'boolean'
  boolean nx_config_cache_get_int(const char *module, const char *key, 
int64_t *result)
  ^
config_cache.c:421:1: error: unknown type name 'boolean'
  boolean nx_config_cache_get_string(const char *module, const char 
*key, const char **result)
  ^
config_cache.c:37:13: warning: '_update_item' defined but not used 
[-Wunused-function]
  static void _update_item(nx_cc_item_t *item)
              ^
make[3]: *** [libnx_la-config_cache.lo] Error 1
make[3]: Leaving directory `/C/MinGW/temp/nxlog-ce-2.8.1248/src/common'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/C/MinGW/temp/nxlog-ce-2.8.1248/src/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/C/MinGW/temp/nxlog-ce-2.8.1248/src'
make: *** [all-recursive] Error 1


Any ideas of what can cause this issue and how to fix it. I believe I'm 
doing something wrong with env, but since there are clear steps it's 
hard to understand where is the issue.

Thanks in advance.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to