You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc -g -c -Wall pkg-config --cflags libevent_openssl openssl libconfig nntp-proxy.c -o nntp-proxy.o
Package libevent_openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent_openssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libevent_openssl' found
nntp-proxy.c:31:24: error: event2/dns.h: No such file or directory
nntp-proxy.c:32:36: error: event2/bufferevent_ssl.h: No such file or directory
nntp-proxy.c:33:32: error: event2/bufferevent.h: No such file or directory
nntp-proxy.c:34:27: error: event2/buffer.h: No such file or directory
nntp-proxy.c:35:29: error: event2/listener.h: No such file or directory
nntp-proxy.c:36:25: error: event2/util.h: No such file or directory
nntp-proxy.c: In function 'close_client':
nntp-proxy.c:389: warning: implicit declaration of function 'bufferevent_free'
nntp-proxy.c: In function 'drained_writecb':
nntp-proxy.c:447: warning: implicit declaration of function 'bufferevent_setcb'
nntp-proxy.c:448: warning: implicit declaration of function 'bufferevent_setwatermark'
nntp-proxy.c:448: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c:448: error: (Each undeclared identifier is reported only once
nntp-proxy.c:448: error: for each function it appears in.)
nntp-proxy.c:451: warning: implicit declaration of function 'bufferevent_enable'
nntp-proxy.c:451: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c: In function 'close_on_finished_writecb':
nntp-proxy.c:458: warning: implicit declaration of function 'bufferevent_get_output'
nntp-proxy.c:458: warning: initialization makes pointer from integer without a cast
nntp-proxy.c:460: warning: implicit declaration of function 'evbuffer_get_length'
nntp-proxy.c: In function 'common_readcb':
nntp-proxy.c:499: warning: implicit declaration of function 'bufferevent_get_input'
nntp-proxy.c:499: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:503: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:517: warning: implicit declaration of function 'evbuffer_readln'
nntp-proxy.c:517: error: 'EVBUFFER_EOL_CRLF' undeclared (first use in this function)
nntp-proxy.c:521: warning: implicit declaration of function 'evbuffer_add_printf'
nntp-proxy.c:526: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:529: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:546: warning: implicit declaration of function 'evbuffer_add_buffer'
nntp-proxy.c:558: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c:559: warning: implicit declaration of function 'bufferevent_disable'
nntp-proxy.c:559: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c: In function 'connect_to_server':
nntp-proxy.c:696: warning: implicit declaration of function 'bufferevent_openssl_socket_new'
nntp-proxy.c:697: error: 'BUFFEREVENT_SSL_CONNECTING' undeclared (first use in this function)
nntp-proxy.c:698: error: 'BEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
nntp-proxy.c:698: error: 'BEV_OPT_DEFER_CALLBACKS' undeclared (first use in this function)
nntp-proxy.c:706: warning: implicit declaration of function 'bufferevent_socket_connect_hostname'
nntp-proxy.c:712: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c:712: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c: In function 'client_auth_readcb':
nntp-proxy.c:731: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:732: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:738: error: 'EVBUFFER_EOL_CRLF' undeclared (first use in this function)
nntp-proxy.c: In function 'server_auth_readcb':
nntp-proxy.c:819: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:820: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:826: error: 'EVBUFFER_EOL_CRLF' undeclared (first use in this function)
nntp-proxy.c:846: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c: In function 'print_openssl_err':
nntp-proxy.c:858: warning: implicit declaration of function 'bufferevent_get_openssl_error'
nntp-proxy.c: In function 'eventcb':
nntp-proxy.c:885: error: 'BEV_EVENT_READING' undeclared (first use in this function)
nntp-proxy.c:887: error: 'BEV_EVENT_WRITING' undeclared (first use in this function)
nntp-proxy.c:889: error: 'BEV_EVENT_ERROR' undeclared (first use in this function)
nntp-proxy.c:891: error: 'BEV_EVENT_TIMEOUT' undeclared (first use in this function)
nntp-proxy.c:893: error: 'BEV_EVENT_EOF' undeclared (first use in this function)
nntp-proxy.c:895: error: 'BEV_EVENT_CONNECTED' undeclared (first use in this function)
nntp-proxy.c:903: warning: implicit declaration of function 'evutil_socket_error_to_string'
nntp-proxy.c:903: warning: implicit declaration of function 'EVUTIL_SOCKET_ERROR'
nntp-proxy.c:905: warning: implicit declaration of function 'bufferevent_socket_get_dns_error'
nntp-proxy.c:907: warning: implicit declaration of function 'evutil_gai_strerror'
nntp-proxy.c:926: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c:939: warning: assignment makes pointer from integer without a cast
nntp-proxy.c: At top level:
nntp-proxy.c:953: error: expected declaration specifiers or '...' before 'evutil_socket_t'
nntp-proxy.c:954: warning: 'struct evconnlistener' declared inside parameter list
nntp-proxy.c:954: warning: its scope is only this definition or declaration, which is probably not what you want
nntp-proxy.c: In function 'ssl_accept_cb':
nntp-proxy.c:976: error: 'sock' undeclared (first use in this function)
nntp-proxy.c:977: error: 'BUFFEREVENT_SSL_ACCEPTING' undeclared (first use in this function)
nntp-proxy.c:978: error: 'BEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
nntp-proxy.c:978: error: 'BEV_OPT_DEFER_CALLBACKS' undeclared (first use in this function)
nntp-proxy.c:986: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c:986: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c:994: warning: implicit declaration of function 'evutil_closesocket'
nntp-proxy.c: In function 'main':
nntp-proxy.c:1037: warning: implicit declaration of function 'evutil_parse_sockaddr_port'
nntp-proxy.c:1049: warning: implicit declaration of function 'event_base_new'
nntp-proxy.c:1049: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:1054: warning: implicit declaration of function 'evdns_base_new'
nntp-proxy.c:1054: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:1060: warning: implicit declaration of function 'evconnlistener_new_bind'
nntp-proxy.c:1061: error: 'LEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
nntp-proxy.c:1061: error: 'LEV_OPT_REUSEABLE' undeclared (first use in this function)
nntp-proxy.c:1071: warning: implicit declaration of function 'event_base_dispatch'
nntp-proxy.c:1075: warning: implicit declaration of function 'evconnlistener_free'
nntp-proxy.c:1076: warning: implicit declaration of function 'event_base_free'
nntp-proxy.c:1077: warning: implicit declaration of function 'evdns_base_free'
make: *** [nntp-proxy.o] Error 1
The text was updated successfully, but these errors were encountered:
Installed : sudo apt-get install libssl-dev libevent-dev libconfig-dev
Operating System Debian 6 64bit
gcc -g -c -Wall
pkg-config --cflags libevent_openssl openssl libconfig
nntp-proxy.c -o nntp-proxy.oPackage libevent_openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent_openssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libevent_openssl' found
nntp-proxy.c:31:24: error: event2/dns.h: No such file or directory
nntp-proxy.c:32:36: error: event2/bufferevent_ssl.h: No such file or directory
nntp-proxy.c:33:32: error: event2/bufferevent.h: No such file or directory
nntp-proxy.c:34:27: error: event2/buffer.h: No such file or directory
nntp-proxy.c:35:29: error: event2/listener.h: No such file or directory
nntp-proxy.c:36:25: error: event2/util.h: No such file or directory
nntp-proxy.c: In function 'close_client':
nntp-proxy.c:389: warning: implicit declaration of function 'bufferevent_free'
nntp-proxy.c: In function 'drained_writecb':
nntp-proxy.c:447: warning: implicit declaration of function 'bufferevent_setcb'
nntp-proxy.c:448: warning: implicit declaration of function 'bufferevent_setwatermark'
nntp-proxy.c:448: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c:448: error: (Each undeclared identifier is reported only once
nntp-proxy.c:448: error: for each function it appears in.)
nntp-proxy.c:451: warning: implicit declaration of function 'bufferevent_enable'
nntp-proxy.c:451: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c: In function 'close_on_finished_writecb':
nntp-proxy.c:458: warning: implicit declaration of function 'bufferevent_get_output'
nntp-proxy.c:458: warning: initialization makes pointer from integer without a cast
nntp-proxy.c:460: warning: implicit declaration of function 'evbuffer_get_length'
nntp-proxy.c: In function 'common_readcb':
nntp-proxy.c:499: warning: implicit declaration of function 'bufferevent_get_input'
nntp-proxy.c:499: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:503: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:517: warning: implicit declaration of function 'evbuffer_readln'
nntp-proxy.c:517: error: 'EVBUFFER_EOL_CRLF' undeclared (first use in this function)
nntp-proxy.c:521: warning: implicit declaration of function 'evbuffer_add_printf'
nntp-proxy.c:526: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:529: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:546: warning: implicit declaration of function 'evbuffer_add_buffer'
nntp-proxy.c:558: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c:559: warning: implicit declaration of function 'bufferevent_disable'
nntp-proxy.c:559: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c: In function 'connect_to_server':
nntp-proxy.c:696: warning: implicit declaration of function 'bufferevent_openssl_socket_new'
nntp-proxy.c:697: error: 'BUFFEREVENT_SSL_CONNECTING' undeclared (first use in this function)
nntp-proxy.c:698: error: 'BEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
nntp-proxy.c:698: error: 'BEV_OPT_DEFER_CALLBACKS' undeclared (first use in this function)
nntp-proxy.c:706: warning: implicit declaration of function 'bufferevent_socket_connect_hostname'
nntp-proxy.c:712: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c:712: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c: In function 'client_auth_readcb':
nntp-proxy.c:731: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:732: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:738: error: 'EVBUFFER_EOL_CRLF' undeclared (first use in this function)
nntp-proxy.c: In function 'server_auth_readcb':
nntp-proxy.c:819: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:820: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:826: error: 'EVBUFFER_EOL_CRLF' undeclared (first use in this function)
nntp-proxy.c:846: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c: In function 'print_openssl_err':
nntp-proxy.c:858: warning: implicit declaration of function 'bufferevent_get_openssl_error'
nntp-proxy.c: In function 'eventcb':
nntp-proxy.c:885: error: 'BEV_EVENT_READING' undeclared (first use in this function)
nntp-proxy.c:887: error: 'BEV_EVENT_WRITING' undeclared (first use in this function)
nntp-proxy.c:889: error: 'BEV_EVENT_ERROR' undeclared (first use in this function)
nntp-proxy.c:891: error: 'BEV_EVENT_TIMEOUT' undeclared (first use in this function)
nntp-proxy.c:893: error: 'BEV_EVENT_EOF' undeclared (first use in this function)
nntp-proxy.c:895: error: 'BEV_EVENT_CONNECTED' undeclared (first use in this function)
nntp-proxy.c:903: warning: implicit declaration of function 'evutil_socket_error_to_string'
nntp-proxy.c:903: warning: implicit declaration of function 'EVUTIL_SOCKET_ERROR'
nntp-proxy.c:905: warning: implicit declaration of function 'bufferevent_socket_get_dns_error'
nntp-proxy.c:907: warning: implicit declaration of function 'evutil_gai_strerror'
nntp-proxy.c:926: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c:939: warning: assignment makes pointer from integer without a cast
nntp-proxy.c: At top level:
nntp-proxy.c:953: error: expected declaration specifiers or '...' before 'evutil_socket_t'
nntp-proxy.c:954: warning: 'struct evconnlistener' declared inside parameter list
nntp-proxy.c:954: warning: its scope is only this definition or declaration, which is probably not what you want
nntp-proxy.c: In function 'ssl_accept_cb':
nntp-proxy.c:976: error: 'sock' undeclared (first use in this function)
nntp-proxy.c:977: error: 'BUFFEREVENT_SSL_ACCEPTING' undeclared (first use in this function)
nntp-proxy.c:978: error: 'BEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
nntp-proxy.c:978: error: 'BEV_OPT_DEFER_CALLBACKS' undeclared (first use in this function)
nntp-proxy.c:986: error: 'EV_READ' undeclared (first use in this function)
nntp-proxy.c:986: error: 'EV_WRITE' undeclared (first use in this function)
nntp-proxy.c:994: warning: implicit declaration of function 'evutil_closesocket'
nntp-proxy.c: In function 'main':
nntp-proxy.c:1037: warning: implicit declaration of function 'evutil_parse_sockaddr_port'
nntp-proxy.c:1049: warning: implicit declaration of function 'event_base_new'
nntp-proxy.c:1049: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:1054: warning: implicit declaration of function 'evdns_base_new'
nntp-proxy.c:1054: warning: assignment makes pointer from integer without a cast
nntp-proxy.c:1060: warning: implicit declaration of function 'evconnlistener_new_bind'
nntp-proxy.c:1061: error: 'LEV_OPT_CLOSE_ON_FREE' undeclared (first use in this function)
nntp-proxy.c:1061: error: 'LEV_OPT_REUSEABLE' undeclared (first use in this function)
nntp-proxy.c:1071: warning: implicit declaration of function 'event_base_dispatch'
nntp-proxy.c:1075: warning: implicit declaration of function 'evconnlistener_free'
nntp-proxy.c:1076: warning: implicit declaration of function 'event_base_free'
nntp-proxy.c:1077: warning: implicit declaration of function 'evdns_base_free'
make: *** [nntp-proxy.o] Error 1
The text was updated successfully, but these errors were encountered: