nginx配置时正常 但make时报错

cc1: warnings being treated as errors
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’:
src/event/ngx_event_openssl.c:112: error: ‘OPENSSL_config’ is deprecated (declared at /usr/local/src/nginx/openssl-1.1.0c/include/openssl/conf.h:92)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_rsa512_key_callback’:
src/event/ngx_event_openssl.c:753: error: ‘RSA_generate_key’ is deprecated (declared at /usr/local/src/nginx/openssl-1.1.0c/include/openssl/rsa.h:193)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_dhparam’:
src/event/ngx_event_openssl.c:943: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:944: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:946: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:946: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_connection_error’:
src/event/ngx_event_openssl.c:1917: error: ‘SSL_R_NO_CIPHERS_PASSED’ undeclared (first use in this function)
src/event/ngx_event_openssl.c:1917: error: (Each undeclared identifier is reported only once
src/event/ngx_event_openssl.c:1917: error: for each function it appears in.)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_cache’:
src/event/ngx_event_openssl.c:2111: error: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type
/usr/local/src/nginx/openssl-1.1.0c/include/openssl/ssl.h:618: note: expected ‘struct SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int,  int *)’ but argument is of type ‘struct SSL_SESSION * (*)(struct SSL *, u_char *, int,  int *)’
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_id_context’:
src/event/ngx_event_openssl.c:2133: error: storage size of ‘md’ isn’t known
src/event/ngx_event_openssl.c:2199: error: implicit declaration of function ‘EVP_MD_CTX_cleanup’
src/event/ngx_event_openssl.c:2133: error: unused variable ‘md’
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
make[1]: Leaving directory `/usr/local/src/nginx/nginx-1.9.9’
make: *** [build] Error 2

时间: 2024-10-13 19:35:39

nginx配置时正常 但make时报错的相关文章

nginx配置时的一些问题

在配置nginx的时候出现的一些问题,在此记录: 1.如何打开nginx服务: 方法1:打开解压的下载文件,双击打开nginx.exe即可(出现闪退,我以为是出问题了,其实是服务已经启动了) 方法2: win+R --> cmd-->进入nginx文件夹(如我的D:\Program Files\nginx-1.11.1)-->nginx.exe 2.停止nginx服务(命令行): 方法1: D:\Program Files\nginx-1.11.1>nginx -s quit 方法

网站Nginx配置时无法解析php文件

我在安装阿里云对应的VPSMate面板时打开网站首页会直接下载文件,一想就是没有解析php,不过我不会这个,找同事解决了,记录下~ ps:csdn终于支持markdown了不容易啊-- 如何解决: 打开/etc/nginx/nginx.conf.default,复制如下代码 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { root html; fastcgi_pass

nginx配置反向代理或跳转出现400问题处理记录

午休完上班后,同事说测试站点访问接口出现400 Bad Request  Request Header Or Cookie Too Large提示,心想还好是测试服务器出现问题,影响不大,不过也赶紧上服务器进行测试查看,打开nginx与ugwsi日志与配置,发现后端服务日志记录正常,而测试站点的访问日志有7百多M(才运行两三天没几个访问,几M的话才是正常现象),在浏览器里直接访问后端服务接口也正常没有问题(我们的服务器软件架构是微服务架构,将很多模块分拆后分别部署,前端是一个纯HTML站点,通过

Mingyang.net:注解配置Hibernate时报错Unknown Entity

注解配置时报错:org.hibernate.MappingException: Unknown entity: net.mingyang.cms.bean.User org.hibernate.MappingException: Unknown entity: net.mingyang.cms.bean.User at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1096

crmsh配置pacemaker集群时报错 CIB not supported: validator 'pacemaker-2.5'

在使用crmsh配置集群时曾遇到过如下错误: ERROR: CIB not supported: validator 'pacemaker-2.5', release '3.0.10' ERROR: You may try the upgrade command ERROR: No CIB! 大概的意思就是:经检验器pacemaker-2.5检查后发现crm shell版本相对较低,不被CIB(集群信息库)支持,因此建议更新crmsh版本: 其实如果我们执行 cibadmin --query |

如何解决在Win10上配置Office365时报错80090034?

如何解决在Win10上配置Office365时报错80090034? ?Lander Zhang 专注外企按需IT运维服务,IT Helpdesk 实战培训践行者博客:https://blog.51cto.com/lander IT Helpdesk 工程师实战培训课程:https://edu.51cto.com/lecturer/733218.html轻松进外企:IT Helpdesk工程师实战自学之路:https://blog.51cto.com/lander/2413018更新时间:201

解决Nginx添加openssl模块编译时报错问题

如题所示,报错信息如下: /bin/sh: line 2: ./config: No such file or directory make[1]: *** [/usr/local/ssl/.openssl/include/openssl/ssl.h] Error 127 make[1]: Leaving directory `/usr/local/src/nginx-1.9.9' make: *** [build] Error 2 需要说明的是,我这里编译所使用的Nginx源码是1.9.9的.

配置使用vim编辑Nginx配置文件时语法高亮

vim是Unix系统中非常实用的文本编辑器,它和传统的vi相比最大的区别在于它所支持的配色方案,这个功能使得平时编辑一些配置文件或者是在写代码的时候极大的提高工作效率,如果我们在系统中有安装vim相应的包且开启了syntax配色方案的时候会不显示语法高亮往往是配置设置错误所引起的.一般配置错误有2个地方:1.是远程服务器的仿真客户终端配置错误:2.是服务器上环境变量配置错误.在这里就用SecureCRT仿真客户终端为例子简单的说一下vim开启syntax配色方案: 在SecureCRT上需要配置

nginx配置if错误语句时出错一例

server{ if (!-e $request_filename)        {                rewrite ^(.*)$ /index.php last;        } } 如果if 没有放在location时,在做memc缓存时,在错误日志里会提示以下信息 2014/05/12 10:45:51 [error] 11520#0: *325726 srcache_fetch: cache sent truncated response body while send