Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am trying to install rsyslog 5.4.0 with relp on CentOS 5.5 (vmware). My installation steps: yum install gcc.i386 liblogging-0.7.1: ./configure make make install librelp-1.0.0: ./configure make make install ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Compiling rsyslog with RELP

    Hi,

    I am trying to install rsyslog 5.4.0 with relp on CentOS 5.5 (vmware). My installation steps:

    yum install gcc.i386

    liblogging-0.7.1:
    ./configure
    make
    make install

    librelp-1.0.0:
    ./configure
    make
    make install

    yum install pkgconfig.i386
    yum install zlib-devel.i386

    rsyslog-5.4.0:
    CFLAGS=-march=i686 ./configure RELP_LIBS=/usr/local/lib RELP_CFLAGS=-I/usr/local/include LIBLOGGING_LIBS=/usr/local/lib LIBLOGGING_CFLAGS=-I/usr/local/include --enable-relp --enable-rfc3195 --enable-rsyslogd --enable-imfile
    make
    make install

    rsyslog can write logs but RELP does not work. /var/log/messages contains the following:

    rsyslogd: [origin software="rsyslogd" swVersion="5.4.0" x-pid="21103"] start
    2010-08-13T10:00:16.999795+00:00 mymachine rsyslogd-2066: could not load module '/usr/local/lib/rsyslog/omrelp.so', dlopen: /usr/local/lib/rsyslog/omrelp.so: undefined symbol: relpEngineConstruct
    2010-08-13T10:00:16.999873+00:00 mymachine rsyslogd: the last error occured in /etc/rsyslog.conf, line 8:"$ModLoad omrelp.so # loads RELP module for reliable forwarding"
    2010-08-13T10:00:17.000006+00:00 mymachine rsyslogd-2124: CONFIG ERROR: could not interpret master config file '/etc/rsyslog.conf'.

    /usr/local/lib/rsyslog/omrelp.so exists with permission 755 owned by root.
    I read some similar posts but older version of centos, rsyslog, librelp and rebuilding the packages could not help.

    -------------------------------------------------------

    I tried to install RPM packages:
    librelp-0.1.1-3.el5.kb.i386.rpm
    rsyslog4-4.4.2-5.ius.el5.i386.rpm
    rsyslog4-relp-4.4.2-5.ius.el5.i386.rpm

    # ldd /usr/lib/rsyslog/omrelp.so
    linux-gate.so.1 => (0x00a3a000)
    librelp.so.0 => /usr/lib/librelp.so.0 (0x005e5000)
    librt.so.1 => /lib/librt.so.1 (0x00e79000)
    libc.so.6 => /lib/libc.so.6 (0x00a5a000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00f5f000)
    /lib/ld-linux.so.2 (0x001ce000)

    When I compiled from tarball:
    # ldd /usr/local/lib/rsyslog/omrelp.so
    linux-gate.so.1 => (0x003cc000)
    libc.so.6 => /lib/libc.so.6 (0x00ea0000)
    /lib/ld-linux.so.2 (0x005e7000)

    It seems that some dependencies are missing that is why omrelp.so could not find a symbol.
    Can anyone help to solve this?

    BR
    zgabe

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    Hi All,

    The final solution is to use "./configure --prefix=/usr" when compiling liblogging and librelp sources.
    In this case unnecessary to specify RELP_LIBS, RELP_CFLAGS, LIBLOGGING_LIBS and LIBLOGGING_CFLAGS when configure rsyslog.

    BR
    zgabe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...