When I attempt to build on ubuntu 13.10:
:::text
root@MacBook-Pro-15r ~/t/xmlstar# ./configure;make -j8;make -j8 install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... (cached) gawk
checking for xml2-config... /usr/bin/xml2-config
configure: using libxml-2.9.1
checking for xslt-config... /usr/bin/xslt-config
configure: using libxslt-1.1.28
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 whether lstat correctly handles trailing slash... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for mode_t... yes
checking for size_t... yes
checking for lstat... yes
checking for stat... yes
checking for setmode... no
checking whether O_BINARY is declared... no
checking whether exsltDateXpathCtxtRegister is declared... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating xmlstarlet.spec
config.status: creating Makefile
config.status: creating solaris/package/sol8-sparc/pkginfo
config.status: creating solaris/package/sol9-sparc/pkginfo
config.status: creating config.h
config.status: executing depfiles commands
make all-am
make[1]: Entering directory `/root/tools/xmlstar'
GEN src/c14n-usage.c
GEN src/usage.c
GEN src/depyx-usage.c
GEN src/elem-usage.c
GEN src/edit-usage.c
GEN src/escape-usage.c
version.h: #define VERSION "1.5.0-2-g8ca4215"
GEN src/format-usage.c
make[1]: *** No rule to make target `doc/xmlstarlet.1', needed by `all-am'. Stop.
make[1]: *** Waiting for unfinished jobs....
GEN src/ls-usage.c
GEN src/select-usage.c
GEN src/pyx-usage.c
GEN src/trans-usage.c
GEN src/validate-usage.c
GEN src/unescape-usage.c
make[1]: Leaving directory `/root/tools/xmlstar'
make: *** [all] Error 2
CC src/trans.o
CC src/xml_C14N.o
CC src/xml_depyx.o
CC src/xml_edit.o
CC src/xml_elem.o
CC src/xml_escape.o
CC src/xml_format.o
CC src/xml_ls.o
src/xml_edit.c: In function ‘edOutput’:
src/xml_edit.c:591:9: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, DEFAULT_NS_FAIL_MESSAGE);
^
src/xml_ls.c: In function ‘xml_print_dir’:
src/xml_ls.c:140:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
chdir(dir);
^
src/xml_edit.c: In function ‘edInsert’:
src/xml_edit.c:371:27: warning: ‘node’ may be used uninitialized in this function [-Wmaybe-uninitialized]
xmlXPathNodeSetAdd(previous_insertion, node);
^
CC src/xml_pyx.o
CC src/xml_select.o
CC src/xml_trans.o
CC src/xml_validate.o
CC src/usage.o
CC src/c14n-usage.o
CC src/depyx-usage.o
CC src/edit-usage.o
src/xml_select.c: In function ‘selMain’:
src/xml_select.c:743:9: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, DEFAULT_NS_FAIL_MESSAGE);
^
CC src/elem-usage.o
CC src/escape-usage.o
CC src/format-usage.o
CC src/ls-usage.o
CC src/pyx-usage.o
CC src/select-usage.o
CC src/trans-usage.o
CC src/unescape-usage.o
make: *** No rule to make target `doc/xmlstarlet.1', needed by `all-am'. Stop.
make: *** Waiting for unfinished jobs....
CC src/validate-usage.o
Diff:
I infer you are building from git? The defaults of
./configurewere not sensible for that case. Try updating to ab97538. You will probably need to runautoreconftoo.Thanks! That fixes things so the install works, however, I still get a few warnings:
root@MacBook-Pro-15r ~/t/xmlstar# autoreconf
Makefile.am:34: warning: notdir $(WIN32_doc_DIST: non-POSIX variable name
Makefile.am:34: (probably a GNU make extension)
root@MacBook-Pro-15r ~/t/xmlstar# ./configure;make -j8;make -j8 install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... (cached) gawk
checking for xml2-config... /usr/bin/xml2-config
configure: using libxml-2.9.1
checking for xslt-config... /usr/bin/xslt-config
configure: using libxslt-1.1.28
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 whether lstat correctly handles trailing slash... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for mode_t... yes
checking for size_t... yes
checking for lstat... yes
checking for stat... yes
checking for setmode... no
checking whether O_BINARY is declared... no
checking whether exsltDateXpathCtxtRegister is declared... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating xmlstarlet.spec
config.status: creating Makefile
config.status: creating solaris/package/sol8-sparc/pkginfo
config.status: creating solaris/package/sol9-sparc/pkginfo
config.status: creating config.h
config.status: executing depfiles commands
make all-am
make[1]: Entering directory
/root/tools/xmlstar' GEN src/usage.c GEN src/c14n-usage.c GEN src/edit-usage.c GEN src/depyx-usage.c GEN src/elem-usage.c version.h: #define VERSION "1.5.0-3-gab97538" GEN src/escape-usage.c GEN src/format-usage.c GEN src/ls-usage.c GEN src/pyx-usage.c GEN src/trans-usage.c GEN src/validate-usage.c GEN src/select-usage.c GEN src/unescape-usage.c CC src/xml.o CC src/xml_C14N.o CC src/trans.o CC src/xml_depyx.o CC src/xml_elem.o CC src/xml_edit.o CC src/xml_escape.o CC src/xml_format.o src/xml_edit.c: In function ‘edOutput’: src/xml_edit.c:591:9: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stderr, DEFAULT_NS_FAIL_MESSAGE); ^ CC src/xml_ls.o src/xml_edit.c: In function ‘edInsert’: src/xml_edit.c:371:27: warning: ‘node’ may be used uninitialized in this function [-Wmaybe-uninitialized] xmlXPathNodeSetAdd(previous_insertion, node); ^ CC src/xml_pyx.o CC src/xml_select.o CC src/xml_trans.o CC src/xml_validate.o src/xml_ls.c: In function ‘xml_print_dir’: src/xml_ls.c:140:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] chdir(dir); ^ CC src/usage.o CC src/c14n-usage.o CC src/depyx-usage.o src/xml_select.c: In function ‘selMain’: src/xml_select.c:743:9: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stderr, DEFAULT_NS_FAIL_MESSAGE); ^ CC src/edit-usage.o CC src/elem-usage.o CC src/escape-usage.o CC src/format-usage.o CC src/ls-usage.o CC src/pyx-usage.o CC src/select-usage.o CC src/trans-usage.o CC src/unescape-usage.o CC src/validate-usage.o CCLD xml make[1]: Leaving directory/root/tools/xmlstar'make[1]: Entering directory
/root/tools/xmlstar' /bin/mkdir -p '/usr/local/share/doc/xmlstarlet' /bin/mkdir -p '/usr/local/share/man/man1' /usr/bin/install -c -m 644 doc/xmlstarlet-ug.html doc/html.css doc/xmlstarlet.txt '/usr/local/share/doc/xmlstarlet' /bin/mkdir -p '/usr/local/bin' /usr/bin/install -c -m 644 doc/xmlstarlet.1 '/usr/local/share/man/man1' /usr/bin/install -c xml '/usr/local/bin' make[1]: Leaving directory/root/tools/xmlstar'root@MacBook-Pro-15r ~/t/xmlstar# xml --version
1.5.0-3-gab97538
compiled against libxml2 2.9.1, linked with 20901
compiled against libxslt 1.1.28, linked with 10128
Would you like to fix them then? :)