NetworkBlockDevice / nbd

Network Block Device
GNU General Public License v2.0
450 stars 116 forks source link

automake failed with exit status: 1 #125

Closed gitPo1son closed 3 years ago

gitPo1son commented 3 years ago
#git clone https://github.com/NetworkBlockDevice/nbd.git
# cd nbd; ./autogen.sh 
+ make -C man -f mans.mk nbd-server.1.sh.in nbd-server.5.sh.in nbd-client.8.sh.in nbd-trdump.1.sh.in nbdtab.5.sh.in
make: Entering directory '/root/nbd/man'
LC_ALL=C docbook2man nbd-server.1.in.sgml
Using catalogs: /etc/sgml/sgml-docbook-4.1.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print
Working on: /root/nbd/man/nbd-server.1.in.sgml
......

libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'support'.
libtoolize: copying file 'support/libtool.m4'
libtoolize: copying file 'support/ltoptions.m4'
libtoolize: copying file 'support/ltsugar.m4'
libtoolize: copying file 'support/ltversion.m4'
libtoolize: copying file 'support/lt~obsolete.m4'
configure.ac:18: installing './compile'
configure.ac:18: installing './config.guess'
configure.ac:18: installing './config.sub'
configure.ac:14: installing './install-sh'
configure.ac:14: installing './missing'
Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
Makefile.am: error: Yacc source seen but 'YACC' is undefined
Makefile.am:   The usual way to define 'YACC' is to add 'AC_PROG_YACC'
Makefile.am:   to 'configure.ac' and run 'autoconf' again.
autoreconf: automake failed with exit status: 1
yoe commented 3 years ago

This happens because rather than AC_PROG_YACC, we use AX_PROG_BISON. This macro is defined in the autoconf archive which you will need to install before running autogen.sh