bigplum / nginx-tcp-lua-module

A TCP server with lua supporting based on nginx
71 stars 28 forks source link

install questions #2

Open misshary opened 11 years ago

misshary commented 11 years ago
Hi,I am installing this nginx-tcp-lua-module ,but get errors as belows:

In file included from ../nginx-tcp-lua-module//src/ngx_tcp_session.c:6: ../nginx-tcp-lua-module//src/ngx_tcp_lua_common.h:70: error: redefinition of typedef ‘ngx_tcp_cleanup_pt’ ../nginx-tcp-lua-module//src/ngx_tcp_session.h:48: note: previous declaration of ‘ngx_tcp_cleanup_pt’ was here make[1]: *\ [objs/addon/src/ngx_tcp_session.o] Error 1

this is to say,error is arised when redefined .I checked the code in ngx_tcp_lua_common.h:70, 

and ngx_tcp_session.h:48,there is a line:typedef void (ngx_tcp_cleanup_pt)(void data);

Define twice is lagal as usual,could you guide me why error is arised? And how to fixed it?

Or I did something wrong when installing?

As I am a green hand, maybe the question is very simple.

It will be appreciated for you to help me!Thanks!