This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30518] failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9
- From: "fang at csl dot cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2007 22:00:54 -0000
- Subject: [Bug libfortran/30518] failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9
- References: <bug-30518-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from fang at csl dot cornell dot edu 2007-01-20 22:00 -------
In <sys/resource.h> (Darwin), near the beginning, you'll see some ifndef
business for struct timeval (the type of ru_utime and ru_stime). It looks to
be protected by the _TIMEVAL macro. Somehow that is evaluating the wrong way,
resulting in no struct timeval definition. Incidentally, _TIMEVAL is similarly
defined and used in <sys/time.h>. The preprocessed source reveals that timeval
is first referenced in "gcc/include/unistd.h", so one possible fix might be to
include <sys/time.h> there (maybe conditionally). I've run into this before
porting other projects.
--
fang at csl dot cornell dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fang at csl dot cornell dot
| |edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30518