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

Re: Cannnot build nbd from git clone



Thanks for your reply.

The README.md says "do the normal configure/make/make install dance". It doesn't say anything about autoreconf.... I guessed that "configure" meant "autoconf", but I don't see how a user who hasn't already built that particular project should know to do "autoreconf". There are many configure/build tools available on the Internet, and just about every tool I have tried to download and build uses a different one. Rather clearer bulld instructions would really help.

See https://github.com/rparkins999/sqliteman/tree/master/Sqliteman for an example of how I, at least, think a build instruction should look.

Missing files in the git repository are often caused by a failure to do a git commit after creating the file for the first time, or if the files should get built, a failure to include the instructions to build them.

Richard



From: Eric Blake <eblake@redhat.com>
To: richard parkins <aleph0hpela-suse@yahoo.co.uk>; "nbd@other.debian.org" <nbd@other.debian.org>
Sent: Tuesday, 12 December 2017, 21:12
Subject: Re: Cannnot build nbd from git clone

On 12/12/2017 02:18 PM, richard parkins wrote:
> rparkins@rparkins64:~/Downloads> git clone https://github.com/NetworkBlockDevice/nbd.git
> Cloning into 'nbd'...
> remote: Counting objects: 8058, done.
> remote: Compressing objects: 100% (3/3), done.
> remote: Total 8058 (delta 0), reused 1 (delta 0), pack-reused 8055
> Receiving objects: 100% (8058/8058), 4.34 MiB | 781.00 KiB/s, done.
> Resolving deltas: 100% (5294/5294), done.
> rparkins@rparkins64:~/Downloads> cd nbd
> rparkins@rparkins64:~/Downloads/nbd> autoconf
> rparkins@rparkins64:~/Downloads/nbd> automake

Generally, instead of running 'autoconf; automake', you should run:

autoreconf -i

as that makes sure all of the necessary autotools get run (for example,
running aclocal at the right point in time, which you omitted).  Many of
the errors you encountered stem from not doing that first step.
However, I was able to reproduce this error on a fresh clone when using
the proper 'autoreconf -i':


> configure.ac:310: error: required file 'man/nbd-client.8.sh.in' not found
> configure.ac:310: error: required file 'man/nbd-server.5.sh.in' not found
> configure.ac:310: error: required file 'man/nbd-server.1.sh.in' not found
> configure.ac:310: error: required file 'man/nbd-trdump.1.sh.in' not found
> configure.ac:310: error: required file 'man/nbdtab.5.sh.in' not found
> configure.ac:310: error: required file 'systemd/nbd@.service.sh.in' not found


I'm not sure why that is failing, or why I can reproduce it on a fresh
checkout even though my incremental builds are working fine.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.          +1-919-301-3266
Virtualization:  qemu.org | libvirt.org




Reply to: