From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3844 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Update: [pkg-shadow-Bugs][314271] Shadow FTBFS with musl libc Date: Tue, 6 Aug 2013 22:37:02 -0400 Message-ID: <20130807023701.GC221@brightrain.aerifal.cx> References: <20130807010358.GA7667@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1375843036 20555 80.91.229.3 (7 Aug 2013 02:37:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 02:37:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3848-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 07 04:37:17 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V6tch-0004jF-QA for gllmg-musl@plane.gmane.org; Wed, 07 Aug 2013 04:37:15 +0200 Original-Received: (qmail 18244 invoked by uid 550); 7 Aug 2013 02:37:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18234 invoked from network); 7 Aug 2013 02:37:14 -0000 Content-Disposition: inline In-Reply-To: <20130807010358.GA7667@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3844 Archived-At: On Tue, Aug 06, 2013 at 06:03:59PM -0700, Isaac wrote: > > Rich, can we make sizeof(struct in_addr) visible? > That's ostensibly the only thing necessary for shadow to build at present. > > ----- Forwarded message from pkg-shadow-bugs@alioth.debian.org ----- > > Date: Wed, 07 Aug 2013 00:23:43 +0000 > From: pkg-shadow-bugs@alioth.debian.org > To: noreply@alioth.debian.org > Subject: [pkg-shadow-Bugs][314271] Shadow FTBFS with musl libc > > pkg-shadow-Bugs item #314271 was changed at 07/08/2013 02:23 by Nicolas Fran??ois > You can respond by visiting: > https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=314271&group_id=30580 > > >Status: Closed > Priority: 3 > Submitted By: Isaac Dunham (idunham-guest) > Assigned to: Nobody (None) > Summary: Shadow FTBFS with musl libc > Category: None > Group: None > >Resolution: Fixed > > > Initial Comment: > I attempted to build shadow 4.1.5.1 with musl libc (http://www.musl-libc.org/), and ran into a few issues: > 1: missing in libmisc/utmp.c > glibc includes several headers from ; is one of these. > 2: libmisc/utmp.c assumes that member sin_addr of > struct sockaddr_in (type struct in_addr) is completely defined. > > musl has a policy of not making implementation-specific details > public unless necessary; this is the full definition: I think you're misunderstanding the issue. It sounds to me like the program is just failing to include . If struct sockaddr_in is referenced by one of the musl headers but not defined, that's a bug in musl, but it sounds to me like the program is just assuming header pollution (i.e. assuming that some other header includes netinet/in.h or otherwise exposes this type. Could you clarify the error that's happening? If it is a bug on musl's end, I'll fix it. And since this may just involve the utmp.h header which is not subject to standards requirements, I might work around the problem on our end even if this is not a musl bug. Rich