From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11853 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Missing definitions for UTMP(x) Date: Mon, 28 Aug 2017 21:09:00 -0500 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <59A4CCBC.3010300@adelielinux.org> References: <20170828185658.74f2552f@prometeo.example.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1503972557 16830 195.159.176.226 (29 Aug 2017 02:09:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Aug 2017 02:09:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 To: musl@lists.openwall.com Original-X-From: musl-return-11866-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 29 04:09:12 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dmVxo-00045N-4a for gllmg-musl@m.gmane.org; Tue, 29 Aug 2017 04:09:12 +0200 Original-Received: (qmail 25626 invoked by uid 550); 29 Aug 2017 02:09:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 25608 invoked from network); 29 Aug 2017 02:09:15 -0000 X-Enigmail-Draft-Status: N1110 In-Reply-To: <20170828185658.74f2552f@prometeo.example.org> Xref: news.gmane.org gmane.linux.lib.musl.general:11853 Archived-At: -----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-----