mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: compatability: heirloom-utils +.5, libarchive -1
Date: Tue, 3 Jan 2012 12:49:57 -0500	[thread overview]
Message-ID: <20120103174957.GZ132@brightrain.aerifal.cx> (raw)
In-Reply-To: <20120103060600.2190fc2b@newbook>

On Tue, Jan 03, 2012 at 06:06:00AM -0800, Isaac Dunham wrote:
> I was building a kernel on Sabotage Linux (I'm using a rather modified
> version already...), with initramfs enabled (which Sabotage does not
> seem to support).  make would die because it couldn't find a cpio.xz
> archive, so I assumed I needed a full cpio and xz.
> That wasn't the issue, but I found some more compatability stuff:
> xz: Seems to build fine (well, selecting {en,de}coders may not work
> right, but otherwise it builds unchanged)
> heirloom-utils: They are trying to support other nonstandard linux
> libcs, so they check for __GLIBC__ | __uclibc__ to determine whether
> dirent.h is present & sufficient; if dietlibc is detected, both

This sort of test is really backwards. The correct approach is to test
conditionally for the (small, finite) set of known-broken libs (diet,
etc.) and otherwise assume a working, conformant system.

> libarchive: needs memory.h --I just dropped it, since the syntax isn't
> exactly like string.h, and there are at least two other cpio
> implementations

Yes, memory.h is purely a nonstandard alias for string.h.

> Also, could PATH_MAX be exported unconditionally, or is that
> nonstandard? Currently, defining any of the standard compatability
> macros enables it.
> This is needed for the kernel to build without defining HOSTCFLAGS,
> though it really wants -D_GNU_SOURCE

I suspect there are other warnings that should really be errors when
you try building without HOSTCFLAGS, and which might break on 64-bit
systems due to int/pointer size mismatch. You really need to define
the right feature-test macros for what it needs.

Rich


      parent reply	other threads:[~2012-01-03 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03 14:06 Isaac Dunham
2012-01-03 17:38 ` Szabolcs Nagy
2012-01-05  2:05   ` Isaac Dunham
2012-01-06  8:41     ` Rich Felker
2012-01-06 14:08       ` Szabolcs Nagy
2012-01-07  1:38       ` Isaac Dunham
2012-01-03 17:49 ` Rich Felker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120103174957.GZ132@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).