python3.4安装uwsgi的时候提示我openssl有问题,有人能帮忙看一下吗?

daine199 发布于 2017/01/03 10:29
阅读 1K+
收藏 0

云原生2.0展望丨从“小众”到“首选”,推动云原生产业落地华为云作用几何?>>>

Debian GNU/Linux 8.4 (jessie) 安装python3.4的uwsgi 包编译失败。

workon python3.4的虚环境上(实际上python2.7,python3.4的非虚环境也是装不上的)

openssl是1.1.0c

===========

pip install uwsgi

...

...

...

core/ssl.c:17:9: warning: 'OPENSSL_config' is deprecated (declared at /usr/local/include/openssl/conf.h:92) [-Wdeprecated-declarations]

             OPENSSL_config(NULL);
             ^
    core/ssl.c: In function 'uwsgi_ssl_info_cb':
    core/ssl.c:26:24: error: dereferencing pointer to incomplete type
                     if (ssl->s3) {
                            ^
    core/ssl.c:27:28: error: dereferencing pointer to incomplete type
                             ssl->s3->flags |= SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS;
                                ^
    core/ssl.c: In function 'uwsgi_ssl_session_new_cb':
    core/ssl.c:62:69: error: dereferencing pointer to incomplete type
             if (uwsgi_cache_set2(uwsgi.ssl_sessions_cache, (char *) sess->session_id, sess->session_id_length, session_blob, len, uwsgi.ssl_sessions_timeout, 0)) {
                                                                         ^
    core/ssl.c:62:87: error: dereferencing pointer to incomplete type
             if (uwsgi_cache_set2(uwsgi.ssl_sessions_cache, (char *) sess->session_id, sess->session_id_length, session_blob, len, uwsgi.ssl_sessions_timeout, 0)) {
                                                                                           ^
    core/ssl.c: In function 'uwsgi_ssl_session_remove_cb':
    core/ssl.c:96:69: error: dereferencing pointer to incomplete type
             if (uwsgi_cache_del2(uwsgi.ssl_sessions_cache, (char *) sess->session_id, sess->session_id_length, 0, 0)) {
                                                                         ^
    core/ssl.c:96:87: error: dereferencing pointer to incomplete type
             if (uwsgi_cache_del2(uwsgi.ssl_sessions_cache, (char *) sess->session_id, sess->session_id_length, 0, 0)) {
                                                                                           ^
    core/ssl.c: In function 'uwsgi_ssl_new_server_context':
    core/ssl.c:408:46: warning: passing argument 2 of 'SSL_CTX_sess_set_get_cb' from incompatible pointer type
                     SSL_CTX_sess_set_get_cb(ctx, uwsgi_ssl_session_get_cb);
                                                  ^
    In file included from ./uwsgi.h:357:0,
                     from core/ssl.c:1:
    /usr/local/include/openssl/ssl.h:618:6: note: expected 'struct SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int,  int *)' but argument is of type 'struct SSL_SESSION * (*)(struct SSL *, unsigned char *, int,  int *)'
     void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,
          ^

    ----------------------------------------

Command "/home/daine199/.virtualenv/py34dev/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e87ksj6m/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-1iip7sfq-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/daine199/.virtualenv/py34dev/include/site/python3.4/uwsgi" failed with error code 1 in /tmp/pip-build-e87ksj6m/uwsgi/


========

daine199@thunneycomb:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 8.4 (jessie)
Release:    8.4
Codename:    jessie

========

daine199@thunneycomb:~$ openssl version
OpenSSL 1.1.0c  10 Nov 2016

========

自己看到的是取openssl的版本没取到,导致走的是就的对象初始化的方法,但是没搞懂取版本是在哪取的就不对了。

加载中
返回顶部
顶部