[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] nbd-client with uClibc?



Hmm, I tried something along those lines already.  The
--disable-glibtest switch doesn't seem to do anything (the ./configure
script still dies with a message about a failed Glib test).  So I
tried my hand at sabotaging the script, and ended up commenting out
the part that actually makes it exit after that particular failure
(although I still get the message).  So now ./configure finishes
successfully, with no other problems, but nbd-client still doesn't
build.

It says this instead:

dd@...121... ~/nbd-2.9.2 $ make nbd-client
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT nbd-client.o -MD -MP
-MF ".deps/nbd-client.Tpo" -c -o nbd-client.o nbd-client.c; \
      then mv -f ".deps/nbd-client.Tpo" ".deps/nbd-client.Po"; else
rm -f ".deps/nbd-client.Tpo"; exit 1; fi
nbd-client.c:19:22: asm/page.h: No such file or directory
make: *** [nbd-client.o] Error 1

It's right - there isn't an asm/page.h.  Should I give it one from somewhere?

Cheers :)

P.S. I originally sent this a few days ago, but Gmail apparently sent
it to your personal email, rather than the list at large.
Additionally, there seems to be some sort of problem actually
delivering it (Google keep sending me SMTP errors about it).  If you
see this message again in a day or two, don't blame me!

On 31/05/07, Wouter Verhelst <w@...112...> wrote:
On Wed, May 30, 2007 at 06:50:06PM +0100, Tom Lloyd wrote:
> Is it possible to mount (is that the right word?) an NBD share on a
> system that doesn't have Glib?

Yes. The client, on purpose, doesn't use glib; only the server does, and
I've done it that way precisely for that reason: that you might want to
run it on diskless devices or whatever, where a full glib doesn't make
sense. I didn't think of creating a --disable-server option to
configure.ac or so, but it if you just say "./configure
--disable-glibtest" and do "make nbd-client" rather than just "make",
that should theoretically work. Haven't tried it, though.

--
Shaw's Principle:
        Build a system that even a fool can use, and only a fool will
        want to use it.




Reply to: