GNOME Bugzilla – Bug 599943
Problem compiling libxml2 2.7.6
Last modified: 2017-09-07 18:09:19 UTC
$ make make all-recursive make[1]: Entering directory `/tmp/libxml2-2.7.6' Making all in include make[2]: Entering directory `/tmp/libxml2-2.7.6/include' Making all in libxml make[3]: Entering directory `/tmp/libxml2-2.7.6/include/libxml' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/libxml2-2.7.6/include/libxml' make[3]: Entering directory `/tmp/libxml2-2.7.6/include' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/tmp/libxml2-2.7.6/include' make[2]: Leaving directory `/tmp/libxml2-2.7.6/include' Making all in . make[2]: Entering directory `/tmp/libxml2-2.7.6' gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -s -O3 -march=i686 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT xmllint.o -MD -MP -MF .deps/xmllint.Tpo -c -o xmllint.o xmllint.c In file included from xmllint.c:67: /usr/local/include/readline/history.h:46: error: redefinition of `struct _hist_entry' /usr/local/include/readline/history.h:83: error: conflicting types for 'add_history' /usr/local/include/readline/readline.h:94: error: previous declaration of 'add_history' was here /usr/local/include/readline/history.h:83: error: conflicting types for 'add_history' /usr/local/include/readline/readline.h:94: error: previous declaration of 'add_history' was here make[2]: *** [xmllint.o] Error 1 make[2]: Leaving directory `/tmp/libxml2-2.7.6' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/libxml2-2.7.6' make: *** [all] Error 2
The problem appears with the use of the --with-history configure option