You are not logged in.

#1 2017-04-28 20:27:33

Gyscos
Member
Registered: 2009-09-19
Posts: 33

ncurses package doesn't work with gpm

GPM is a daemon used to provide mouse events to application running in the linux terminal.

There are usually 2 ways to use gpm events in ncurses applications:
* Directly use libgpm in parallel to ncurses events (this is what elinks does for instance)
* Let ncurses deal with gpm internally

When using ncurses, it's very convenient to let ncurses deal with gpm internally, and just process mouse events transparently. For that, ncurses needs to link to gpm.
Modern version of ncurses do this dynamically: at runtime, they check if libgpm.so is available for loading.

However, in the ncurses package from Arch's repositories, such loading fails.
Indeed, in `ncurses/base/lib_mouse.c`, the function `load_gpm_library` tries to load the file behind the macro `LIBGPM_SONAME`. This macro variable evaluates to `maybe` instead of the correct `/lib/libgpm.so`, as can be seen in the generated `include/ncurses_cfg.h`.
This file is built by the `configure` script, and where `LIBGPM_SONAME` is set to `$cf_cv_gpm_soname`, itself set from `with_gpm`, itself set to `maybe`.

I'm not sure if the problem is with ncurses' configure script or with the set of parameters we use in the repository.


EDIT: Sorry for the formatting, haven't found how to write inline monospace code sad

Last edited by Gyscos (2017-04-28 22:45:04)

Offline

Board footer

Powered by FluxBB