🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1300

timezone, daylight and tzname problem

#1300
From: Erik van Linstee
Date: Sun, 08 Nov 1992 11:06
29 lines
1594 bytes
Yesterday I had a problem compiling P2C with gcc. I wanted to
do this using -Zomf -Zmt. The result was an error stating
timezone, daylight and tzname where multiple declared in
trans.obj. Without -Zomf it worked fine, so I assume it must
have been link386.
Eventually I traced it back to the fact that <sys/time.h>
was included in out.c and <time.h> in trans.c As known
time.h declares timezone, etc, whereas sys/time.h declares
struct timezone (or vice versa, I forget). I do not not if
this has anything to do with the problem, but I do know that
removing <time.h> from trans.c resulted in a succesful compile
and link.

The ultimate goal I had in mind was to reduce the exe size,
which -Zomf -Zmt has done for every other app. I recompiled sofar,
but it did actually create a larger exe for P2C. Too bad.

Anyway, maybe someone knows whats up with this timezone business.


Erik



-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
Technical Details
Message-ID: <1992Nov08.110610.1062@donau.et.tudelft.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dutecaj.et.tudelft.nl!linstee

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dutecaj.et.tudelft.nl!linstee
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: timezone, daylight and tzname problem
Message-ID: <1992Nov08.110610.1062@donau.et.tudelft.nl>
Sender: gnulists@ai.mit.edu
Organization: Delft University of Technology, Dept. of Electrical Engineering
Distribution: gnu
Date: Sun, 8 Nov 1992 11:06:10 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 31