🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36643

Re: X11R4 gcc-1.36 SunOS 4.0.3 puzzle

#36643
From: jonas Jonas Olsson
Date: Sat, 10 Feb 1990 02:31
42 lines
2577 bytes
In article <2776@jato.Jpl.Nasa.Gov> kaleb@mars.UUCP (Kaleb Keithley) writes:
>In article <1990Feb8.010833.20242@ucselx.sdsu.edu> cbcscmrs@mx.csun.edu (Mike Stump) writes:
>>puzzle will dump core if gcc-1.36 is used on a Sun3 running SunOS 4.0.3
>>
>>To fix, use /bin/cc
>
>Maybe I have a line eater, because the above is what I got, and it doesn't
>make much sense!  If it means what I think it means, then the answer is:
>
>Compile the following with cc
>os/4.2bsd/oscolor.c
>dix/window.c
>ddx/mi/mifillarc.c
>ddx/cfb/cfbwindow.c
>
I have compiled the entire server with some different flavors of gcc,
and for all of them I have had a problem that wide lines are not drawn
as lines, but as filled areas with the line as the left delimiter and
the right edge of the window as the right. This occurs on both Sun2 and
Sun3 systems and the following versions of gcc: 1.36, 1.36.93, 1.36.94.
Fix 1 to the server didn't affect this.

The flags I have been using for compiling the server are:
gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -O

I have found that it is the file 'ddx/mi/miwideline.c' that causes above
mentioned problem, if I use cc -O4 for it everything works OK, but if I
try to use gcc with any combination of flags the problem occurs.

But the files namned by Kaleb Keithley haven't given me any problems.
I think -fpcc-struct-return combined with running fixincludes solves most
problems. If anyone have encountered any similar problem, and have found out
Anything more about it Please let me know.

In SunOS 3.2 The XDMCP code doesn'nt work, and in in SunOS 3.5 os/4.2bsd/xdmcp.c
fails to compile with gcc (at least on Sun2 with a bit too old files
created by fixinclude).

Regards Jonas Olsson
Jonas Olsson			Tel: 031-205955, 010-846031
email:	jonas@cd.chalmers.se,	jonas@ce.chalmers.se,
	jonas@sisug.sisu.se,	jonas@myab.se
Technical Details
Message-ID: <1990Feb10.023118.12270@mathrt0.math.chalmers.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!mcsun!sunic!chalmers!mathrt0.math.chalmers.se!ranko!jonas
References: <1990Feb8.010833.20242@ucselx.sdsu.edu> <2776@jato.Jpl.Nasa.Gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!mcsun!sunic!chalmers!mathrt0.math.chalmers.se!ranko!jonas
From: jonas@cd.chalmers.se. (Jonas Olsson)
Newsgroups: comp.windows.x,gnu.gcc.bug
Subject: Re: X11R4 gcc-1.36 SunOS 4.0.3 puzzle
Message-ID: <1990Feb10.023118.12270@mathrt0.math.chalmers.se>
Date: 10 Feb 90 02:31:18 GMT
References: <1990Feb8.010833.20242@ucselx.sdsu.edu> <2776@jato.Jpl.Nasa.Gov>
Sender: news@mathrt0.math.chalmers.se (Evald Nyhetsson)
Reply-To: jonas@cd.chalmers.se (Jonas BB Olsson)
Organization: Chalmers University of Technology, Gothenburg, Sweden.
Lines: 42