Zemond
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Всем привет! У меня проблема с модулем Apache proxy_wstunnel_module на CentOS. CentOS release 6.9 (Final) Server version: Apache/2.4.12 (Unix) Мне нужно установить proxy_wstunnel_module я делаю по инструкции http://stackmirror.cn/page/s0ui2n9ay1bt 1) Скачиваю модуль с гитхаба https://github.com/apache/httpd/tree/trunk/modules/proxy 2) Компилирую пакет apxs -i -a -c mod_proxy_tunnel.c и на выходе получаю кучу ошибок: Код: mod_proxy_tunnel.c: In function 'proxy_wstunnel_pump': mod_proxy_tunnel.c:91: warning: implicit declaration of function 'ap_proxy_transfer_between_connections' mod_proxy_tunnel.c: In function 'proxy_wstunnel_finish': mod_proxy_tunnel.c:163: warning: implicit declaration of function 'ap_mpm_resume_suspended' mod_proxy_tunnel.c: In function 'proxy_wstunnel_callback': mod_proxy_tunnel.c:207: warning: implicit declaration of function 'ap_mpm_register_poll_callback_timeout' mod_proxy_tunnel.c: In function 'proxy_wstunnel_canon': mod_proxy_tunnel.c:235: warning: implicit declaration of function 'ap_cstr_casecmpn' mod_proxy_tunnel.c: In function 'proxy_wstunnel_request': mod_proxy_tunnel.c:317: error: 'proxy_worker_shared' has no member named 'upgrade' mod_proxy_tunnel.c:317: error: 'proxy_worker_shared' has no member named 'upgrade' mod_proxy_tunnel.c:330: warning: implicit declaration of function 'ap_cstr_casecmp' mod_proxy_tunnel.c: In function 'proxy_wstunnel_handler': mod_proxy_tunnel.c:463: error: 'proxy_worker_shared' has no member named 'upgrade' mod_proxy_tunnel.c:463: error: 'proxy_worker_shared' has no member named 'upgrade' mod_proxy_tunnel.c:521: warning: implicit declaration of function 'ap_proxy_connection_create_ex' mod_proxy_tunnel.c: In function 'create_proxyws_dir_config': mod_proxy_tunnel.c:547: error: 'AP_MPMQ_CAN_POLL' undeclared (first use in this function) mod_proxy_tunnel.c:547: error: (Each undeclared identifier is reported only once mod_proxy_tunnel.c:547: error: for each function it appears in.) apxs:Error: Command failed with rc=65536 | Качаю дополнительные файлы с гита ap_mpm.h и mod_proxy.h Компилирую еще раз: Код: apxs -i -a -c mod_proxy_tunnel.c /usr/local/apache/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -m64 -fPIC -DPIC -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -c -o mod_proxy_tunnel.lo mod_proxy_tunnel.c && touch mod_proxy_tunnel.slo mod_proxy_tunnel.c: In function 'proxy_wstunnel_canon': mod_proxy_tunnel.c:235: warning: implicit declaration of function 'ap_cstr_casecmpn' mod_proxy_tunnel.c: In function 'proxy_wstunnel_request': mod_proxy_tunnel.c:330: warning: implicit declaration of function 'ap_cstr_casecmp' /usr/local/apache/build/libtool --silent --mode=link gcc -std=gnu99 -L/usr/lib64 -o mod_proxy_tunnel.la -rpath /usr/local/apache/modules -module -avoid-version mod_proxy_tunnel.lo /usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_proxy_tunnel.la /usr/local/apache/modules /usr/local/apache/build/libtool --mode=install install mod_proxy_tunnel.la /usr/local/apache/modules/ libtool: install: install .libs/mod_proxy_tunnel.so /usr/local/apache/modules/mod_proxy_tunnel.so libtool: install: install .libs/mod_proxy_tunnel.lai /usr/local/apache/modules/mod_proxy_tunnel.la libtool: install: install .libs/mod_proxy_tunnel.a /usr/local/apache/modules/mod_proxy_tunnel.a libtool: install: chmod 644 /usr/local/apache/modules/mod_proxy_tunnel.a libtool: install: ranlib /usr/local/apache/modules/mod_proxy_tunnel.a libtool: finish: PATH="/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/usr/local/easy/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/sbin" ldconfig -n /usr/local/apache/modules ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/apache/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- chmod 755 /usr/local/apache/modules/mod_proxy_tunnel.so [activating module `proxy_wstunnel' in /usr/local/apache/conf/httpd.conf] | Ошибок, кроме одного варнинга нету, файл *.so сделался и прописался в httpd.conf 3) Проверяю какие модули подключены и получаю ошибку: Код: httpd -M httpd: Syntax error on line 35 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_proxy_tunnel.so into server: /usr/local/apache/modules/mod_proxy_tunnel.so: undefined symbol: ap_mpm_register_poll_callback_timeout | Как решить проблему? |