tatsuhiro-t/spdylay

h2o-2.0.0-beta2 Build Failure

eleshar opened this issue · 2 comments

I'm attempting to build h2o-2.0.0-beta2 but keeps failing on Linux lsdev.biz 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64

/root/sources/h2o-2.0.0-beta2/lib/common/socket.c: In function ‘on_async_resumption_remove’:
/root/sources/h2o-2.0.0-beta2/lib/common/socket.c:587:52: error: dereferencing pointer to incomplete type
     h2o_iovec_t session_id = h2o_iovec_init(session->session_id, session->session_id_length);
                                                    ^
/root/sources/h2o-2.0.0-beta2/lib/common/socket.c:587:73: error: dereferencing pointer to incomplete type
     h2o_iovec_t session_id = h2o_iovec_init(session->session_id, session->session_id_length);
                                                                         ^
/root/sources/h2o-2.0.0-beta2/lib/common/socket.c: In function ‘h2o_socket_ssl_async_resumption_setup_ctx’:
/root/sources/h2o-2.0.0-beta2/lib/common/socket.c:723:34: warning: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type
     SSL_CTX_sess_set_get_cb(ctx, on_async_resumption_get);
                                  ^
In file included from /root/sources/h2o-2.0.0-beta2/include/h2o/socket.h:31:0,
                 from /root/sources/h2o-2.0.0-beta2/lib/common/socket.c:31:
/usr/local/include/openssl/ssl.h:723: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,
      ^
CMakeFiles/libh2o.dir/build.make:422: recipe for target 'CMakeFiles/libh2o.dir/lib/common/socket.c.o' failed
make[2]: *** [CMakeFiles/libh2o.dir/lib/common/socket.c.o] Error 1
CMakeFiles/Makefile2:348: recipe for target 'CMakeFiles/libh2o.dir/all' failed
make[1]: *** [CMakeFiles/libh2o.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

I'm afraid you have posted this on the wrong project.

My apologies, I have way too many browser tabs open. Please remove.