已经安装了openssl,但是编译serf报错如下,求解!
buckets/ssl_buckets.c:248:34: error: incomplete definition of type 'struct bio_st'
serf_ssl_context_t *ctx = bio->ptr;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:291:34: error: incomplete definition of type 'struct bio_st'
serf_ssl_context_t *ctx = bio->ptr;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:318:27: error: incomplete definition of type 'struct bio_st'
apr_file_t *file = bio->ptr;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:343:27: error: incomplete definition of type 'struct bio_st'
apr_file_t *file = bio->ptr;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:361:8: error: incomplete definition of type 'struct bio_st'
bio->shutdown = 1;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:362:8: error: incomplete definition of type 'struct bio_st'
bio->init = 1;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:363:8: error: incomplete definition of type 'struct bio_st'
bio->num = -1;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:364:8: error: incomplete definition of type 'struct bio_st'
bio->ptr = NULL;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:398:19: error: variable has incomplete type 'BIO_METHOD'
(aka 'struct bio_method_st')
static BIO_METHOD bio_bucket_method = {
^
/usr/local/svn/openssl/include/openssl/bio.h:253:16: note: forward declaration of
'struct bio_method_st'
typedef struct bio_method_st BIO_METHOD;
^
buckets/ssl_buckets.c:413:19: error: variable has incomplete type 'BIO_METHOD'
(aka 'struct bio_method_st')
static BIO_METHOD bio_file_method = {
^
/usr/local/svn/openssl/include/openssl/bio.h:253:16: note: forward declaration of
'struct bio_method_st'
typedef struct bio_method_st BIO_METHOD;
^
buckets/ssl_buckets.c:967:9: warning: implicit declaration of function 'CRYPTO_malloc_init' is
invalid in C99 [-Wimplicit-function-declaration]
CRYPTO_malloc_init();
^
buckets/ssl_buckets.c:1039:12: error: incomplete definition of type 'struct bio_st'
bio->ptr = cert_file;
~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
buckets/ssl_buckets.c:1216:17: error: incomplete definition of type 'struct bio_st'
ssl_ctx->bio->ptr = ssl_ctx;
~~~~~~~~~~~~^
/usr/local/svn/openssl/include/openssl/ossl_typ.h:79:16: note: forward declaration of
'struct bio_st'
typedef struct bio_st BIO;
^
1 warning and 12 errors generated.
make: * [buckets/ssl_buckets.lo] Error 1