Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 Aug 2017 18:57:27 -0300
From: Matias Fonzo <selk@...gora.org>
To: musl@...ts.openwall.com
Subject: Missing definitions for UTMP(x)

Hi there,

We were building mesa (17.2.0-rc4) for Dragora, and we get this errors:

In file included from sessreg.c:73:0:
sessreg.c: In function 'main':
sessreg.h:107:21: error: '_PATH_WTMPX' undeclared (first use in this
function) # define WTMPX_FILE _PATH_WTMPX
                     ^
sessreg.c:302:16: note: in expansion of macro 'WTMPX_FILE'
   wtmpx_file = WTMPX_FILE;
                ^~~~~~~~~~
sessreg.h:107:21: note: each undeclared identifier is reported only
once for each function it appears in # define WTMPX_FILE _PATH_WTMPX
                     ^
sessreg.c:302:16: note: in expansion of macro 'WTMPX_FILE'
   wtmpx_file = WTMPX_FILE;
                ^~~~~~~~~~
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;
                ^~~~~~~~~~
make[2]: *** [Makefile:489: sessreg.o] Error 1
make[1]: *** [Makefile:509: all-recursive] Error 1
make: *** [Makefile:381: all] Error 2

Glibc defines in utmpx.h:

#ifdef __USE_GNU
/* Compatibility names for the strings of the canonical file names.  */
# define UTMPX_FILE     _PATH_UTMPX
# define UTMPX_FILENAME _PATH_UTMPX
# define WTMPX_FILE     _PATH_WTMPX
# define WTMPX_FILENAME _PATH_WTMPX
#endif

Please, include it.

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.