Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <59A4CCBC.3010300@adelielinux.org>
Date: Mon, 28 Aug 2017 21:09:00 -0500
From: "A. Wilcox" <awilfox@...lielinux.org>
To: musl@...ts.openwall.com
Subject: Re: Missing definitions for UTMP(x)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 28/08/17 16:57, Matias Fonzo wrote:
> sessreg.h:110:21: error: '_PATH_UTMPX' undeclared (first use in
> this function) # define UTMPX_FILE _PATH_UTMPX ^ sessreg.c:308:16:
> note: in expansion of macro 'UTMPX_FILE' utmpx_file = UTMPX_FILE; 
> ^~~~~~~~~~


> # define UTMPX_FILE     _PATH_UTMPX


> Please, include it.


If you'll notice, this would cause preprocessor recursion.

The musl libc does not actually support utmpx or wtmpx.  For better
support you need to add another library such as libutx:

https://code.foxkit.us/adelie/libutx

This library is not yet fully functional, as it does not yet provide
wtmp(x).  It does however fully implement utmp(x).  It may give clues
as to what you'll need to do to make this functional on musl libc.

What we do in Adélie is actually put these two files in the musl
codebase itself as a patch, so that all programs can have it
available.  An eventual goal is to make it a separate library, and
have programs that can use utmpx features attempt to dlopen the
library.  If the library exists on the system, they use it; if the
library does not exist on the system, the user has chosen to disable
it and that part of the software is disabled.

Unfortunately that is going to require a massive effort and the
cooperation of many disparate upstreams.  I don't hold my breath for
such a time.  Until then, having it always available with a simple
solution for those who do not want it (symlink /var/run/utmp ->
/dev/null) is what we are using.


Best,
- --arw


- -- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZpMy5AAoJEMspy1GSK50U3AYQAJWNqpkl2eWCLnxpU+p2cAmv
9yzWQe2sPjCo+1hISq4u8Xt1c0KMbBGaKLhgA9yh1wtQT21QdWm+Xk3wIaETZd3v
EnMH3ZzxbbYXYImYmyytUUicDbCJVHWvBe4kG9wQtgoTqijw7WIkDR6MuyKwTC7Q
Ax2U+QXQ25bnjGekW6OWVoCDDDrfYM1NZvz8DUh74ovxL3ceqKnUOmoNxJRWZS0w
a3z80c5LiB9/ilOuzQc/ijeDFjm/ST2A99vKutzTdEM05kcsrzsNEVLC47SFZfOg
+s0SCXVpEsXvXSkS1ECXANSt6b1HACO1VPZ+aBsyKApi8D/UnO2uzIwV1fQox6XE
4Gt9XPV7mP8WL9ycsNW7WXRhledHvtncGHaIqCiG6md/kSdPQEgP/KzeXJeAv+FH
bmRJTSbhDB0o2SeUxrCVLHLaPGWTYtshNg6/C/l2dyZqwctgmTmmUeVkXFnADiGW
ytwhzLfaUjE3eh8nqHd8BHXZtRweiaxtTZaOo7HmJF8TH1s1a3s9o4sfTHF8js+U
GKaXaIrBNDBD2/XMvt5w0/WDZjw/INyNPcXwV2aXCBuofPtQpFi1cvDjPHfZVWZx
irLrGTBVffgBuTNb19ZLWN+RC5JmAFuSGaTvpNWnMF0kaZD/pQ3ubYFHKJOMyBHY
sZd8C2Hq1ePbcs/qd9KH
=T+QY
-----END PGP SIGNATURE-----

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.