Hi Bruno, Eric, Bruno Haible wrote: > Hi Bruce, > >> My build procedure is to blow away the build tree, copy in the >> repository source files and do the build. It doesn't get any cleaner. > > Can you give us a recipe how to reproduce it? In the worst case, you can > do a "make distclean", tar up your source tarball on some site and let us > investigate.
The recipe is going to include building where srcdir == builddir. By doing the build in a subdirectory and invoking configure with ../configure, the problem of the broken getopt.h header goes away. Still, not all is well. "make distcheck" is failing. The compile statement needs a "-I../../lib" for this to be successful. Since I do not even have a Makefile.am in the "intl" directory, it is unclear what I ought to be doing. > make[1]: Entering directory > `/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_build' > make all-recursive > make[2]: Entering directory > `/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_build' > Making all in intl > make[3]: Entering directory > `/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_build/intl' > sed -e '/IN_LIBGLOCALE/d' \ > -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \ > -e 's,@''HAVE_ASPRINTF''@,1,g' \ > -e 's,@''HAVE_SNPRINTF''@,1,g' \ > -e 's,@''HAVE_WPRINTF''@,0,g' \ > < ../../intl/libgnuintl.h.in \ > | if test 'no' = yes; then \ > sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; > \ > else \ > cat; \ > fi \ > | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ > -e "/#define _LIBINTL_H/r ../../intl/export.h" \ > | sed -e 's,@''HAVE_VISIBILITY''@,1,g' \ > > libgnuintl.h > gcc -c > -DLOCALEDIR=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/share/locale\" > \ > -DLOCALE_ALIAS_PATH=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/share/locale\" > \ > -DLIBDIR=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/lib\" > -DBUILDING_LIBINTL \ > -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY \ > -DINSTALLDIR=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/lib\" > \ > -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix \ > -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H \ > -I. -I../../intl -I.. -g -O2 -fvisibility=hidden ../../intl/bindtextdom.c ^^^^^^^^^^ -I../../lib ????? > In file included from ../../intl/bindtextdom.c:20: > ../config.h:1469:21: error: xstrtol.h: No such file or directory > make[3]: *** [bindtextdom.o] Error 1