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

Cannnot build nbd from git clone



rparkins@rparkins64:~/Downloads> uname -a
Linux rparkins64 4.4.76-1-default #1 SMP Fri Jul 14 08:48:13 UTC 2017 (9a2885c) x86_64 x86_64 x86_64 GNU/Linux
rparkins@rparkins64:~/Downloads> cat /etc/issue
Welcome to openSUSE Leap 42.3 - Kernel \r (\l).


rparkins@rparkins64:~/Downloads> lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 15
Model name:            Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
Stepping:              6
CPU MHz:               1000.000
CPU max MHz:           2000.0000
CPU min MHz:           1000.0000
BogoMIPS:              3990.37
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0,1
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm tpr_shadow
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
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:113: error: required file './config.guess' not found
configure.ac:113:   'automake --add-missing' can install 'config.guess'
configure.ac:113: error: required file './config.sub' not found
configure.ac:113:   'automake --add-missing' can install 'config.sub'
configure.ac:111: error: required file './install-sh' not found
configure.ac:111:   'automake --add-missing' can install 'install-sh'
Makefile.am:22: error: GNUTLS does not appear in AM_CONDITIONAL
Makefile.am:26: error: CLIENT does not appear in AM_CONDITIONAL
Makefile.am:28: error: GNUTLS does not appear in AM_CONDITIONAL
Makefile.am: error: required file './INSTALL' not found
Makefile.am:   'automake --add-missing' can install 'INSTALL'
Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './README' not found
Makefile.am: error: required file './AUTHORS' not found
Makefile.am: error: required file './ChangeLog' not found
configure.ac:309: error: required file 'config.h.in' not found
Makefile.am:5: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:5:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:5:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:5:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:5:   its definition is in aclocal's search path.
Makefile.am:8: warning: compiling 'nbd-client.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
Makefile.am: error: required file './depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
/usr/share/automake-1.13/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am:   The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.13/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.13/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.13/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.13/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.13/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
gznbd/Makefile.am:1: error: GZNBD does not appear in AM_CONDITIONAL
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
parallel-tests: error: required file './test-driver' not found
parallel-tests:   'automake --add-missing' can install 'test-driver'
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
tests/run/Makefile.am:1: error: GNUTLS does not appear in AM_CONDITIONAL
tests/run/Makefile.am:27: error: GNUTLS does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL

aclocal.m4 is in the sourceforge gzip, but apparently not in the git repository. If I copy it into my nbd directory, and run automake again, I get

rparkins@rparkins64:~/Downloads/nbd> automake
/usr/bin/m4:aclocal.m4:1677: cannot open `support/libtool.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1678: cannot open `support/ltoptions.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1679: cannot open `support/ltsugar.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1680: cannot open `support/ltversion.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1681: cannot open `support/lt~obsolete.m4': No such file or directory
autom4te: /usr/bin/m4 failed with exit status: 1
automake: error: autoconf failed with exit status: 1

All these files appear to be in the sourceforge gzip, but apparently not in the git repository. So are ltmain.sh,  man/nbd-client.8.sh.in, man/nbd-server.5.sh.in, man/nbd-server.1.sh.in, man/nbd-trdump.1.sh.in, man/nbdtab.5.sh.in, systemd/nbd@.service.sh.in, and config.h.in. If I copy all these, I get a successful automake run.

However I don't see any built binaries, and the install.sh script appears to need some arguments....


I do know that an installable package is available for openSUSE, but I'm having problems connecting to it and I want to build a version into which I can put some debugging output.


Reply to: