[syslog-ng] Parsing failed for ARM cross compile

Scheidler, Balázs balazs.scheidler at balabit.com
Fri Feb 24 05:54:46 UTC 2017


I think module loading does not work for some reason. Is /opt/sysroot
indeed your prefix or the root of your arm cross compile system? If you set
prefix there only to make sure Syslog-ng installs there, then you should
use:

./configure --prefix /
make install DESTDIR=/opt/sysroot

Prefix gets embedded into a number of default paths, such as module-path.
These can be customised but that needs to be explicit.

On Feb 23, 2017 23:22, "Nakarin Kamkheaw" <nakarin.kamkheaw at grandstream.com>
wrote:

There is. I'm not sure what happened the first time, though. This is the
most recent output.

# syslog-ng -f /etc/syslog-ng.conf -c /var/run/syslog-ng.ctl
syslog-ng: Error changing to directory=/opt/sysroot/var, errcode=2
Error parsing source, source plugin system not found in /etc/syslog-ng.conf
at line 10, column 2:

        system();
        ^^^^^^

syslog-ng documentation: http://www.balabit.com/support/documentation/?
product=syslog-ng
mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng
# ls -l /var/run/
-rw-r--r--    1 root     root             4 Feb 23 22:14 crond.pid
drwxr-xr-x    2 root     root          4096 Feb 23 22:14 dbus
srwxr-xr-x    1 root     root             0 Feb 23 22:19 syslog-ng.ctl
-rw-r--r--    1 root     root             4 Feb 23 22:14 syslogd.pid

On Thu, Feb 23, 2017 at 8:52 AM Noémi Ványi <sitbackandwait at gmail.com>
wrote:

Hi,

Is /var/run/syslog-ng.ctl on NFS?

BR,
kvch

On 23 February 2017 at 02:05, Nakarin Kamkheaw <
nakarin.kamkheaw at grandstream.com> wrote:

Hi,
I've cross-compiled syslog-ng-3.6.4 for ARM successfully, but syslog-ng is
failed to run with a couple errors as shown below. I'm using the default
syslog-ng.conf file with only a modification of "scl.conf" to
"/etc/scl.conf".

# syslog-ng -f /etc/syslog-ng.conf -c /var/run/syslog-ng.ctl
syslog-ng: Error changing to directory=/opt/sysroot/var, errcode=2
[2017-02-23T00:50:09.266037] Error opening control socket, bind() failed;
socket='/var/run/syslog-ng.ctl', error='Stale NFS file handle (116)'
Error parsing source, source plugin system not found in /etc/syslog-ng.conf
at line 10, column 2:

system();
^^^^^^

syslog-ng documentation: http://www.balabit.com/support/documentation/?
product=syslog-ng
mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng

PS. This is the configuration I use.

./configure --host=arm-linux-gnueabi --prefix=/opt/sysroot/ --exec-prefix=/
--enable-mongodb=no --enable-json=no --enable-stomp=no --enable-amqp=no
--enable-spoof-source=no


____________________________________________________________
__________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?
product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq



____________________________________________________________
__________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?
product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq


____________________________________________________________
__________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?
product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20170224/fdb6b840/attachment-0001.html>


More information about the syslog-ng mailing list