all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bootstrap fails on Mac OS X
@ 2004-11-07  5:22 Enrico Franconi
  2004-11-07  5:44 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 7+ messages in thread
From: Enrico Franconi @ 2004-11-07  5:22 UTC (permalink / raw)


Hi.
With latest CVS, make bootstrap fails on Mac OS X 10.3.6 gcc 3.3.
Can you help me?
cheers
--e.

 > make maintainer-clean
./configure --enable-carbon-app=/Applications --without-x
 > make bootstrap
(...)
gcc -I/sw/include -L/sw/lib -c -fpascal-strings -fno-common -DMAC_OSX 
-I../mac/src   -Demacs -DHAVE_CONFIG_H   -I. 
-I/Applications/-Programs/-Software/ec-emacs/cvs-emacs/emacs/src 
-fpascal-strings -fno-common -DMAC_OSX -I../mac/src -Dtemacs -g -O2 
editfns.c
In file included from editfns.c:43:
/usr/include/sys/resource.h:81: error: field `ru_utime' has incomplete 
type
/usr/include/sys/resource.h:82: error: field `ru_stime' has incomplete 
type
make[1]: *** [editfns.o] Error 1
make: *** [bootstrap] Error 2

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

* Re: Bootstrap fails on Mac OS X
  2004-11-07  5:22 Bootstrap fails on Mac OS X Enrico Franconi
@ 2004-11-07  5:44 ` YAMAMOTO Mitsuharu
  2004-11-07  5:56   ` Steven Tamm
  2004-11-07  6:05   ` Enrico Franconi
  0 siblings, 2 replies; 7+ messages in thread
From: YAMAMOTO Mitsuharu @ 2004-11-07  5:44 UTC (permalink / raw)
  Cc: emacs-devel

>>>>> On Sun, 7 Nov 2004 06:22:19 +0100, Enrico Franconi <franconi@inf.unibz.it> said:

> Hi.  With latest CVS, make bootstrap fails on Mac OS X 10.3.6 gcc
> 3.3.  Can you help me?

On Mac OS X, getrusage requires to include sys/time.h as well as
sys/resource.h.

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

Index: src/editfns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/editfns.c,v
retrieving revision 1.383
diff -c -r1.383 editfns.c
*** src/editfns.c	6 Nov 2004 17:00:37 -0000	1.383
--- src/editfns.c	7 Nov 2004 05:41:27 -0000
***************
*** 39,44 ****
--- 39,48 ----
  #include <stdio.h>
  #endif
  
+ #ifdef HAVE_SYS_TIME_H
+ #include <sys/time.h>
+ #endif
+ 
  #if defined HAVE_SYS_RESOURCE_H
  #include <sys/resource.h>
  #endif

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

* Re: Bootstrap fails on Mac OS X
  2004-11-07  5:44 ` YAMAMOTO Mitsuharu
@ 2004-11-07  5:56   ` Steven Tamm
  2004-11-07  6:24     ` YAMAMOTO Mitsuharu
  2004-11-07  6:05   ` Enrico Franconi
  1 sibling, 1 reply; 7+ messages in thread
From: Steven Tamm @ 2004-11-07  5:56 UTC (permalink / raw)
  Cc: Enrico Franconi, emacs-devel

Fixed.

I first checked something else in, but this was better.  I didn't do 
this first because of the later include of "systime.h" but it should be 
declared ahead of time in any case.  Perhaps resource.h should be 
included after "systime.h"?

-Steven

On Nov 6, 2004, at 9:44 PM, YAMAMOTO Mitsuharu wrote:

> #ifdef HAVE_SYS_TIME_H
> + #include <sys/time.h>
> + #endif

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

* Re: Bootstrap fails on Mac OS X
  2004-11-07  5:44 ` YAMAMOTO Mitsuharu
  2004-11-07  5:56   ` Steven Tamm
@ 2004-11-07  6:05   ` Enrico Franconi
  1 sibling, 0 replies; 7+ messages in thread
From: Enrico Franconi @ 2004-11-07  6:05 UTC (permalink / raw)
  Cc: emacs-devel

> On Mac OS X, getrusage requires to include sys/time.h as well as 
> sys/resource.h.

Thanks, fixed.
--e.

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

* Re: Bootstrap fails on Mac OS X
  2004-11-07  5:56   ` Steven Tamm
@ 2004-11-07  6:24     ` YAMAMOTO Mitsuharu
  2004-11-08 11:58       ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: YAMAMOTO Mitsuharu @ 2004-11-07  6:24 UTC (permalink / raw)
  Cc: Enrico Franconi, emacs-devel

>>>>> On Sat, 6 Nov 2004 21:56:31 -0800, Steven Tamm <steventamm@mac.com> said:

> I first checked something else in, but this was better.  I didn't do
> this first because of the later include of "systime.h" but it should
> be declared ahead of time in any case.  Perhaps resource.h should be
> included after "systime.h"?

Actually, I just added #include without such a consideration, and I
can't say which is better.  So I'd like to leave it to experts.

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

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

* Re: Bootstrap fails on Mac OS X
  2004-11-07  6:24     ` YAMAMOTO Mitsuharu
@ 2004-11-08 11:58       ` Eli Zaretskii
  2004-11-08 12:33         ` Jan D.
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2004-11-08 11:58 UTC (permalink / raw)
  Cc: steventamm, emacs-devel, franconi

> Date: Sun, 07 Nov 2004 15:24:54 +0900
> From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
> Cc: Enrico Franconi <franconi@inf.unibz.it>, emacs-devel@gnu.org
> 
> >>>>> On Sat, 6 Nov 2004 21:56:31 -0800, Steven Tamm <steventamm@mac.com> said:
> 
> > I first checked something else in, but this was better.  I didn't do
> > this first because of the later include of "systime.h" but it should
> > be declared ahead of time in any case.  Perhaps resource.h should be
> > included after "systime.h"?
> 
> Actually, I just added #include without such a consideration, and I
> can't say which is better.  So I'd like to leave it to experts.

I fixed this in a little more general mannaer; please see if the
current CVS compiles and works on Mac OS X.

Thanks.

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

* Re: Bootstrap fails on Mac OS X
  2004-11-08 11:58       ` Eli Zaretskii
@ 2004-11-08 12:33         ` Jan D.
  0 siblings, 0 replies; 7+ messages in thread
From: Jan D. @ 2004-11-08 12:33 UTC (permalink / raw)
  Cc: steventamm, franconi, YAMAMOTO Mitsuharu, emacs-devel


>
> I fixed this in a little more general mannaer; please see if the
> current CVS compiles and works on Mac OS X.

It does.

	Jan D.

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

end of thread, other threads:[~2004-11-08 12:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-07  5:22 Bootstrap fails on Mac OS X Enrico Franconi
2004-11-07  5:44 ` YAMAMOTO Mitsuharu
2004-11-07  5:56   ` Steven Tamm
2004-11-07  6:24     ` YAMAMOTO Mitsuharu
2004-11-08 11:58       ` Eli Zaretskii
2004-11-08 12:33         ` Jan D.
2004-11-07  6:05   ` Enrico Franconi

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.