xfsprogs-dev failing to build
Hi
I am trying to build the latest xfsprogs on an older system, details below. The configure script is failing on what appears to be an unexpanded m4 macro,
PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)
I'm not quite sure how to work around this or if it is a bug. Any advice would be appreciated.
Kind regards
Vince
System details:
% cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
% git remote -v
origin git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git (fetch) origin git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git (push)
% git log -1
commit 0821de47b419e6a2ed0e8a2c64fd26a93c398093
Author: Eric Sandeen <[email protected]> Date: Fri Jun 29 02:52:21 2018
xfsprogs: Release v4.17.0
Update all the necessary files for a 4.17.0 release.
Problem demonstration:
% make
libtoolize -c libtoolize -n -i >/dev/null 2>/dev/null && echo -i -f
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
cp include/install-sh .
aclocal -I m4
configure.ac:191: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd m4/package_services.m4:4: AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIR is expanded from...
configure.ac:191: the top level
configure.ac:191: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd m4/package_services.m4:4: AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIR is expanded from...
configure.ac:191: the top level
autoconf
configure.ac:191: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd m4/package_services.m4:4: AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIR is expanded from...
configure.ac:191: the top level
./configure $LOCAL_CONFIGURE_OPTIONS
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gmake... no
checking for make... /usr/bin/make
checking for tar... /bin/tar
checking for gzip... /bin/gzip
checking whether gcc -MM is supported... yes
checking for sort... /usr/bin/sort
checking whether ln -s works... yes
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for xgettext... /usr/bin/xgettext
checking for rpm... no
checking uuid.h usability... no
checking uuid.h presence... no
checking for uuid.h... no
checking sys/uuid.h usability... no
checking sys/uuid.h presence... no
checking for sys/uuid.h... no
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking for uuid_compare... no
checking for uuid_compare in -luuid... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_mutex_init in -lpthread... yes
checking for fadvise ... yes
checking for madvise ... yes
checking for mincore ... yes
checking for sendfile ... yes
checking for getmntent ... yes
checking for getmntinfo ... no
checking for fallocate... yes
checking for fiemap... yes
checking for pwritev2... no
checking for preadv... yes
checking for copy_file_range... no
checking for sync_file_range... yes
checking for syncfs... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking whether fls is declared... no
checking for readdir... yes
checking whether fsetxattr is declared... no
checking whether mremap is declared... yes
checking for struct fsxattr... no
checking for GETFSMAP... no
checking for struct statfs... yes
checking for struct statfs.f_flags... yes
checking for MAP_SYNC... no
checking for library containing dm_task_create... no
checking for mallinfo ... yes
checking attr/attributes.h usability... no
checking attr/attributes.h presence... no
checking for attr/attributes.h... no
checking for struct attrlist_cursor... no
./configure: line 14661: syntax error near unexpected token `libicu,'
./configure: line 14661: ` PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)'
Makefile:115: recipe for target 'include/builddefs' failed
make: *** [include/builddefs] Error 2
% less -N configure
...
14660 if test "$enable_libicu" = "yes" || test "$enable_libicu" = "probe"; then
14661 PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)
14662
14663
14664
14665
14666 fi
Package versions:
% dpkg -l|grep icu
ii icu-devtools 52.1-8+deb8u7 amd64 Development utilities for International Components for Unicode ii libicu-dev:amd64 52.1-8+deb8u7 amd64 Development files for International Components for Unicode ii libicu52:amd64 52.1-8+deb8u7 amd64 International Components for Unicode
% dpkg -l | grep -w m4
ii m4 1.4.17-4 amd64 macro processing language
% dpkg -l | grep libtool
ii libltdl7:amd64 2.4.2-1.11+b1 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.2-1.11 all Generic library support script
Quoted 7 lines · Vincent McIntyre
Hi
I am trying to build the latest xfsprogs on an older system, details below. The configure script is failing on what appears to be an unexpanded m4 macro,
PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)
Hmmm, I thought that pkg.m4 would be pulled in via aclocal automatically, but I could be wrong. :/
What version of pkg-config (or I guess pkgconf?) is on the system?
Quoted 2 lines
I'm not quite sure how to work around this or if it is a bug. Any advice would be appreciated.
Definitely some sort of bug...
--D
Quoted 230 lines
Kind regards
VinceSystem details:
% cat
/etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"% git remote -v
origingit://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git(fetch) origingit://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git(push)% git log -1
commit0821de47b419e6a2ed0e8a2c64fd26a93c398093Author: Eric Sandeen <[email protected]> Date: Fri Jun 29 02:52:21 2018xfsprogs: Release v4.17.0
Update all the necessary files for a 4.17.0 release.
Signed-off-by Eric Sandeen <[email protected]>Problem demonstration:
% make
libtoolize -clibtoolize -n -i >/dev/null 2>/dev/null && echo -i-f
libtoolize: putting auxiliary files inAC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros inAC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' toACLOCAL_AMFLAGSin Makefile.am.
cpinclude/install-sh.
aclocal -I m4
configure.ac:191: warning:PKG_PROG_PKG_CONFIGis m4_require'd but not m4_defun'd m4/package_services.m4:4:AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIRis expanded from...
configure.ac:191: the top level
configure.ac:191: warning:PKG_PROG_PKG_CONFIGis m4_require'd but not m4_defun'd m4/package_services.m4:4:AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIRis expanded from...
configure.ac:191: the top level
autoconf
configure.ac:191: warning:PKG_PROG_PKG_CONFIGis m4_require'd but not m4_defun'd m4/package_services.m4:4:AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIRis expanded from...
configure.ac:191: the top level
./configure $LOCAL_CONFIGURE_OPTIONS
checking for a BSD-compatible install.../usr/bin/install-c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output.../bin/sed
checking for grep that handles long lines and -e.../bin/grep
checking for egrep.../bin/grep-E
checking for fgrep.../bin/grep-F
checking for ld used by gcc.../usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm).../usr/bin/nm-B
checking the name lister (/usr/bin/nm-B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format...func_convert_file_noopchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format...func_convert_file_noopchecking for/usr/bin/ldoption to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries...pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse/usr/bin/nm-B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking forsys/types.h... yes
checking forsys/stat.h... yes
checking forstdlib.h... yes
checking forstring.h... yes
checking formemory.h... yes
checking forstrings.h... yes
checking forinttypes.h... yes
checking forstdint.h... yes
checking forunistd.h... yes
checking fordlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld-melf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gmake... no
checking for make.../usr/bin/make
checking for tar.../bin/tar
checking for gzip.../bin/gzip
checking whether gcc -MM is supported... yes
checking for sort.../usr/bin/sort
checking whether ln -s works... yes
checking for msgfmt.../usr/bin/msgfmt
checking for msgmerge.../usr/bin/msgmerge
checking for xgettext.../usr/bin/xgettext
checking for rpm... no
checkinguuid.husability... no
checkinguuid.hpresence... no
checking foruuid.h... no
checkingsys/uuid.husability... no
checkingsys/uuid.hpresence... no
checking forsys/uuid.h... no
checkinguuid/uuid.husability... yes
checkinguuid/uuid.hpresence... yes
checking foruuid/uuid.h... yes
checking foruuid_compare... no
checking foruuid_comparein -luuid... yes
checkingpthread.husability... yes
checkingpthread.hpresence... yes
checking forpthread.h... yes
checking forpthread_mutex_initin -lpthread... yes
checking for fadvise ... yes
checking for madvise ... yes
checking for mincore ... yes
checking for sendfile ... yes
checking for getmntent ... yes
checking for getmntinfo ... no
checking for fallocate... yes
checking for fiemap... yes
checking for pwritev2... no
checking for preadv... yes
checking forcopy_file_range... no
checking forsync_file_range... yes
checking for syncfs... yes
checkingmntent.husability... yes
checkingmntent.hpresence... yes
checking formntent.h... yes
checking whether fls is declared... no
checking for readdir... yes
checking whether fsetxattr is declared... no
checking whether mremap is declared... yes
checking for struct fsxattr... no
checking for GETFSMAP... no
checking for struct statfs... yes
checking for struct statfs.f_flags... yes
checking forMAP_SYNC... no
checking for library containingdm_task_create... no
checking for mallinfo ... yes
checkingattr/attributes.husability... no
checkingattr/attributes.hpresence... no
checking forattr/attributes.h... no
checking for structattrlist_cursor... no
./configure: line 14661: syntax error near unexpected token `libicu,'
./configure: line 14661: `PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)'
Makefile:115: recipe for target 'include/builddefs' failed
make: *** [include/builddefs] Error 2% less -N configure
...
14660 if test "$enable_libicu" = "yes" || test "$enable_libicu" = "probe"; then
14661PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)
14662
14663
14664
14665
14666 fiPackage versions:
% dpkg -l|grep icu
ii icu-devtools 52.1-8+deb8u7 amd64 Development utilities for International Components for Unicode ii libicu-dev:amd64 52.1-8+deb8u7 amd64 Development files for International Components for Unicode ii libicu52:amd64 52.1-8+deb8u7 amd64 International Components for Unicode% dpkg -l | grep -w m4
ii m4 1.4.17-4 amd64 macro processing language% dpkg -l | grep libtool
ii libltdl7:amd64 2.4.2-1.11+b1 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.2-1.11 all Generic library support script--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Darrick J. Wong
Quoted 6 lines · Vincent McIntyre
Hi
I am trying to build the latest xfsprogs on an older system, details below. The configure script is failing on what appears to be an unexpanded m4 macro,
Quoted 7 lines
Quoted 1 line
PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)Hmmm, I thought that pkg.m4 would be pulled in via aclocal automatically, but I could be wrong. :/
What version of pkg-config (or I guess pkgconf?) is on the system?
It was not actually installed, and that was the problem. The tree builds ok now, and xfs_repair -n works ok.
A bit odd pkg-config was not installed, I had installed the 'build-essential' metapackage but I guess it didn't pull in.
Quoted 4 lines
Quoted 2 lines
I'm not quite sure how to work around this or if it is a bug. Any advice would be appreciated.
Definitely some sort of bug...
I think the only fix needed is for the xfs.org faq page
- apt-get install libtool automake gettext libblkid-dev uuid-dev
+ apt-get install libtool automake gettext libblkid-dev uuid-dev pkg-config
Possibly libicu-dev should be added to the list also.
Thanks for the fast response.
Cheers
Vince
Quoted 25 lines · Vincent McIntyre
Quoted 7 lines · Darrick J. Wong
Quoted 6 lines · Vincent McIntyre
Hi
I am trying to build the latest xfsprogs on an older system, details below. The configure script is failing on what appears to be an unexpanded m4 macro,
Quoted 7 lines
Quoted 1 line
PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)Hmmm, I thought that pkg.m4 would be pulled in via aclocal automatically, but I could be wrong. :/
What version of pkg-config (or I guess pkgconf?) is on the system?
It was not actually installed, and that was the problem. The tree builds ok now, and
xfs_repair-n works ok.A bit odd pkg-config was not installed, I had installed the 'build-essential' metapackage but I guess it didn't pull in.
Quoted 3 lines
Quoted 2 lines
I'm not quite sure how to work around this or if it is a bug. Any advice would be appreciated.
Quoted 8 lines
Quoted 1 line
Definitely some sort of bug...
I think the only fix needed is for the xfs.org faq page
- apt-get install libtool automake gettext libblkid-dev uuid-dev
+ apt-get install libtool automake gettext libblkid-dev uuid-dev pkg-configPossibly libicu-dev should be added to the list also.
FWIW they're both listed in debian/control as build dependencies...
Does anyone out there have the connections to the xfs.org maintainers to fix that...?
--D
Quoted 8 lines
Thanks for the fast response.
Cheers
Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 33 lines · Darrick J. Wong
Quoted 32 lines · Vincent McIntyre
Quoted 7 lines · Darrick J. Wong
Quoted 6 lines · Vincent McIntyre
Hi
I am trying to build the latest xfsprogs on an older system, details below. The configure script is failing on what appears to be an unexpanded m4 macro,
Quoted 7 lines
Quoted 1 line
PKG_CHECK_MODULES(libicu, icu-i18n, have_libicu=yes, have_libicu=no)Hmmm, I thought that pkg.m4 would be pulled in via aclocal automatically, but I could be wrong. :/
What version of pkg-config (or I guess pkgconf?) is on the system?
It was not actually installed, and that was the problem. The tree builds ok now, and
xfs_repair-n works ok.A bit odd pkg-config was not installed, I had installed the 'build-essential' metapackage but I guess it didn't pull in.
Quoted 4 lines
Quoted 2 lines
I'm not quite sure how to work around this or if it is a bug. Any advice would be appreciated.
Definitely some sort of bug...
I think the only fix needed is for the xfs.org faq page
- apt-get install libtool automake gettext libblkid-dev uuid-dev
+ apt-get install libtool automake gettext libblkid-dev uuid-dev pkg-config
Quoted 6 lines
Quoted 1 line
Possibly libicu-dev should be added to the list also.
FWIW they're both listed in debian/control as build dependencies...
Does anyone out there have the connections to the xfs.org maintainers to fix that...?
I ... guess I still have a wiki login. I added it.
Another reason why wikis actually suck, and we should keep all documentation under SCM control. :/
-Eric