nginx与ssl编译错误

时间:2011-06-02 17:28:25

标签: ssl nginx compilation

我希望你们中的一个人已经明白了这一点。

我一直在尝试使用ssl支持编译nginx,并且在make时失败并出现以下错误:

src / event / ngx_event_openssl.c:1690:31:错误:变量'c'设置但未使用[-Werror = unused-but-set-variable] cc1:所有警告都被视为错误

make [1]: * [objs / src / event / ngx_event_openssl.o]错误1 make [1]: 等待未完成的工作.... make [1]:离开目录`/home/steve/tarballs/nginx-1.0.4' make:* * [build]错误2

以下是我的配置参数:

./ configure --prefix = / opt / nginx --with-http_realip_module --pid-path = / opt / nginx / nginx.pid --with-http_ssl_module

任何人都知道这里发生了什么?将--openssl-dir指向openssl的来源时,我得到了同样的错误......

提前致谢...如果需要提供更多信息,请告诉我

1 个答案:

答案 0 :(得分:1)

在配置问题解决后,在make文件中删除-Werror和-Wall。它原来是c代码本身的一个错误。但不确定这是否是黑客攻击或解决问题。

根据谷歌的说法,这些标签会将警告视为错误并导致构建失败