unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
@ 2016-02-04 15:31 Henry Unger
  2016-02-05  0:29 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 6+ messages in thread
From: Henry Unger @ 2016-02-04 15:31 UTC (permalink / raw)
  To: 22552

On Apple Mac running OS X 10.11:

Downloaded ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.90.tar.xz
Unpacked it.
Ran ./configure
Ran make
Compile stopped with:

  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

On my system, that file is found in:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml

This may be related to:

2015-12-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>

* configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.

I ran:

$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

config.status has:

S["LIBXML2_LIBS"]="-lxml2 "
S["LIBXML2_CFLAGS"]="-I/usr/include/libxml2 "

Henry Unger






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
  2016-02-04 15:31 bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11 Henry Unger
@ 2016-02-05  0:29 ` YAMAMOTO Mitsuharu
  2016-02-05  2:39   ` Henry Unger
  0 siblings, 1 reply; 6+ messages in thread
From: YAMAMOTO Mitsuharu @ 2016-02-05  0:29 UTC (permalink / raw)
  To: Henry Unger; +Cc: 22552

>>>>> On Thu, 4 Feb 2016 09:31:07 -0600, Henry Unger <hunger@hitech.com> said:

> On Apple Mac running OS X 10.11:
> Downloaded ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.90.tar.xz
> Unpacked it.
> Ran ./configure
> Ran make
> Compile stopped with:

>   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

> On my system, that file is found in:

> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml

> This may be related to:

> 2015-12-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>

> * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.

> I ran:

> $ xcrun --show-sdk-path
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

> config.status has:

> S["LIBXML2_LIBS"]="-lxml2 "
> S["LIBXML2_CFLAGS"]="-I/usr/include/libxml2 "

What's the output of "pkg-config --cflags 'libxml-2.0 > 2.6.17'" ?
Do you have the directory /usr/include ?

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
  2016-02-05  0:29 ` YAMAMOTO Mitsuharu
@ 2016-02-05  2:39   ` Henry Unger
  2016-02-05  3:37     ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 6+ messages in thread
From: Henry Unger @ 2016-02-05  2:39 UTC (permalink / raw)
  To: YAMAMOTO Mitsuharu; +Cc: 22552

[-- Attachment #1: Type: text/plain, Size: 2090 bytes --]





 From:   YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 
 To:   Henry Unger <hunger@hitech.com> 
 Cc:   <22552@debbugs.gnu.org> 
 Sent:   2/4/2016 4:29 PM 
 Subject:   Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11 

>>>>> On Thu, 4 Feb 2016 09:31:07 -0600, Henry Unger <hunger@hitech.com> said: 
 
> On Apple Mac running OS X 10.11: 
> Downloaded ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.90.tar.xz 
> Unpacked it. 
> Ran ./configure 
> Ran make 
> Compile stopped with: 
 
>   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 
 
> On my system, that file is found in: 
 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml 
 
> This may be related to: 
 
> 2015-12-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 
 
> * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. 
 
> I ran: 
 
> $ xcrun --show-sdk-path 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk 
 
> config.status has: 
 
> S["LIBXML2_LIBS"]="-lxml2 " 
> S["LIBXML2_CFLAGS"]="-I/usr/include/libxml2 " 
 
What's the output of "pkg-config --cflags 'libxml-2.0 > 2.6.17'" ? 
Do you have the directory /usr/include ? 
 
                         YAMAMOTO Mitsuharu 
                    mituharu@math.s.chiba-u.ac.jp 
$ pkg-config --cflags 'libxml-2.0 > 2.6.17'
-I/usr/include/libxml2

/usr/include does not exist per se. Instead, it is:

Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include

I tried to create a soft link:

$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include /usr/include
Password:
ln: /usr/include: Operation not permitted

Apple no longer allows such things.

Henry

[-- Attachment #2: Type: text/html, Size: 2728 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
  2016-02-05  2:39   ` Henry Unger
@ 2016-02-05  3:37     ` YAMAMOTO Mitsuharu
  2016-02-05  6:49       ` Henry Unger
  0 siblings, 1 reply; 6+ messages in thread
From: YAMAMOTO Mitsuharu @ 2016-02-05  3:37 UTC (permalink / raw)
  To: Henry Unger; +Cc: 22552

>>>>> On Thu, 4 Feb 2016 18:39:55 -0800, Henry Unger <hunger@hitech.com> said:

> $ pkg-config --cflags 'libxml-2.0 > 2.6.17'
> -I/usr/include/libxml2

> /usr/include does not exist per se.

This means libxml-2.0.pc in your installation of libxml2 is bogus.
IIUC, Apple does not provide us with libxml-2.0.pc in their SDK, so
probably you should have installed libxml2 on your own.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
  2016-02-05  3:37     ` YAMAMOTO Mitsuharu
@ 2016-02-05  6:49       ` Henry Unger
  2016-02-05  9:15         ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 6+ messages in thread
From: Henry Unger @ 2016-02-05  6:49 UTC (permalink / raw)
  To: 'YAMAMOTO Mitsuharu'; +Cc: 22552

> -----Original Message-----
> From: YAMAMOTO Mitsuharu [mailto:mituharu@math.s.chiba-u.ac.jp]
> Sent: Thursday, February 04, 2016 7:37 PM
> To: Henry Unger <hunger@hitech.com>
> Cc: 22552@debbugs.gnu.org
> Subject: Re: bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
> 
> >>>>> On Thu, 4 Feb 2016 18:39:55 -0800, Henry Unger
> <hunger@hitech.com> said:
> 
> > $ pkg-config --cflags 'libxml-2.0 > 2.6.17'
> > -I/usr/include/libxml2
> 
> > /usr/include does not exist per se.
> 
> This means libxml-2.0.pc in your installation of libxml2 is bogus.
> IIUC, Apple does not provide us with libxml-2.0.pc in their SDK, so probably
> you should have installed libxml2 on your own.
> 
> 				     YAMAMOTO Mitsuharu
> 				mituharu@math.s.chiba-u.ac.jp

It appears that the libxml-2.0.pc file was installed when I used brew to install some package a few weeks ago. I renamed libxml-2.0.pc to something else and re-ran the configure and make and it built without error. I'm sorry for the false alarm and thanks for your assistance

Henry Unger
hunger@hitech.com
  








^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11
  2016-02-05  6:49       ` Henry Unger
@ 2016-02-05  9:15         ` YAMAMOTO Mitsuharu
  0 siblings, 0 replies; 6+ messages in thread
From: YAMAMOTO Mitsuharu @ 2016-02-05  9:15 UTC (permalink / raw)
  To: Henry Unger; +Cc: 22552-done

>>>>> On Thu, 4 Feb 2016 22:49:32 -0800, Henry Unger <hunger@hitech.com> said:

>> > $ pkg-config --cflags 'libxml-2.0 > 2.6.17'
>> > -I/usr/include/libxml2
>> 
>> > /usr/include does not exist per se.
>> 
>> This means libxml-2.0.pc in your installation of libxml2 is bogus.
>> IIUC, Apple does not provide us with libxml-2.0.pc in their SDK, so probably
>> you should have installed libxml2 on your own.
>> 
>> YAMAMOTO Mitsuharu
>> mituharu@math.s.chiba-u.ac.jp

> It appears that the libxml-2.0.pc file was installed when I used brew to install some package a few weeks ago. I renamed libxml-2.0.pc to something else and re-ran the configure and make and it built without error. I'm sorry for the false alarm and thanks for your assistance

Homebrew seems to require the installation of Command Line Tools for
Xcode.

  https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md

If you follow the above instructions, then /usr/include will be
created and the build of Emacs will succeed.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-05  9:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 15:31 bug#22552: 25.1; 25.0.90 build fails on Mac OS X 10.11 Henry Unger
2016-02-05  0:29 ` YAMAMOTO Mitsuharu
2016-02-05  2:39   ` Henry Unger
2016-02-05  3:37     ` YAMAMOTO Mitsuharu
2016-02-05  6:49       ` Henry Unger
2016-02-05  9:15         ` YAMAMOTO Mitsuharu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).