Skip to content

Some problems when running zmq destination with syslog-ng 3.7.2 #150

@litterbear

Description

@litterbear

I found there are problems when running zmq destination with syslog-ng 3.7.2

It compiles successfully, but it fails when running with the configuration below.

@version: 3.7
@include "scl.conf"
source      s_system { system(); internal(); };

destination zmq_des {
    zmq(
      port(5557)
    );
};

log { source(s_system); destination(zmq_des); };

I tried by

  1. compiling from the source in my ubuntu 14.04 server
  2. compiling in the syslog-ng-incubator-dev docker image.
    Both tries failes with following message
[2016-03-22T11:26:37.194081] Module loaded and initialized successfully; module='sdjournal'
[2016-03-22T11:26:37.194124] Finishing include; content='source confgen system', depth='1'
[2016-03-22T11:26:37.194447] Module loaded and initialized successfully; module='zmq'
/usr/sbin/syslog-ng: symbol lookup error: /usr/lib/syslog-ng/3.7/libzmq.so: undefined symbol: init_sequence_number

I look into the code and found the reason is that the init_sequence_number function is not included. Include "lib/misc.h" solve the problem when it is syslog-ng 3.7.2.

However init_sequence_number is in lib/misc.h in syslog-ng 3.7.2, and init_sequence_number is in lib/seqnum.h in syslog-ng 3.8

How should I include the file?

PS:
If I use the syslog-ng 3.8 in the master version to compile syslog-ng-incubator, problems like #149 will be encountered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions