* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. [not found] ` <E1aESC8-0008C9-BI@vcs.savannah.gnu.org> @ 2015-12-31 6:31 ` Herbert J. Skuhra 2015-12-31 7:16 ` YAMAMOTO Mitsuharu 0 siblings, 1 reply; 7+ messages in thread From: Herbert J. Skuhra @ 2015-12-31 6:31 UTC (permalink / raw) To: YAMAMOTO Mitsuharu; +Cc: emacs-devel On Thu, 31 Dec 2015 02:38:24 +0100, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote: > > branch: emacs-25 > commit 89e7483d9f30153329335b6b8cd97d96a06a8897 > Author: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> > Commit: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> > > * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. > --- > configure.ac | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 4233efa..9c783e6 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -3615,6 +3615,14 @@ if test "${with_xml2}" != "no"; then > # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. > if test "${HAVE_LIBXML2}" != "yes" && test "$opsys" = "darwin"; then > SAVE_CPPFLAGS="$CPPFLAGS" > + if test -z "$xcsdkdir" -a -n "$XCRUN" -a ! -d /usr/include; then > + dnl /usr/include is not found. Try Xcode SDK dir if it is sane. > + xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null` > + case $xcsdkdir in > + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) > + xcsdkdir="" ;; > + esac > + fi > CPPFLAGS="$CPPFLAGS -I$xcsdkdir/usr/include/libxml2" > AC_CHECK_HEADER(libxml/HTMLparser.h, > [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , Hi, should this also work on MacOS X 10.11? Because I still get: CC xml.o xml.c:23:10: fatal error: 'libxml/tree.h' file not found #include <libxml/tree.h> ^ 1 error generated. make[1]: *** [xml.o] Error 1 make: *** [src] Error 2 It works if I use CPPFLAGS='-I/usr/local/Cellar/libxml2/2.9.3/include/libxml2' and LDFLAGS='-L/usr/local/Cellar/libxml2/2.9.3/lib'. or CPPFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2' -- Herbert ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 2015-12-31 6:31 ` [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin Herbert J. Skuhra @ 2015-12-31 7:16 ` YAMAMOTO Mitsuharu 2015-12-31 8:05 ` Herbert J. Skuhra 0 siblings, 1 reply; 7+ messages in thread From: YAMAMOTO Mitsuharu @ 2015-12-31 7:16 UTC (permalink / raw) To: Herbert J. Skuhra; +Cc: emacs-devel >>>>> On Thu, 31 Dec 2015 07:31:11 +0100, "Herbert J. Skuhra" <h.skuhra@gmail.com> said: > On Thu, 31 Dec 2015 02:38:24 +0100, > YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote: >> >> branch: emacs-25 >> commit 89e7483d9f30153329335b6b8cd97d96a06a8897 >> Author: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> >> Commit: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> >> >> * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. >> --- >> configure.ac | 8 ++++++++ >> 1 files changed, 8 insertions(+), 0 deletions(-) >> >> diff --git a/configure.ac b/configure.ac >> index 4233efa..9c783e6 100644 >> --- a/configure.ac >> +++ b/configure.ac >> @@ -3615,6 +3615,14 @@ if test "${with_xml2}" != "no"; then >> # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. >> if test "${HAVE_LIBXML2}" != "yes" && test "$opsys" = "darwin"; then >> SAVE_CPPFLAGS="$CPPFLAGS" >> + if test -z "$xcsdkdir" -a -n "$XCRUN" -a ! -d /usr/include; then >> + dnl /usr/include is not found. Try Xcode SDK dir if it is sane. >> + xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null` >> + case $xcsdkdir in >> + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) >> + xcsdkdir="" ;; >> + esac >> + fi >> CPPFLAGS="$CPPFLAGS -I$xcsdkdir/usr/include/libxml2" >> AC_CHECK_HEADER(libxml/HTMLparser.h, >> [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , > Hi, > should this also work on MacOS X 10.11? Because I still get: > CC xml.o > xml.c:23:10: fatal error: 'libxml/tree.h' file not found > #include <libxml/tree.h> > ^ > 1 error generated. > make[1]: *** [xml.o] Error 1 > make: *** [src] Error 2 > It works if I use > CPPFLAGS='-I/usr/local/Cellar/libxml2/2.9.3/include/libxml2' and > LDFLAGS='-L/usr/local/Cellar/libxml2/2.9.3/lib'. > or > CPPFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2' I'm using OS X 10.10.5 and 10.11.2 without command line developer tools installed on my laptop. Could you show me the output of the following commands? $ xcrun --show-sdk-path $ xcrun --sdk macosx --show-sdk-path YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 2015-12-31 7:16 ` YAMAMOTO Mitsuharu @ 2015-12-31 8:05 ` Herbert J. Skuhra 2015-12-31 8:30 ` YAMAMOTO Mitsuharu 0 siblings, 1 reply; 7+ messages in thread From: Herbert J. Skuhra @ 2015-12-31 8:05 UTC (permalink / raw) To: YAMAMOTO Mitsuharu; +Cc: emacs-devel On Thu, 31 Dec 2015 08:16:03 +0100, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote: > > >>>>> On Thu, 31 Dec 2015 07:31:11 +0100, "Herbert J. Skuhra" <h.skuhra@gmail.com> said: > > > On Thu, 31 Dec 2015 02:38:24 +0100, > > YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote: > >> > >> branch: emacs-25 > >> commit 89e7483d9f30153329335b6b8cd97d96a06a8897 > >> Author: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> > >> Commit: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> > >> > >> * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. > >> --- > >> configure.ac | 8 ++++++++ > >> 1 files changed, 8 insertions(+), 0 deletions(-) > >> > >> diff --git a/configure.ac b/configure.ac > >> index 4233efa..9c783e6 100644 > >> --- a/configure.ac > >> +++ b/configure.ac > >> @@ -3615,6 +3615,14 @@ if test "${with_xml2}" != "no"; then > >> # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. > >> if test "${HAVE_LIBXML2}" != "yes" && test "$opsys" = "darwin"; then > >> SAVE_CPPFLAGS="$CPPFLAGS" > >> + if test -z "$xcsdkdir" -a -n "$XCRUN" -a ! -d /usr/include; then > >> + dnl /usr/include is not found. Try Xcode SDK dir if it is sane. > >> + xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null` > >> + case $xcsdkdir in > >> + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) > >> + xcsdkdir="" ;; > >> + esac > >> + fi > >> CPPFLAGS="$CPPFLAGS -I$xcsdkdir/usr/include/libxml2" > >> AC_CHECK_HEADER(libxml/HTMLparser.h, > >> [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , > > > Hi, > > > should this also work on MacOS X 10.11? Because I still get: > > > CC xml.o > > xml.c:23:10: fatal error: 'libxml/tree.h' file not found > > #include <libxml/tree.h> > > ^ > > 1 error generated. > > make[1]: *** [xml.o] Error 1 > > make: *** [src] Error 2 > > > It works if I use > > > CPPFLAGS='-I/usr/local/Cellar/libxml2/2.9.3/include/libxml2' and > > LDFLAGS='-L/usr/local/Cellar/libxml2/2.9.3/lib'. > > > or > > > CPPFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2' > > I'm using OS X 10.10.5 and 10.11.2 without command line developer > tools installed on my laptop. Could you show me the output of the > following commands? > > $ xcrun --show-sdk-path > $ xcrun --sdk macosx --show-sdk-path Both commands output /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -- Herbert ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 2015-12-31 8:05 ` Herbert J. Skuhra @ 2015-12-31 8:30 ` YAMAMOTO Mitsuharu 2015-12-31 10:08 ` Herbert J. Skuhra 2015-12-31 11:40 ` Herbert J. Skuhra 0 siblings, 2 replies; 7+ messages in thread From: YAMAMOTO Mitsuharu @ 2015-12-31 8:30 UTC (permalink / raw) To: Herbert J. Skuhra; +Cc: emacs-devel >>>>> On Thu, 31 Dec 2015 09:05:50 +0100, "Herbert J. Skuhra" <h.skuhra@gmail.com> said: >> I'm using OS X 10.10.5 and 10.11.2 without command line developer >> tools installed on my laptop. Could you show me the output of the >> following commands? >> >> $ xcrun --show-sdk-path >> $ xcrun --sdk macosx --show-sdk-path > Both commands output > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk These commands seem to work correctly. Do you happen to have (bogus) /usr/include? Usually that does not happen on OS X 10.11 because of the System Integrity Protection, but you can disable it. The Mac port has been using this code for one year (http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg01719.html), but I haven't received any bug reports about it. If you don't have /usr/include, then please send me config.log personally. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 2015-12-31 8:30 ` YAMAMOTO Mitsuharu @ 2015-12-31 10:08 ` Herbert J. Skuhra 2015-12-31 11:40 ` Herbert J. Skuhra 1 sibling, 0 replies; 7+ messages in thread From: Herbert J. Skuhra @ 2015-12-31 10:08 UTC (permalink / raw) To: YAMAMOTO Mitsuharu; +Cc: emacs-devel On Thu, 31 Dec 2015 09:30:07 +0100, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote: > > >>>>> On Thu, 31 Dec 2015 09:05:50 +0100, "Herbert J. Skuhra" <h.skuhra@gmail.com> said: > > >> I'm using OS X 10.10.5 and 10.11.2 without command line developer > >> tools installed on my laptop. Could you show me the output of the > >> following commands? > >> > >> $ xcrun --show-sdk-path > >> $ xcrun --sdk macosx --show-sdk-path > > > Both commands output > > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk > > These commands seem to work correctly. Do you happen to have (bogus) > /usr/include? Usually that does not happen on OS X 10.11 because of > the System Integrity Protection, but you can disable it. > > The Mac port has been using this code for one year > (http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg01719.html), > but I haven't received any bug reports about it. If you don't have > /usr/include, then please send me config.log personally. Sorry, it's a problem with my system. :-( Even after removing libxml2 from homebrew 'pkg-config --cflags libxml-2.0' returns '-I/usr/include/libxml2'. Still no idea why, but I have "libxml-2.0.pc" in /usr/local/Library/ENV/pkgconfig/10.10/ /usr/local/Library/ENV/pkgconfig/10.11/ /usr/local/Library/ENV/pkgconfig/10.8/ /usr/local/Library/ENV/pkgconfig/10.9/ After renaming/removing /usr/local/bin/pkg-config emacs-25 builds again. Thank you. -- Herbert ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 2015-12-31 8:30 ` YAMAMOTO Mitsuharu 2015-12-31 10:08 ` Herbert J. Skuhra @ 2015-12-31 11:40 ` Herbert J. Skuhra 2015-12-31 12:02 ` YAMAMOTO Mitsuharu 1 sibling, 1 reply; 7+ messages in thread From: Herbert J. Skuhra @ 2015-12-31 11:40 UTC (permalink / raw) To: YAMAMOTO Mitsuharu; +Cc: emacs-devel On Thu, 31 Dec 2015 09:30:07 +0100, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote: > > >>>>> On Thu, 31 Dec 2015 09:05:50 +0100, "Herbert J. Skuhra" <h.skuhra@gmail.com> said: > > >> I'm using OS X 10.10.5 and 10.11.2 without command line developer > >> tools installed on my laptop. Could you show me the output of the > >> following commands? > >> > >> $ xcrun --show-sdk-path > >> $ xcrun --sdk macosx --show-sdk-path > > > Both commands output > > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk > > These commands seem to work correctly. Do you happen to have (bogus) > /usr/include? Usually that does not happen on OS X 10.11 because of > the System Integrity Protection, but you can disable it. > > The Mac port has been using this code for one year > (http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg01719.html), > but I haven't received any bug reports about it. If you don't have > /usr/include, then please send me config.log personally. How about? diff --git a/configure.ac b/configure.ac index 9c783e6..d9e75e3 100644 --- a/configure.ac +++ b/configure.ac @@ -3610,8 +3610,6 @@ AC_SUBST(XFIXES_LIBS) ### mingw32 doesn't use -lxml2, since it loads the library dynamically. HAVE_LIBXML2=no if test "${with_xml2}" != "no"; then - ### I'm not sure what the version number should be, so I just guessed. - EMACS_CHECK_MODULES([LIBXML2], [libxml-2.0 > 2.6.17]) # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. if test "${HAVE_LIBXML2}" != "yes" && test "$opsys" = "darwin"; then SAVE_CPPFLAGS="$CPPFLAGS" @@ -3633,6 +3631,8 @@ if test "${with_xml2}" != "no"; then LIBXML2_LIBS="-lxml2" fi fi + ### I'm not sure what the version number should be, so I just guessed. + EMACS_CHECK_MODULES([LIBXML2], [libxml-2.0 > 2.6.17]) if test "${HAVE_LIBXML2}" = "yes"; then if test "${opsys}" != "mingw32"; then AC_CHECK_LIB(xml2, htmlReadMemory, HAVE_LIBXML2=yes, HAVE_LIBXML2=no, -- Herbert ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 2015-12-31 11:40 ` Herbert J. Skuhra @ 2015-12-31 12:02 ` YAMAMOTO Mitsuharu 0 siblings, 0 replies; 7+ messages in thread From: YAMAMOTO Mitsuharu @ 2015-12-31 12:02 UTC (permalink / raw) To: Herbert J. Skuhra; +Cc: emacs-devel >>>>> On Thu, 31 Dec 2015 12:40:21 +0100, "Herbert J. Skuhra" <h.skuhra@gmail.com> said: > How about? > diff --git a/configure.ac b/configure.ac > index 9c783e6..d9e75e3 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -3610,8 +3610,6 @@ AC_SUBST(XFIXES_LIBS) > ### mingw32 doesn't use -lxml2, since it loads the library dynamically. > HAVE_LIBXML2=no > if test "${with_xml2}" != "no"; then > - ### I'm not sure what the version number should be, so I just guessed. > - EMACS_CHECK_MODULES([LIBXML2], [libxml-2.0 > 2.6.17]) > # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. > if test "${HAVE_LIBXML2}" != "yes" && test "$opsys" = "darwin"; then > SAVE_CPPFLAGS="$CPPFLAGS" > @@ -3633,6 +3631,8 @@ if test "${with_xml2}" != "no"; then > LIBXML2_LIBS="-lxml2" > fi > fi > + ### I'm not sure what the version number should be, so I just guessed. > + EMACS_CHECK_MODULES([LIBXML2], [libxml-2.0 > 2.6.17]) > if test "${HAVE_LIBXML2}" = "yes"; then > if test "${opsys}" != "mingw32"; then > AC_CHECK_LIB(xml2, htmlReadMemory, HAVE_LIBXML2=yes, HAVE_LIBXML2=no, No. If the commands below return wrong results, then you should fix libxml-2.0.pc and/or set PKG_CONFIG_PATH properly. $ pkg-config --cflags "libxml-2.0 > 2.6.17" $ pkg-config --libs "libxml-2.0 > 2.6.17" YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-12-31 12:02 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20151231013824.31455.77904@vcs.savannah.gnu.org> [not found] ` <E1aESC8-0008C9-BI@vcs.savannah.gnu.org> 2015-12-31 6:31 ` [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin Herbert J. Skuhra 2015-12-31 7:16 ` YAMAMOTO Mitsuharu 2015-12-31 8:05 ` Herbert J. Skuhra 2015-12-31 8:30 ` YAMAMOTO Mitsuharu 2015-12-31 10:08 ` Herbert J. Skuhra 2015-12-31 11:40 ` Herbert J. Skuhra 2015-12-31 12:02 ` YAMAMOTO Mitsuharu
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.