tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
604 stars 102 forks source link

Build error on Debian 8 #150

Closed bigboyq closed 6 years ago

bigboyq commented 6 years ago

Build errors

make  all-recursive
make[1]: Entering directory '/root/spdylay'
Making all in lib
make[2]: Entering directory '/root/spdylay/lib'
Making all in includes
make[3]: Entering directory '/root/spdylay/lib/includes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/spdylay/lib/includes'
make[3]: Entering directory '/root/spdylay/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/spdylay/lib'
make[2]: Leaving directory '/root/spdylay/lib'
Making all in src
make[2]: Entering directory '/root/spdylay/src'
depbase=`echo shrpx_config.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -Wall -I./../lib/includes -I./../lib/includes -I/usr/include/libxml2  -DHAVE_CONFIG_H   -g -O2 -MT shrpx_config.o -MD -MP -MF $depbase.Tpo -c -o shrpx_config.o shrpx_config.cc &&\
mv -f $depbase.Tpo $depbase.Po
In file included from shrpx_config.cc:25:0:
shrpx_config.h:151:3: error: ev_token_bucket_cfg does not name a type
   ev_token_bucket_cfg *rate_limit_cfg;
   ^
shrpx_config.h:153:3: error: ev_token_bucket_cfg does not name a type
   ev_token_bucket_cfg *worker_rate_limit_cfg;
   ^
In file included from shrpx_config.cc:42:0:
shrpx_ssl.h:50:2: error: bufferevent_rate_limit_group has not been declared
  bufferevent_rate_limit_group *rate_limit_group,
  ^
shrpx_ssl.h:52:2: error: evutil_socket_t has not been declared
  evutil_socket_t fd,
  ^
Makefile:1009: recipe for target 'shrpx_config.o' failed
make[2]: *** [shrpx_config.o] Error 1
make[2]: Leaving directory '/root/spdylay/src'
Makefile:495: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/spdylay'
Makefile:403: recipe for target 'all' failed
make: *** [all] Error 2

Guess the problem related to libevent, but don't know how to resolve it.

For resolve the problem: ./configure result

configure: summary of build options:

    Version:        1.4.1-DEV shared 9:1:2
    Host type:      x86_64-unknown-linux-gnu
    Install prefix: /usr/local
    C compiler:     gcc
    CFLAGS:         -g -O2 
    LDFLAGS:        
    LIBS:           -L/usr/lib/x86_64-linux-gnu -lz  
    CPPFLAGS:       
    C preprocessor: gcc -E
    C++ compiler:   g++
    CXXFLAGS:       -g -O2
    CXXCPP:         g++ -E
    Library types:  Shared=yes, Static=yes
    CUnit:          yes
    OpenSSL:        yes
    Libxml2:        yes
    Libevent(SSL):  yes
    Src:            yes
    Examples:       yes

OS-Release

PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"