编译 nginx-ct 总是失败怎么破

2016-01-23 19:43:43 +08:00
 sky170
make[1]: *** [objs/addon/nginx-ct-master/ngx_http_ssl_ct_module.o] Error 1

每次都是跪在这个模块上= =
4126 次点击
所在节点    NGINX
31 条回复
shyling
2016-01-23 20:15:29 +08:00
没遇到过这个错误哎。。。检查一下 openssl 的配置吧
kn007
2016-01-23 20:16:43 +08:00
看 config.log 的具体错误原因
mafuyu
2016-01-23 20:17:45 +08:00
今天刚刚编译完成 w 。你 openssl 版本没错吗?...他要求 1.0.2 开始...(因为删掉了前面失败的 log...没办法确定是不是这个原因...)嗯 不知道为什么用 1.1.0 的时候就编译失败。
songjiaxin2008
2016-01-23 20:25:55 +08:00
nginx version: nginx/1.9.9
built by gcc 4.9.2 (Debian 4.9.2-10)
built with OpenSSL 1.0.2e 3 Dec 2015
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-ipv6 --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-openssl=../openssl --add-module=../nginx-ct

刚编译完 应该是可以的呀
sky170
2016-01-23 20:50:18 +08:00
@mafuyu 升到 openssl1.0.2e 和 1.1.0 也不行
sky170
2016-01-23 20:51:44 +08:00
@songjiaxin2008 你这个成功,我的不行,你有没有更新 gcc 版本和依赖库
chromee
2016-01-23 20:57:46 +08:00
nginx version: nginx/1.9.9
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
built with OpenSSL 1.0.2-chacha (1.0.2f-dev)
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-openssl=/root/openssl-1.0.2-chacha --add-module=/root/lnmp1.2-full/ngx_pagespeed-release-1.9.32.4-beta --add-module=/root/lnmp1.2-full/src/ngx_http_google_filter_module --add-module=/root/lnmp1.2-full/src/ngx_http_substitutions_filter_module --add-module=/root/nginx-ct-master
我是 conoha 的 centos 6 编译的还是很成功的
sky170
2016-01-23 20:59:38 +08:00
@shyling openssl 是 1.0.1d ,但是之前 1.0.2 和 1.1.0 都编译失败了= =
sky170
2016-01-23 21:00:11 +08:00
@chromee 都是 1.9.9 ,难道是 nginx 版本的问题?
sky170
2016-01-23 21:21:13 +08:00
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/nginx-ct-master/ngx_http_ssl_ct_module.o] Error 1
make[1]: Leaving directory `/root/nginx-1.9.5'
make: *** [build] Error 2


= = 升级了 openssl 再在还是
songjiaxin2008
2016-01-23 21:24:42 +08:00
@sky170 看看你的 GCC 版本?
kn007
2016-01-23 21:26:43 +08:00
@sky170 上 config.log 吧
@songjiaxin2008 有道理,不过 centos6 的 gcc 就够老了, 4.4.7 也可以编译。
kn007
2016-01-23 21:27:12 +08:00
@sky170 顺带输出 openssl version 来看看
kn007
2016-01-23 21:29:36 +08:00
@sky170 还有你的 configure 参数
qgy18
2016-01-23 21:32:32 +08:00
@sky170 禁用 warning 试试?死马当作活马医。。。
export CFLAGS="-Wno-error"
sky170
2016-01-23 22:19:23 +08:00
@kn007 OpenSSL 1.0.2e 3 Dec 2015
built on: reproducible build, date unspecified
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/ssl"
sky170
2016-01-23 22:20:09 +08:00
@kn007 ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_gzip_static_module --with-threads --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-openssl=../libressl-2.2.1 --with-ld-opt=-lrt --with-http_v2_module --add-module=../nginx-ct-master
sky170
2016-01-23 22:21:18 +08:00
@songjiaxin2008 gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
kn007
2016-01-23 22:21:34 +08:00
@sky170 。。。你 nginx 明明编译的是 libressl 。。。。。你要不要这么逗。。。。

nginx-ct:
The following versions of OpenSSL are supported:

OpenSSL 1.0.2 or above.
BoringSSL 4fac72e or above.
kn007
2016-01-23 22:23:28 +08:00
@sky170 LibreSSL is not supported as it doesn't provide either of the functions used to add the signed_certificate_timestamp extension to the response (SSL_CTX_add_server_custom_ext and SSL_CTX_set_signed_cert_timestamp_list).

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/252896

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX