Summary: | [PATCH] www/nginx: nginx+3rd syslog support | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Bartosz Kupidura <zynzel> |
Component: | Individual Port(s) | Assignee: | Sergey A. Osokin <osa> |
Status: | Closed DUPLICATE | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Bartosz Kupidura
2013-05-12 14:49:07 UTC
After enabling SYSLOG_SUPPORT nginx isn't compiled with syslog. extra-patch-syslog_support use "NGX_ENABLE_SYSLOG" which is not defined. # strings work/nginx-1.4.1/objs/nginx|grep syslog configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_stub_status_module --with-pcre --with-syslog --with-syslog-facility=LOG_DAEMON --with-http_ssl_module After changing configure: # strings work/nginx-1.4.1/objs/nginx | grep syslog syslog configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_stub_status_module --with-pcre --with-syslog --with-syslog-facility=LOG_DAEMON --with-http_ssl_module invalid syslog priority "%V" invalid syslog facility "%V" syslog You must set the syslog directive and enable it first. Fix: have=NGX_USER value="\"$NGX_USER\"" . auto/define have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define +have=NGX_ENABLE_SYSLOG value="1" . auto/define . auto/summary--VY1PUyY34EpvOWWt8UnN7lnrp7M5dRZwP5OTN93p8jcqCVGb Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" diff -u /usr/ports/www/nginx/work/nginx-1.4.1/configure /root/configure --- /usr/ports/www/nginx/work/nginx-1.4.1/configure 2013-05-06 12:26:49.000000000 +0200 +++ /root/configure 2013-05-12 15:41:54.087373650 +0200 @@ -107,5 +107,6 @@ How-To-Repeat: Build www/nginx with syslog support. Responsible Changed From-To: freebsd-ports-bugs->osa Over to maintainer (via the GNATS Auto Assign Tool) May be related: https://github.com/yaoweibin/nginx_syslog_patch/issues/9 I do experience the same symptoms: in nginx.conf: syslog local6 nginx; => nginx: [emerg] unknown directive "syslog" in /usr/local/etc/nginx/nginx.conf Hope this helps... -- *geoffroy desvernay* C.R.I - Administration systèmes et réseaux Ecole Centrale de Marseille This is a multi-part message in MIME format. This pr could be closed, deprecated by ports/189391 (ports/183273 may be closed too) -- *geoffroy desvernay* C.R.I - Administration systèmes et réseaux Ecole Centrale de Marseille Deprecated by ports/189391 *** This bug has been marked as a duplicate of bug 189391 *** |