November 10, 2016 04:19AM
I was build nginx for window on linux. (compiler: x86_64-w64-mingw32-gcc)
and build succeeded.

but It does not work on any request.. as if it hang status...

I was checked function ngx_event_process_posted in ngx_event_posted.c on windows gdb.
and found an empty ngx_queue_t at any requested.

how to fix ??


test nginx version :
nginx-release-1.11.5
nginx-release-1.10.2
nginx-release-1.9.15
nginx-release-1.8.1

module version:
encrypted-session-nginx-module-0.06
lua-nginx-module-0.10.6
lua-nginx-module-0.10.7
ngx_devel_kit-0.3.0
set-misc-nginx-module-0.31


etc...
LuaJIT-2.0.2
LuaJIT-2.0.3
LuaJIT-2.0.4
lua-cjson-2.1.0
cJSON- I don`t know
openssl-1.0.2j
zlib-1.2.8


configure script:
TARGET=".\\\\"

export CC=x86_64-w64-mingw32-gcc

export CFLAGS
export LDFLAGS

export LUAJIT_INC=$COMMON_DIR/include/luajit-2.0.4
export LUAJIT_LIB=$WIN_OUT/lib
export OPENSSL_INC=$COMMON_DIR/include
export OPENSSL_LIB=$WIN_OUT/lib


echo $LUAJIT_INC
echo $LUAJIT_LIB
echo $OPENSSL_INC
echo $OPENSSL_LIB

./configure_win --prefix=$TARGET \
--crossbuild=win32 \
--sbin-path=nginx.exe \
--with-cc=x86_64-w64-mingw32-gcc \
--with-cpp=x86_64-w64-mingw32-c++ \
--with-zlib=../../../open_source/zlib-1.2.8/zlib-1.2.8 \
--with-openssl=../../../open_source/openssl-1.0.2j/openssl-1.0.2j \
--with-pcre=../../../open_source/pcre-8.34/pcre-8.34 \
--add-module=../nginX_if/source \
--add-module=../lua/ngx_devel_kit-master \
--add-module=../lua/set-misc-nginx-module-master \
--add-module=../lua/lua-nginx-module \
--add-module=../lua/encrypted-session-nginx-module-master \
--conf-path=.\\\\conf\\\\nginx.conf \
--pid-path=.\\\\log\\\\nginx.pid \
--error-log-path=.\\\\log\\\\ngx_error.log \
--http-log-path=.\\\\log\\\\ngx_access.log \
--http-client-body-temp-path=.\\\\log\\\\client_body_temp \
--http-proxy-temp-path=.\\\\log\\\\proxy_temp \
--http-fastcgi-temp-path=.\\\\log\\\\fastcgi_temp \
--http-uwsgi-temp-path=.\\\\log\\\\uwsgi_temp \
--http-scgi-temp-path=.\\\\log\\\\scgi_temp \
--with-cc-opt=" -ggdb " \
--with-ld-opt="-L$WIN_OUT/lib -lm -lcJSON " \
--with-http_ssl_module
Subject Author Posted

can not received event on windows

ganadara November 10, 2016 04:19AM

Re: can not received event on windows

ganadara November 10, 2016 04:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 278
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready