Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 20 May 2013 23:14:32 -0400
From: Rich Felker <>
Subject: Re: error compiling shadow

On Mon, May 20, 2013 at 07:58:44PM -0700, Isaac Dunham wrote:
> On Mon, 20 May 2013 21:17:20 -0300
> "Matias A. Fonzo" <> wrote:
> > I'm trying to compile shadow  I receive this error:
> >
> > It seems like some entries are missing in utmp.h:
> > ut_host, ut_addr/ut_addr_v6, ...
> 1: musl does not support utmp. A public list of who's logged in is not
> desired.

Well the utmp functions are stubs that don't read or write any data,
but the interfaces are there to facilitate compiling programs that
expect them to exist. If there are build errors due to stuff being
missing, we should add it.

> 2: Just looking at that error, I get the impression that someone either
> isn't defining a feature-test macro that they should or is omitting a
> header. AF_INET is defined in sys/socket.h

Indeed. glibc exposes socket stuff indirectly through some other
headers, if I'm not mistaken. musl on the other hand avoids pulling in
additional headers implicitly. If this is indeed the problem, I think
just adding #include <sys/socket.h> to the file would fix it.

> 3: I see no indications that the errors are due to ut_* being absent.


> I'll see if I can find the problem.

Thanks for helping with support!


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.