🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41800

Solaris 2.5 & 2.7.2 problems

#41800
From: Jan Zawadzki
Date: Tue, 20 Feb 1996 00:00
33 lines
1214 bytes
I'm building the 2.7.2 using 2.4.8 on a Sparc Ultra, Solaris 2.5.  Things are
going well except for problems with protoize.c - 2.5 apparently is using an
extended stat structure, which is causing problems for two functions:

find_file() (line 1500) 
process_aux_info_file() (line 2300 +/-)

All the errors are related to the time variable, and say:

structure has no member named 'tv_sec'

Problem is that I'm not sure why it complains about tv_sec.  The code reads:

stat_buf.st_mtime = (time_t) 0;

where

struct stat statbuf;
struct timerstruc_t st_mtime (from def. of stat)
struct timerstruc_t {
	time_t	tv_sec;
	long	tv_nsec;
};

Changing the above line to read

stat_buf.st_mtime.tv_sec = (time_t) 0;

results in the same error message.  What gives???

Any help would be much appreciated.  Thanks!

Jan
Technical Details
Message-ID: <4gcuup$rh8@shiva.usa.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ff89d71513354710,start
X-Google-Attributes: gid11318c,public
From: jcz@csn.org (Jan Zawadzki)
Subject: Solaris 2.5 & 2.7.2 problems
Date: 1996/02/20
Message-ID: <4gcuup$rh8@shiva.usa.net>
X-Deja-AN: 140253270
organization: Internet Express (800-592-1240 customer service)
newsgroups: gnu.gcc.help