mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <idunham@lavabit.com>
To: musl@lists.openwall.com
Subject: lshw FTBFS: res_querydomain declared but not implemented
Date: Sun, 30 Dec 2012 21:59:31 -0800	[thread overview]
Message-ID: <20121230215931.cf9ff1d0.idunham@lavabit.com> (raw)

I've been trying to build lshw [1] with musl, and I ran into a few problems:
1: lshw uses __uint8_t (standard fixes work)
2: It wants GNU basename() (I added <libgen.h> and used -fpermissive)
3: It wants MAX_PATH from some header that doesn't have it: I added <limits.h>
4: It wants res_querydomain.
This does not show up until link time, since <resolv.h> declares it.
However, musl does not acually implement this function.

Currently, I've got a very hackish implementation that isn't fit to ship:
-it doesn't check for name == "machine."
-it doesn't handle domain == NULL (should use name, without any terminal ".")
-it does no error checking, on the assumption that res_query can handle that.

[1] http://ezix.org/project/wiki/HardwareLiSter

-- 
Isaac Dunham <idunham@lavabit.com>



             reply	other threads:[~2012-12-31  5:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-31  5:59 Isaac Dunham [this message]
2012-12-31 12:44 ` Szabolcs Nagy
2012-12-31 20:49   ` [PATCH] Re: strverscmp (Was: Re: lshw FTBFS: res_querydomain...) Isaac Dunham
2012-12-31 18:06 ` lshw FTBFS: res_querydomain declared but not implemented Rich Felker
2012-12-31 20:03   ` Isaac Dunham

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=20121230215931.cf9ff1d0.idunham@lavabit.com \
    --to=idunham@lavabit.com \
    --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).