Hello,
I have found a problem with make on IRIX when trying to build
non existent archive member : it complains saying the member has
a date in the future. Here is the output from make --version :
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for mips-sgi-irix6.5
I have found where the problem comes : in the routine f_mtime (file
remake.c), the macro FILE_TIMESTAMP_FROM_S_AND_NS is called with the
result from ar_member_date(). It seems that when the result is -1,
this macro don't give back -1 as a result. So I have changed remake.c
as you can see with this context diff and it works fine :
*** remake.c.Orig Mon Apr 3 07:46:08 2000
--- remake.c Tue Apr 18 17:22:02 2000
***************
*** 1097,1103 ****
/* The archive doesn't exist, so it's members don't exist either. */
return (FILE_TIMESTAMP) -1;
! mtime = FILE_TIMESTAMP_FROM_S_AND_NS (ar_member_date (file->hname), 0);
}
else
#endif
--- 1097,1107 ----
/* The archive doesn't exist, so it's members don't exist either. */
return (FILE_TIMESTAMP) -1;
! {
! time_t temp_res = ar_member_date (file->hname);
! if (temp_res == (time_t) -1) mtime = (FILE_TIMESTAMP) -1;
! else mtime = FILE_TIMESTAMP_FROM_S_AND_NS (temp_res, 0);
! }
}
else
#endif
I hope this will help.
--
Gilles Bourhis
Equipe SIMPA - Laboratoire PALMS - Universit� de Rennes 1
B�t. 11B, Campus de Beaulieu
35042 Rennes Cedex - FRANCE
Tel. : 02 99 28 16 82, fax : 02 99 28 16 80
http://www.palms.univ-rennes1.fr