Hi, It needs mingw and msys to compile, not cygwin.
Regards, Botond On Thu, 17 Jul 2014 07:08:39 +0000 Malý Lukáš <m...@datasys.cz> wrote: > Hi all > > I have question about compilation nxlog-ce-2.5.1089 under Windows7 64bit with > MinGW or Cygwin enviroment. > > # Compilation under MinGW > > $ set | grep CPATH > CPATH='C:\mingw\msys\1.0\include' > > $ set | grep LIBRAR > LIBRARY_PATH='C:\mingw\msys\1.0\lib' > > malyl@WIN7 ~/nxlog-ce-2.5.1089 > $ ./configure > ... > checking for gcc option to accept ISO C89... none needed > checking for style of include used by make... GNU > checking dependency style of gcc... gcc3 > checking for apr-1-config... no > configure: error: apr library not found > > MinGW - No package management, own compilation APR with version apr-1.4.6 > > malyl@WIN7 ~/apr-1.4.6 > $ ./configure > ... > config.status: creating apr.pc > config.status: creating test/Makefile > config.status: creating test/internal/Makefile > config.status: creating include/arch/unix/apr_private.h > config.status: executing libtool commands > rm: cannot lstat `libtoolT': No such file or directory > config.status: executing default commands > > This error :-( I dont find solution > > # Compilation under Cygwin > > Cygwin have package management, instaled libapr-1 version 1.4.8-1 and libpcre > 8.34-1. > > # Build configuration with MinGW > > malyl@WIN7 ~/nxlog-ce-2.5.1089 > ./configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 > --target=x86_64-w64-mingw32 > ... > checking for openssl... openssl > checking for pcre-config... /usr/bin/pcre-config > checking for apr_socket_create in -lapr-1... yes > checking for apr_pollset_wakeup... yes > checking for apr_sockaddr_ip_getbuf... yes > checking for apr_file_sync... yes > checking for apr_file_link... yes > checking for apr_pool_create_unmanaged_ex... yes > checking for dbi_initialize in -ldbi... no > configure: WARNING: libdbi not found - not building dbi modules > checking for ANSI C header files... (cached) no > checking syslog.h usability... yes > checking syslog.h presence... yes > checking for syslog.h... yes > checking pcre.h usability... no > checking pcre.h presence... no > checking for pcre.h... no > configure: error: please install pcre-dev > > Package pcre-dev was installed :-( > > # Build configuration default > > $ ./configure > ... > config.status: creating src/utils/Makefile > config.status: creating packaging/redhat/nxlog.spec > config.status: creating packaging/redhat/nxlog.spec.RHEL5 > config.status: creating packaging/windows/nxlog.wxs > config.status: creating packaging/windows/pkgmsi.sh > config.status: creating src/common/config.h > config.status: src/common/config.h is unchanged > config.status: executing depfiles commands > config.status: executing libtool commands > > nxlog-ce-2.5.1089 configured successfully > type `make' and `make install' > > # Build configuration default configured successfully > > malyl@WIN7 ~/nxlog-ce-2.5.1089 > $ make > Making all in src > make[1]: Entering directory '/home/malyl/nxlog-ce-2.5.1089/src' > Making all in common > make[2]: Entering directory '/home/malyl/nxlog-ce-2.5.1089/src/common' > make all-am > make[3]: Entering directory '/home/malyl/nxlog-ce-2.5.1089/src/common' > /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I/usr/include/apr-1 -DCYGWIN -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 -rdynamic > -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/include/apr-1 -DCYGWIN > -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 -rdynamic > -ggdb3 -MT libnx_la-config_cache.lo -MD -MP -MF > .deps/libnx_la-config_cache.Tpo -c config_cache.c -DDLL_EXPORT -DPIC -o > .libs/libnx_la-config_cache.o > In file included from ../core/nxlog.h:16:0, > from config_cache.c:8: > ../core/../common/error_debug.h:58:26: error: unknown type name > 'apr_thread_mutex_t' > void nx_logger_mutex_set(apr_thread_mutex_t *mutex); > ^ > 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:24:5: error: unknown type name > 'apr_thread_mutex_t' > apr_thread_mutex_t *mutex; > ^ > In file included from ../core/../common/module.h:21:0, > from ../core/ctx.h:12, > from ../core/nxlog.h:18, > from config_cache.c:8: > ../core/../common/route.h:25:5: error: unknown type name 'apr_thread_mutex_t' > apr_thread_mutex_t *mutex; > ^ > In file included from ../core/ctx.h:12:0, > from ../core/nxlog.h:18, > from config_cache.c:8: > ../core/../common/module.h:214:5: error: unknown type name > 'apr_thread_mutex_t' > apr_thread_mutex_t *mutex; > ^ > In file included from ../core/nxlog.h:18:0, > from config_cache.c:8: > ../core/ctx.h:71:5: error: unknown type name 'apr_thread_mutex_t' > apr_thread_mutex_t *config_cache_mutex; > ^ > In file included from config_cache.c:8:0: > ../core/nxlog.h:54:5: error: unknown type name 'apr_thread_cond_t' > apr_thread_cond_t *worker_cond; > ^ > ../core/nxlog.h:56:5: error: unknown type name 'apr_thread_cond_t' > apr_thread_cond_t *event_cond; > ^ > ../core/nxlog.h:60:5: error: unknown type name 'apr_thread_mutex_t' > apr_thread_mutex_t *mutex; > ^ > ../core/nxlog.h:62:5: error: unknown type name 'apr_thread_mutex_t' > apr_thread_mutex_t **openssl_locks; > ^ > config_cache.c: In function '_update_item': > config_cache.c:47:5: error: implicit declaration of function > 'apr_thread_mutex_lock' [-Werror=implicit-function-declaration] > CHECKERR(apr_thread_mutex_lock(ctx->config_cache_mutex)); > ^ > config_cache.c:74:2: error: implicit declaration of function > 'apr_thread_mutex_unlock' [-Werror=implicit-function-declaration] > CHECKERR(apr_thread_mutex_unlock(ctx->config_cache_mutex)); > ^ > config_cache.c: At top level: > config_cache.c:37:13: warning: '_update_item' defined but not used > [-Wunused-function] > static void _update_item(nx_cc_item_t *item) > > cc1: some warnings being treated as errors > Makefile:454: recipe for target 'libnx_la-config_cache.lo' failed > make[3]: *** [libnx_la-config_cache.lo] Error 1 > make[3]: Leaving directory '/home/malyl/nxlog-ce-2.5.1089/src/common' > Makefile:300: recipe for target 'all' failed > make[2]: *** [all] Error 2 > make[2]: Leaving directory '/home/malyl/nxlog-ce-2.5.1089/src/common' > Makefile:286: recipe for target 'all-recursive' failed > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory '/home/malyl/nxlog-ce-2.5.1089/src' > Makefile:407: recipe for target 'all-recursive' failed > make: *** [all-recursive] Error 1 > > Compilation failed > > Pleace help me with compilation. It is possible compiled nxlog-se under > Windows7 with MingGW or Cygwin ? > > Lukas Maly ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users