On 9/21/18 5:34 AM, vvcfee wrote: > Hi GNU team,Thanks for your Great job! > recently I try to build findutils statically for forensic reason, on > centos7.3,with following commands I got error and hang on bootstrap: > [root@localhost findutils-4.6.0]# wget > https://ftp.gnu.org/pub/gnu/findutils/findutils-4.6.0.tar.gz > [root@localhost findutils-4.6.0]# tar -zxvf findutils-4.6.0.tar.gz > [root@localhost findutils-4.6.0]# cd findutils-4.6.0 > > [root@localhost findutils-4.6.0]# ./bootstrap > ./bootstrap: Bootstrapping from checked-out findutils sources... > ./bootstrap: getting translations into po/.reference for findutils... > receiving incremental file list > > sent 30 bytes received 630 bytes 101.54 bytes/sec > total size is 2,062,963 speedup is 3,125.70 > ./bootstrap: autopoint --force > ./bootstrap: gnulib/gnulib-tool --import --no-changelog --aux-dir build-aux > --d > oc-base doc --lib libfindutils --m4-base m4/ --source-base lib/ --tests-base > tes > ts --local-dir gl --import ... > Module list with included dependencies (indented): > File list: > lib/dummy.c > m4/00gnulib.m4 > m4/gnulib-common.m4 > m4/onceonly.m4 > Finished. > > You may need to add #include directives for the following .h files. > > Don't forget to > - add "lib/Makefile" to AC_CONFIG_FILES in ./configure.ac, > - mention "lib" in SUBDIRS in Makefile.am, > - mention "-I m4" in ACLOCAL_AMFLAGS in Makefile.am, > - mention "gnulib-cache.m4" in EXTRA_DIST in m4/Makefile.am, > - invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC, > - invoke gl_INIT in ./configure.ac. > running: AUTOPOINT=true LIBTOOLIZE=true autoreconf --verbose --install > --force - > I m4 --no-recursive > autoreconf: Entering directory `.' > autoreconf: running: true --force > autoreconf: running: aclocal -I m4 --force -I gl/m4 -I m4 > autoreconf: configure.ac: tracing > autoreconf: configure.ac: not using Libtool > autoreconf: running: /usr/bin/autoconf --include=m4 --force > autoreconf: running: /usr/bin/autoheader --include=m4 --force > autoreconf: running: automake --add-missing --copy --force-missing > gl/lib/Makefile.am:173: error: GL_GENERATE_BYTESWAP_H does not appear in > AM_COND > ITIONAL > gl/lib/Makefile.am:499: error: GL_GENERATE_ERRNO_H does not appear in > AM_CONDITI > ONAL > gl/lib/Makefile.am:695: error: GL_GENERATE_FLOAT_H does not appear in > AM_CONDITI > ONAL > gl/lib/Makefile.am:726: error: GL_GENERATE_FNMATCH_H does not appear in > AM_CONDI > TIONAL > gl/lib/Makefile.am:2125: error: GL_GENERATE_SELINUX_CONTEXT_H does not appear > in > AM_CONDITIONAL > gl/lib/Makefile.am:2329: error: GL_GENERATE_STDALIGN_H does not appear in > AM_CON > DITIONAL > gl/lib/Makefile.am:2352: error: GL_GENERATE_STDARG_H does not appear in > AM_CONDI > TIONAL > gl/lib/Makefile.am:2380: error: GL_GENERATE_STDBOOL_H does not appear in > AM_COND > ITIONAL > gl/lib/Makefile.am:2403: error: GL_GENERATE_STDDEF_H does not appear in > AM_CONDI > TIONAL > gl/lib/Makefile.am:2434: error: GL_GENERATE_STDINT_H does not appear in > AM_CONDI > TIONAL > gl/lib/Makefile.am:3534: error: LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH does not > app > ear in AM_CONDITIONAL > gl/lib/Makefile.am:46: warning: compiling 'glthread/lock.c' in subdir > requires ' > AM_PROG_CC_C_O' in 'configure.ac' > gl/lib/Makefile.am: error: Yacc source seen but 'YACC' is undefined > gl/lib/Makefile.am: The usual way to define 'YACC' is to add 'AC_PROG_YACC' > gl/lib/Makefile.am: to 'configure.ac' and run 'autoconf' again. > tests/Makefile.am:1130: error: GL_GENERATE_NETINET_IN_H does not appear in > AM_CO > NDITIONAL > autoreconf: automake failed with exit status: 1 > ./bootstrap: autoreconf failed
You are building from a regular distribution tarball, i.e., not from the Git source tree like a developer would do. Therefore, you should just run the well-known ./configure && make && make install as documented in INSTALL instead of beginning with './bootstrap'. Have a nice day, Berny
