Проблема при компиляции Nginx модуль? Привет всем, ошибка при добавления модуля nginx vod module
Результат ./configure./configure --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/tmp/nginx-1.1.19/debian/modules/nginx-auth-pam --add-module=/tmp/nginx-1.1.19/debian/modules/nginx-echo --add-module=/tmp/nginx-1.1.19/debian/modules/nginx-upstream-fair --add-module=/tmp/nginx-1.1.19/debian/modules/nginx-dav-ext-module --add-module=/tmp/nginx-rtmp-module-master --add-module=/tmp/nginx-vod-module-master
checking for OS
+ Linux 3.13.0-32-generic x86_64
checking for C compiler ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... not found
checking for nogroup group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... little endianess
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
configuring additional modules
adding module in /tmp/nginx-1.1.19/debian/modules/nginx-auth-pam
+ ngx_http_auth_pam_module was configured
adding module in /tmp/nginx-1.1.19/debian/modules/nginx-echo
+ ngx_http_echo_module was configured
adding module in /tmp/nginx-1.1.19/debian/modules/nginx-upstream-fair
+ ngx_http_upstream_fair_module was configured
adding module in /tmp/nginx-1.1.19/debian/modules/nginx-dav-ext-module
+ ngx_http_dav_ext_module was configured
adding module in /tmp/nginx-rtmp-module-master
+ ngx_rtmp_module was configured
adding module in /tmp/nginx-vod-module-master
checking for OpenSSL EVP library ... found
checking for clock_gettime() ... not found
checking for clock_gettime() in librt ... found
checking for libavcodec ... found
checking for libavfilter ... found
+ ngx_http_vod_module was configured
checking for PCRE library ... found
checking for PCRE JIT support ... not found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for libxslt ... found
checking for libexslt ... found
checking for GD library ... found
checking for GeoIP library ... found
creating objs/Makefile
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using system zlib library
nginx path prefix: "/etc/nginx"
nginx binary file: "/etc/nginx/sbin/nginx"
nginx configuration prefix: "/etc/nginx"
nginx configuration file: "/etc/nginx/nginx.conf"
nginx pid file: "/var/run/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/access.log"
nginx http client request body temporary files: "/var/lib/nginx/body"
nginx http proxy temporary files: "/var/lib/nginx/proxy"
nginx http fastcgi temporary files: "/var/lib/nginx/fastcgi"
nginx http uwsgi temporary files: "/var/lib/nginx/uwsgi"
nginx http scgi temporary files: "/var/lib/nginx/scgi"
Ошибка make :objs/addon/vod/write_buffer_queue.o \
objs/ngx_modules.o \
-lpthread -lcrypt -lpam -lexpat -lcrypto -lrt -lavcodec -lavutil -lavfilter -lavutil -lpcre -lssl -lcrypto -ldl -lz -lxml2 -lxslt -lexslt -lgd -lGeoIP
objs/addon/nginx-vod-module-master/ngx_http_vod_module.o: In function `ngx_http_vod_send_header':
ngx_http_vod_module.c:(.text+0x1392): undefined reference to `ngx_http_set_etag'
objs/addon/nginx-vod-module-master/ngx_http_vod_utils.o: In function `ngx_http_vod_send_response':
ngx_http_vod_utils.c:(.text+0x110): undefined reference to `ngx_http_set_etag'
objs/addon/filters/audio_filter.o: In function `audio_filter_init_source':
audio_filter.c:(.text+0x670): undefined reference to `avfilter_inout_alloc'
objs/addon/filters/audio_filter.o: In function `audio_filter_init_sink':
audio_filter.c:(.text+0x890): undefined reference to `av_int_list_length_for_size'
audio_filter.c:(.text+0x8af): undefined reference to `av_int_list_length_for_size'
audio_filter.c:(.text+0x8d2): undefined reference to `av_opt_set_bin'
audio_filter.c:(.text+0x951): undefined reference to `av_int_list_length_for_size'
audio_filter.c:(.text+0x970): undefined reference to `av_int_list_length_for_size'
audio_filter.c:(.text+0x993): undefined reference to `av_opt_set_bin'
audio_filter.c:(.text+0xa13): undefined reference to `av_int_list_length_for_size'
audio_filter.c:(.text+0xa32): undefined reference to `av_int_list_length_for_size'
audio_filter.c:(.text+0xa55): undefined reference to `av_opt_set_bin'
audio_filter.c:(.text+0xbef): undefined reference to `avfilter_inout_alloc'
objs/addon/filters/audio_filter.o: In function `audio_filter_alloc_state':
audio_filter.c:(.text+0x17c6): undefined reference to `avfilter_graph_parse_ptr'
audio_filter.c:(.text+0x18c3): undefined reference to `av_buffersink_set_frame_size'
audio_filter.c:(.text+0x18c8): undefined reference to `av_frame_alloc'
audio_filter.c:(.text+0x1929): undefined reference to `av_frame_alloc'
audio_filter.c:(.text+0x1b0c): undefined reference to `avfilter_inout_free'
audio_filter.c:(.text+0x1b18): undefined reference to `avfilter_inout_free'
objs/addon/filters/audio_filter.o: In function `audio_filter_free_state':
audio_filter.c:(.text+0x1bc7): undefined reference to `av_frame_free'
audio_filter.c:(.text+0x1bd7): undefined reference to `av_frame_free'
objs/addon/filters/audio_filter.o: In function `audio_filter_read_filter_sink':
audio_filter.c:(.text+0x2443): undefined reference to `av_buffersink_get_frame_flags'
audio_filter.c:(.text+0x2505): undefined reference to `av_frame_unref'
objs/addon/filters/audio_filter.o: In function `audio_filter_process_frame':
audio_filter.c:(.text+0x2656): undefined reference to `av_frame_unref'
audio_filter.c:(.text+0x2701): undefined reference to `av_buffersrc_add_frame_flags'
objs/addon/filters/audio_filter.o: In function `audio_filter_choose_source':
audio_filter.c:(.text+0x2785): undefined reference to `avfilter_graph_request_oldest'
audio_filter.c:(.text+0x2895): undefined reference to `av_buffersrc_get_nb_failed_requests'
collect2: выполнение ld завершилось с кодом возврата 1
make[1]: *** [objs/nginx] Ошибка 1
make[1]: Выход из каталога `/tmp/nginx-1.1.19'
make: *** [build] Ошибка 2
Все кодеки установлены, так как конфигурация успешно завершилось.
ОС : Linux ubuntu server 12.04
Nginx version: nginx/1.1.19
Может я где то допускаю ошибку? или это несовместимости версий? заранее спасибо!

21 Авг 2019 в 06:53
241 +1
0
Ответы
1

Ошибка, которую вы видите, указывает на то, что есть некоторые отсутствующие зависимости или неразрешенные ссылки в вашем модуле Nginx.

Некоторые возможные причины этого:

Версия Nginx и модуля несовместимы. Убедитесь, что модуль совместим с вашей версией Nginx.Отсутствие зависимостей. Убедитесь, что все требуемые зависимости установлены на вашей системе.Проблемы с компиляцией. Попробуйте выполнить чистую установку Nginx и модуля, начиная с загрузки исходных файлов и повторной компиляции.

Также убедитесь, что вы используете правильные параметры configure при компиляции Nginx с модулем. Проверьте документацию модуля для правильных настроек.

Если проблема все еще не устранена, попробуйте обратиться к сообществу Nginx или разработчикам модуля для поддержки.

20 Апр в 13:12
Не можешь разобраться в этой теме?
Обратись за помощью к экспертам
Название заказа не должно быть пустым
Введите email
Бесплатные доработки
Гарантированные бесплатные доработки
Быстрое выполнение
Быстрое выполнение от 2 часов
Проверка работы
Проверка работы на плагиат
Интересные статьи из справочника
Поможем написать учебную работу
Название заказа не должно быть пустым
Введите email
Доверьте свою работу экспертам
Разместите заказ
Наша система отправит ваш заказ на оценку 92 017 авторам
Первые отклики появятся уже в течение 10 минут
Прямой эфир