mailing list of musl libc
 help / color / mirror / code / Atom feed
* Missing definitions for UTMP(x)
@ 2017-08-28 21:57 Matias Fonzo
  2017-08-29  2:09 ` A. Wilcox
  2017-08-29 11:05 ` u-uy74
  0 siblings, 2 replies; 5+ messages in thread
From: Matias Fonzo @ 2017-08-28 21:57 UTC (permalink / raw)
  To: musl

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-29 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-28 21:57 Missing definitions for UTMP(x) Matias Fonzo
2017-08-29  2:09 ` A. Wilcox
2017-08-29 18:53   ` Matias Fonzo
2017-08-29 11:05 ` u-uy74
2017-08-29 18:51   ` Matias Fonzo

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).