Skip to content

install questions #2

@misshary

Description

@misshary
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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions