Been there, done that.  Fixed it like this in init.d/rsyslog.
Adjust path to librelp.so accordingly.  

I did NOT have the librelp load problem when using the 7.2.5 Stable RPMs
from Adiscon site built for CentOS 5.

diff -u ./rsyslog.r5000 ./rsyslog.local
--- ./rsyslog   Rev. 5000       (Tue Jan 10 11:17:32 2012)
+++ ./rsyslog   Local version   (Tue Jan 10 11:17:32 2012)
@@ -88,7 +88,7 @@ start() {
 
 
         echo -n $"Starting system logger: "
-        daemon $exec $SYSLOGD_OPTIONS
+        daemon LD_PRELOAD=/usr/lib64/librelp.so.0 $exec
$SYSLOGD_OPTIONS
         RETVAL=$?
         echo
         [ $RETVAL -eq 0 ] && touch $lockfile


Alan Edmonds

(Apologies for using LookOut)

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Xavier Fustero
Sent: 13 February 2013 15:19
To: rsyslog-users
Subject: [rsyslog] rsyslog 7.2.5 - Can't load module imrelp.so

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.
NOTICE AND DISCLAIMER

This email (including attachments) is confidential. If you are not the intended 
recipient, notify the sender immediately, delete this email from your system 
and do not disclose or use for any purpose.

Deutsche Telekom (UK) Limited

Company Registered Number: 3951860

Registered Office Address: Hatfield Business Park, Hatfield, Hertfordshire, 
AL10 9BW

Registered in England and Wales
_______________________________________________
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.

Reply via email to