emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation failure on macOS 10.15 Catalina


From: Xu Xin
Subject: Re: Compilation failure on macOS 10.15 Catalina
Date: Wed, 2 Oct 2019 11:15:49 -0400

On Wed, Oct 2, 2019 at 3:44 AM Zach Pearson <zach@zjp.codes> wrote:
>
> grep LIBXML2_CFLAGS config.log
> ac_cv_env_LIBXML2_CFLAGS_set=3D
> ac_cv_env_LIBXML2_CFLAGS_value=3D
> pkg_cv_LIBXML2_CFLAGS=3D-I/usr/include/libxml2
> LIBXML2_CFLAGS=3D'-I/usr/include/libxml2=E2=80=99
>
> There is no folder /usr/include/libxml2
>
> > On 2 Oct 2019, at 00:00, YAMAMOTO Mitsuharu <address@hidden> wrote:
> >
> > On Wed, 02 Oct 2019 13:43:55 +0900,
> > Zach Pearson wrote:
> >>
> >> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib all
> >> make[1]: Nothing to be done for `all'.
> >> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib-src all
> >> make[1]: Nothing to be done for `all'.
> >> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src 
> >> VCSWITNESS='$(srcdir)/../.git/logs/HEAD' all
> >> gcc -c  -Demacs  -I. -I. -I../lib -I../lib         -I/usr/include/libxml2  
> >>      -I/usr/local/Cellar/little-cms2/2.9/include       -MMD -MF deps/xml.d 
> >> -MP   -I/usr/local/Cellar/gnutls/3.6.9/include 
> >> -I/usr/local/Cellar/nettle/3.4.1/include 
> >> -I/usr/local/Cellar/libtasn1/4.14/include 
> >> -I/usr/local/Cellar/p11-kit/0.23.17/include/p11-kit-1    -Wno-switch 
> >> -Wno-pointer-sign -Wno-string-plus-int -Wno-unknown-attributes 
> >> -Wno-initializer-overrides -Wno-tautological-compare 
> >> -Wno-tautological-constant-out-of-range-compare -g3 -O2  xml.c
> >> xml.c:26: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
> >
> > -I/usr/include/libxml2 looks strange.  What is the output of
> > "grep LIBXML2_CFLAGS config.log" and
> > "grep /usr/include/libxml2 config.log"?
> >
> >                                    YAMAMOTO Mitsuharu
> >                               address@hidden
>
>

This patch may works, it let pkgconfig able to recognizes libxml2
shipping with macOS:

diff --git a/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc
b/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc
index c297c6b45..22b2e69e8 100644
--- a/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc
+++ b/Library/Homebrew/os/mac/pkgconfig/10.15/libxml-2.0.pc
@@ -1,7 +1,8 @@
 prefix=/usr
+xcode_prefix=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk${prefix}
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
-includedir=${prefix}/include
+includedir=${xcode_prefix}/include
 modules=1

 Name: libXML

- XIn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]