mailing list of musl libc
 help / color / mirror / code / Atom feed
* lshw FTBFS: res_querydomain declared but not implemented
@ 2012-12-31  5:59 Isaac Dunham
  2012-12-31 12:44 ` Szabolcs Nagy
  2012-12-31 18:06 ` lshw FTBFS: res_querydomain declared but not implemented Rich Felker
  0 siblings, 2 replies; 5+ messages in thread
From: Isaac Dunham @ 2012-12-31  5:59 UTC (permalink / raw)
  To: musl

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>



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

end of thread, other threads:[~2012-12-31 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-31  5:59 lshw FTBFS: res_querydomain declared but not implemented Isaac Dunham
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

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).