Re: rsyslog: cannot load imklog.so on Hurd (undefined symbol)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: rsyslog: cannot load imklog.so on Hurd (undefined symbol)

Michael Biebl-3
On Sat, 02 Jul 2016 16:48:40 +0300 Kalle Olavi Niemitalo <[hidden email]> wrote:

> Package: rsyslog
> Version: 8.16.0-1+b4
> Severity: normal
> User: [hidden email]
> Usertags: hurd
>
> I get this to /var/log/syslog on each boot:
>
> Jul  2 16:19:36 luuska rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="1207" x-info="http://www.rsyslog.com"] start
> Jul  2 16:19:36 luuska rsyslogd-2066: could not load module '/usr/lib/rsyslog/imklog.so', dlopen: /usr/lib/rsyslog/imklog.so: undefined symbol: klogWillRunPrePrivDrop  [v8.16.0 try http://www.rsyslog.com/e/2066 ]
>
> and although gnumach writes "unexpected RESEND from keyboard" to
> the console when I use a key combination to unfocus the
> virtualbox window, rsyslog does not forward that message to
> /var/log/kern.log.
>
> The error happens because the build system of rsyslog does not
> recognize the GNU Hurd and builds imklog.so without compiling
> bsd.c, which would define the missing symbols.  To fix that,
> one would first have to patch configure.ac so it recognizes
> ${host}=i586-pc-gnu and sets os_type="bsd".  (config.guess would
> output "i686-unknown-gnu0.8" instead but that doesn't matter here
> because dh_auto_configure provides the --build= option.)
>
> That change would fix the missing symbols but rsyslog would then
> hit a Hurd bug: https://savannah.gnu.org/bugs/?48371 "read(fd,
> NULL, 0) from /dev/klog blocks until there is data".  This causes
> rsyslog to block on startup.  To work around it, you can #if out
> the read call and related code in plugins/imklog/bsd.c
> (klogWillRunPostPrivDrop).  Then it'll start quickly and actually
> log the kernel messages.
>
> After those fixes, rsyslog would still be slow to exit when the
> OS is shut down.  I haven't tried to find the reason for that.
>
> I do not intend to publish any patches for rsyslog but I hope
> this description will help someone else fix the bug.
Is anyone from the GNU/Hurd porters interested in addressing this issue?

If not, I'm inclined to close this bug report.

Regards,
Michael

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


signature.asc (849 bytes) Download Attachment