This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/30518] failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]