Article View: comp.os.os2.programmer
Article #1763problem with gcc -Zomf
From: Erik van Linstee
Date: Fri, 06 Nov 1992 19:48
Date: Fri, 06 Nov 1992 19:48
36 lines
1996 bytes
1996 bytes
Today I tried to recompile several apps, using -Zomf and -Zmt
to reduce executable size. However, I got errors that are
not there when compiling without those options.
Specifically, p2c complains about:
gcc -Zomf -Zmt stuff.obj out.obj comment.obj lex.obj parse.obj decl.obj
expr.obj pexpr.obj funcs.obj trans.obj dir.obj hpmods.obj citmods.obj -o p2c.ex
e p2c.def
trans.obj(trans.obj) : error L2025: daylight : symbol defined more than once
trans.obj(trans.obj) : error L2025: timezone : symbol defined more than once
trans.obj(trans.obj) : error L2025: tzname : symbol defined more than once
There were 3 errors detected
daylight and tzname are never referenced, and timezone is used as
a struct timezone tz;
zip (from info-zip) gives:
gcc -O2 -m486 -s -o zip.exe zip.def zip.o zipfile.o zipup.o fileio.o uti
l.o globals.o deflate.o trees.o bits.o os2zip.o -los2 -Zmt
fileio.o: Undefined symbol _errno referenced from text segment
I had this at one point wher errno.h wasn''t included and doing so
fixed it, but here errno IS included so I am stumped.
If someone can point aout what the problem is I'd be grateful
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:
<1992Nov06.194808.8252@donau.et.tudelft.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!gmd.de!Germany.EU.net!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linsteeShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!gmd.de!Germany.EU.net!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee) Subject: problem with gcc -Zomf Message-ID: <1992Nov06.194808.8252@donau.et.tudelft.nl> Sender: news@donau.et.tudelft.nl (UseNet News System) Nntp-Posting-Host: dutecaj.et.tudelft.nl Organization: Delft University of Technology, Dept. of Electrical Engineering Date: Fri, 06 Nov 1992 19:48:08 GMT Lines: 36