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.

Reply via email to