lot of error lines with gtls activated

This is the place for developers to discuss bugs, new features and everything else about code changes.

lot of error lines with gtls activated

Postby saispo » Fri Nov 14, 2008 3:01 pm

Hi,

I use the latest version of rsyslog such as 3.21.7 and when i activate gtls for tls transfer between two hosts i have a lot of this such lines with the debug mode :

0396.944966670:imtcp.c: caller requested object 'nsdsel_gtls', not found (iRet -3003)

Have you an idea ? i don't understand why...

I use an Ubunty Hardy and i build rsyslogd with the tarball on the website :-)

Thanks in advance.
saispo
Avarage
 
Posts: 18
Joined: Tue Jun 17, 2008 1:27 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: lot of error lines with gtls activated

Postby rgerhards » Fri Nov 14, 2008 3:13 pm

Please post a bit more of the log, this may be ok or not ;)
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: lot of error lines with gtls activated

Postby saispo » Mon Nov 17, 2008 10:30 am

Hi,

Excuse me for my late answer, i was away for the week ^^

I attach you a log file with near 5000 lines.

Thanks
Attachments
rsyslog-error.bz2
(28.36 KiB) Downloaded 11 times
saispo
Avarage
 
Posts: 18
Joined: Tue Jun 17, 2008 1:27 pm

Re: lot of error lines with gtls activated

Postby rgerhards » Mon Nov 17, 2008 12:28 pm

OK, lol, this is definitely not like it should be ;) It looks like the module is simply missing. Can you check if you have a nsdsel_gtls file in /usr/lib/rsyslog?

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: lot of error lines with gtls activated

Postby saispo » Mon Nov 17, 2008 1:59 pm

No i haven't got :x but i build with gnutls support... have you an idea ?
saispo
Avarage
 
Posts: 18
Joined: Tue Jun 17, 2008 1:27 pm

Re: lot of error lines with gtls activated

Postby rgerhards » Mon Nov 17, 2008 2:01 pm

Do you have that file anywhere on your system (use find if in doubt)? I am asking because I frequently see that the ./configure pathname defaults do not match the things the distro is set up. If that's the problem using --bindir and friends with ./configure will solve the issue.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: lot of error lines with gtls activated

Postby saispo » Mon Nov 17, 2008 2:24 pm

No i haven't got this anywhere ... i launch a find / -name nsdel_gtls and no result
saispo
Avarage
 
Posts: 18
Joined: Tue Jun 17, 2008 1:27 pm

Re: lot of error lines with gtls activated

Postby rgerhards » Mon Nov 17, 2008 4:30 pm

mhhh... can you provide me your ./configure command line and the output of the configure run?
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: lot of error lines with gtls activated

Postby saispo » Mon Nov 17, 2008 4:44 pm

My configure :

./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--enable-largefile \
--enable-regexp \
--enable-zlib \
--enable-gssapi-krb5 \
--enable-pthreads \
--enable-klog \
--enable-inet \
--enable-debug \
--enable-rtinst \
--enable-valgrind \
--enable-mysql \
--enable-pgsql \
--enable-libdbi \
--enable-snmp \
--enable-gnutls \
--enable-rsyslogrt \
--enable-rsyslogd \
--enable-mail \
--enable-imfile \
--enable-imtemplate \
--enable-relp \
CFLAGS="$(CFLAGS)"

And i attach the config.log

Thanks
saispo
Avarage
 
Posts: 18
Joined: Tue Jun 17, 2008 1:27 pm

Re: lot of error lines with gtls activated

Postby bob_ross » Sun Mar 08, 2009 10:25 pm

Was this issue ever resolved? I am having the exact same problem. I build rsyslog with gnutls enabled and when I run it it will print out hundreds of lines of:
imtcp.c: caller requested object 'nsdsel_gtls', not found (iRet -3003)
and then it will crash with an out of memory error after a short time.

I'm building the latest stable release 3.20.4 and I'm linking against gnutls 2.4.2-6 on Debian 5. I confirmed that I do have the file lmnsd_gtls.so in /usr/lib/rsyslog.
bob_ross
New
 
Posts: 3
Joined: Sun Mar 08, 2009 10:22 pm

Re: lot of error lines with gtls activated

Postby rgerhards » Mon Mar 09, 2009 7:21 am

I can't remember the details, but you should check your build log if nsd_gtls is build. Then, watch out where it is copied to on make install. Please tell me what happens in both cases.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: lot of error lines with gtls activated

Postby bob_ross » Tue Mar 10, 2009 3:57 am

My configure is: ./configure --prefix=/usr --enable-gnutls
The lines with nsd_gtls in the build log are as follows:
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I../runtime -I.. -I/usr/include -I/usr/include -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT lmnsd_gtls_la-nsd_gtls.lo -MD -MP -MF .deps/lmnsd_gtls_la-nsd_gtls.Tpo -c -o lmnsd_gtls_la-nsd_gtls.lo `test -f 'nsd_gtls.c' || echo './'`nsd_gtls.c

gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I../runtime -I.. -I/usr/include -I/usr/include -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT lmnsd_gtls_la-nsd_gtls.lo -MD -MP -MF .deps/lmnsd_gtls_la-nsd_gtls.Tpo -c nsd_gtls.c -fPIC -DPIC -o .libs/lmnsd_gtls_la-nsd_gtls.o
mv -f .deps/lmnsd_gtls_la-nsd_gtls.Tpo .deps/lmnsd_gtls_la-nsd_gtls.Plo

/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I../runtime -I.. -I/usr/include -I/usr/include -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT lmnsd_gtls_la-nsdsel_gtls.lo -MD -MP -MF .deps/lmnsd_gtls_la-nsdsel_gtls.Tpo -c -o lmnsd_gtls_la-nsdsel_gtls.lo `test -f 'nsdsel_gtls.c' || echo './'`nsdsel_gtls.c

gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I../runtime -I.. -I/usr/include -I/usr/include -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT lmnsd_gtls_la-nsdsel_gtls.lo -MD -MP -MF .deps/lmnsd_gtls_la-nsdsel_gtls.Tpo -c nsdsel_gtls.c -fPIC -DPIC -o .libs/lmnsd_gtls_la-nsdsel_gtls.o
mv -f .deps/lmnsd_gtls_la-nsdsel_gtls.Tpo .deps/lmnsd_gtls_la-nsdsel_gtls.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -module -avoid-version -o lmnsd_gtls.la -rpath /usr/lib/rsyslog lmnsd_gtls_la-nsd_gtls.lo lmnsd_gtls_la-nsdsel_gtls.lo -lgnutls

gcc -shared .libs/lmnsd_gtls_la-nsd_gtls.o .libs/lmnsd_gtls_la-nsdsel_gtls.o /usr/lib/libgnutls.so -L/usr/lib -Wl,-soname -Wl,lmnsd_gtls.so -o .libs/lmnsd_gtls.so
creating lmnsd_gtls.la
(cd .libs && rm -f lmnsd_gtls.la && ln -s ../lmnsd_gtls.la lmnsd_gtls.la)


My install log has these lines for nsd_gtls:

/bin/sh ../libtool --mode=install /usr/bin/install -c 'lmnsd_gtls.la' '/usr/lib/rsyslog/lmnsd_gtls.la'

/usr/bin/install -c .libs/lmnsd_gtls.so /usr/lib/rsyslog/lmnsd_gtls.so

/usr/bin/install -c .libs/lmnsd_gtls.lai /usr/lib/rsyslog/lmnsd_gtls.la


There are no error messages in the logs associated with these actions. And just to be thorough here are the config lines I'm using to set up TLS. It is in a file called TLS.conf which is included from rsyslog.conf via $IncludeConfig.

Code: Select all
# setup TLS
$DefaultNetstreamDriver gtls
$DefaultNetstreamDriverCAFile /etc/ssl/certs/CA.pem
$DefaultNetstreamDriverCertFile /etc/ssl/certs/rsyslog.pem
$DefaultNetstreamDriverKeyFile /etc/ssl/private/rsyslog.key
$InputTCPServerStreamDriverAuthMode x509/name
$InputTCPServerStreamDriverPermittedPeer www.host1.com
$InputTCPServerStreamDriverPermittedPeer www.host2.com
$InputTCPServerStreamDriverMode 1 # TLS-only
bob_ross
New
 
Posts: 3
Joined: Sun Mar 08, 2009 10:22 pm

Re: lot of error lines with gtls activated

Postby rgerhards » Tue Mar 10, 2009 10:44 am

Is /usr/lib the right location for your system? For example, I think in x64 systems, it is /usr/lib64 instead...
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: lot of error lines with gtls activated

Postby bob_ross » Wed Mar 11, 2009 8:15 am

Code: Select all
$ uname -m
i686


Appreciate you taking the time to look into this. I'm stumped.
bob_ross
New
 
Posts: 3
Joined: Sun Mar 08, 2009 10:22 pm

Re: lot of error lines with gtls activated

Postby rgerhards » Wed Mar 11, 2009 9:58 am

I suggest that you check with some forum that covers your distribution. Check there, where loadable library modules need to be placed. Then, supply that path to --libdir in ./configure. That should do the trick.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron