Sami Liedes <[EMAIL PROTECTED]> writes:

> Whenever I run elinks, I get messages like this in my syslog:
>
> ------------------------------------------------------------
> May  5 23:35:52 lh elinks: *** info
> May  5 23:35:52 lh elinks: /dev/gpmctl: No such file or directory
> May  5 23:35:52 lh elinks: *** info
> May  5 23:35:52 lh elinks: /dev/gpmctl: No such file or directory
> May  5 23:35:52 lh elinks: *** err
> May  5 23:35:52 lh elinks: Oh, oh, it's an error! possibly I die!

These messages come from gpm-1.20.3~pre3/src/liblow.c.  They
weren't there in the venerable gpm-1.19.6.  The messages are
output via gpm_report() in src/report.c.  According to the
comments there, GPM does not provide a way to entirely disable
the messages; it can only direct them to stdout/stderr.  To do
this, we'd have to set option.run_status = GPM_RUN_DEBUG.
However, the option variable is not exported from libgpm.so, and
the only places that set option.run_status = GPM_RUN_DEBUG are
cmdline() in src/gpn.c and cmdline() in prog/gpm-root.y, which
also do not appear to end up in libgpm.

Thus, it seems GPM does not allow applications such as ELinks to
disable this syslog output.  This excessive logging has already
been reported:

http://bugs.debian.org/469933  (libgpmg1 package)
http://bugs.debian.org/474516  (gpm package, perhaps not pertinent)

The only sane way to fix this in the elinks package would be to
disable GPM support.  Alternatively, you could downgrade GPM or
avoid the errors by installing the GPM server.

Attachment: pgpT7XqkMoOaN.pgp
Description: PGP signature

Reply via email to