try adding /opt/rsyslogd/lib/rsyslog to your /etc/ld.so.conf (or an included
file in /etc/ld.so.conf.d/ depending on your distro) and then running ldconfig
David Lang
On Wed, 13 Feb 2013, Xavier Fustero wrote:
Date: Wed, 13 Feb 2013 17:49:19 +0100
From: Xavier Fustero <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: Re: [rsyslog] rsyslog 7.2.5 - Can't load module imrelp.so
Hi,
I haven't mention before I am working with Ubuntu:
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
I also realized that if I type ldd to the imrelp.so generated after
compiling and installing rsyslog I only get these libs:
ldd /opt/rsyslogd/lib/rsyslog/imrelp.so
linux-vdso.so.1 => (0x00007fff73f7f000)
libc.so.6 => /lib/libc.so.6 (0x00007f94b6842000)
/lib64/ld-linux-x86-64.so.2 (0x00007f94b6dce000)
However, if I type apt-get install rsyslog-relp I got the following file
/usr/lib/rsyslog/imrelp.so and if I type ldd to this I get more links:
root@rsyslog:/home/xavier/rsyslog-7.2.5# ldd
/opt/rsyslogd/lib/rsyslog/imrelp.so
linux-vdso.so.1 => (0x00007fffce1ff000)
librelp.so.0 => /usr/local/lib/librelp.so.0 (0x00007fbd6d989000)
librt.so.1 => /lib/librt.so.1 (0x00007fbd6d781000)
libc.so.6 => /lib/libc.so.6 (0x00007fbd6d3fa000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fbd6d1dd000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbd6dda4000)
I tried to copy this imrelp.so in my lib directory but it is still not
working:
root@rsyslog:/home/xavier/rsyslog-7.2.5# /opt/rsyslogd/sbin/rsyslogd -N3
rsyslogd: version 7.2.5, config validation run (level 3), master config
/etc/rsyslog.conf
rsyslogd: could not load module '/opt/rsyslogd/lib/rsyslog/imrelp.so',
rsyslog error -2054
[try http://www.rsyslog.com/e/2068 ]
rsyslogd: input module name 'imrelp' is unknown [try
http://www.rsyslog.com/e/2209 ]
rsyslogd: error during parsing file /etc/rsyslog.d/45-server-rsyslog.conf,
on or before line 11: parameter 'port' not known -- typo in config file?
[try http://www.rsyslog.com/e/2207 ]
rsyslogd: End of config validation run. Bye.
Thanks,
Xavi
On 13 February 2013 16:19, Xavier Fustero <[email protected]> wrote:
Hi,
I try to test rsyslog 7.2.5 but I got stuck trying to use relp. Looks like
it is not able to find the libraries but I got everything installed in my
box.
I have downloaded http://download.rsyslog.com/librelp/librelp-1.0.1.tar.gzand
just typed:
./configure & make & make install
The library has been installed under /usr/local/lib which is in my
/etc/ld.so.conf.d
Then I have installed rsyslog using relp:
./configure RELP_LIBS=/usr/local/lib RELP_CFLAGS=/usr/local/include
LDFLAGS="-L${INSTALL}/lib -R${INSTALL}/lib" --prefix=/opt/rsyslogd
--enable-gssapi-krb5 --enable-kmsg --enable-debug --enable-memcheck
--enable-diagtools --enable-usertools --enable-mysql --enable-elasticsearch
--enable-gnutls --enable-mmnormalize --enable-mmjsonparse --enable-relp
--enable-imfile --enable-imptcp --enable-impstats --enable-pmlastmsg
make & make install
I can see the relp modules under /opt/rsyslogd/lib/rsyslog/ like
imrelp.so. However, when I check my syntax it turns out the above error.
Config file:
module(load="imudp") # needs to be done just once
input(type="imudp" port="514")
module(load="/opt/rsyslogd/lib/rsyslog/imrelp")
input(type="imrelp" port="20514")
Error:
root@rsyslog:/home/xavier/rsyslog-7.2.5# /opt/rsyslogd/sbin/rsyslogd -N3
rsyslogd: version 7.2.5, config validation run (level 3), master config
/etc/rsyslog.conf
rsyslogd: could not load module '/opt/rsyslogd/lib/rsyslog/imrelp.so',
dlopen: /opt/rsyslogd/lib/rsyslog/imrelp.so: undefined symbol:
relpEngineAddListner
[try http://www.rsyslog.com/e/2066 ]
rsyslogd: input module name 'imrelp' is unknown [try
http://www.rsyslog.com/e/2209 ]
rsyslogd: error during parsing file /etc/rsyslog.d/45-server-rsyslog.conf,
on or before line 11: parameter 'port' not known -- typo in config file?
[try http://www.rsyslog.com/e/2207 ]
rsyslogd: End of config validation run. Bye.
the file /opt/rsyslogd/lib/rsyslog/imrelp.so exists and ldd returns me
this:
root@rsyslog:/home/xavier/rsyslog-7.2.5# ldd
/opt/rsyslogd/lib/rsyslog/imrelp.so
linux-vdso.so.1 => (0x00007fffb65ff000)
libc.so.6 => /lib/libc.so.6 (0x00007f78655ac000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7865b38000)
I also did a strings to the imrelp.so and I can grep relpEngineAddListner.
It seems like something is not linking correctly.
Also the second error 'port' doesn't make sense to me as it is not
complaining for the udp module. Probably because I am not loading relp...
I am wondering if this error sounds familiar to any of you.
Thanks a log,
Xavi
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.