I built Lyx 1.0.0 on a Alpha running RedHat Linux 4.2 + updates.
I compiled with g++ from the egcs 1.1.1 distribution.
The following warnings were a little worrying:
------------------------------------------------------------------------------
g++ -c -g -O2 -I. -I. -I../images -I/usr/X11R6/include FileInfo.C
FileInfo.C: In method `time_t & FileInfo::getModificationTime()':
FileInfo.C:287: warning: initializing non-const `time_t &' with `long unsigned int'
will use a temporary
FileInfo.C:287: warning: returning reference to temporary
FileInfo.C: In method `time_t & FileInfo::getAccessTime()':
FileInfo.C:293: warning: initializing non-const `time_t &' with `long unsigned int'
will use a temporary
FileInfo.C:293: warning: returning reference to temporary
FileInfo.C: In method `time_t & FileInfo::getStatusChangeTime()':
FileInfo.C:299: warning: initializing non-const `time_t &' with `long unsigned int'
will use a temporary
FileInfo.C:299: warning: returning reference to temporary
------------------------------------------------------------------------------
Note that 'man 2 stat' says:
------------------------------------------------------------------------------
struct stat
{
[...]
time_t st_atime; /* time of last access */
time_t st_mtime; /* time of last modification */
time_t st_ctime; /* time of last change */
};
------------------------------------------------------------------------------
but /usr/include/statbuf.h has:
------------------------------------------------------------------------------
struct stat
{
[...]
unsigned long int st_atime; /* Time of last access. */
unsigned long int st_mtime; /* Time of last modification. */
unsigned long int st_ctime; /* Time of last status change. */
[...]
};
------------------------------------------------------------------------------
NB: RedHat 5.1 has this though:
------------------------------------------------------------------------------
struct stat
{
[...]
__time_t st_atime; /* Time of last access. */
__time_t st_mtime; /* Time of last modification. */
__time_t st_ctime; /* Time of last status change. */
[...]
};
------------------------------------------------------------------------------
Bye,
Rob.