[comp.windows.x] bug in gcc 1.37.4 and XV11R4

dennisg@kgw2.bwi.WEC.COM (Dennis Glatting) (08/21/90)

configuration:
	Sun 3/60 OS 4.0.1
	gcc 1.37.4, compile flags -DNOSTDHDRS 
                                  -fstrength-reduce -fpcc-struct-return -O
	XV11R4 patch level 12
	gas 1.36

problem:  Xsun pukes.


in the previous versions of gcc i've had no problem with X.
when i upgraded X to patch level 12 and recompiled it, this
time i was using gcc.1.37.4 (i don't know the rev
i used last, probable 1.36.?).  it didn't work.  

the problem was the server.  i tracked part of the problem
down to sunInit.c and some ioctl() calls.  these calls
were not working.  i recompiled sunInit.c with Sun cc
and the ioctl() calls succeded.

i've tried the compiles with gcc before and after
running the fixincludes script. i've used Sun as and gas.

i did not look at the assy output.


has anyone seen this problem too?  what's the fix?
i'm down grading to gcc 1.37.1.  i don't know if that
will fix it.  please reply by mail.


--
 dennisg@kgw2.bwi.WEC.COM   | Dennis P. Glatting
 ..!uunet!tron!kgw2!dennisg |
-- 

--
 dennisg@kgw2.bwi.WEC.COM   | Dennis P. Glatting
 ..!uunet!tron!kgw2!dennisg |

mouse@LARRY.MCRCIM.MCGILL.EDU (08/27/90)

> i tracked part of the problem down to sunInit.c and some ioctl()
> calls.  these calls were not working.  i recompiled sunInit.c with
> Sun cc and the ioctl() calls succeded.

> i've tried the compiles with gcc before and after running the
> fixincludes script.

Are you certain fixincludes actually worked?  Try a simple test:

#include <sys/ioctl.h>
SIOCGIFCONF

Run that through cc -E and gcc -E and compare the last line of output.
They should be (functionally) identical.  If they're not, your gcc
include files are broken, regardless of what you have or haven't run,
and you'll have to find/fix that problem before you have much hope of
getting Xsun's ioctls to compile correctly with gcc.  (Typical symptom:
gcc output has 'x' where cc output has 'i'.)

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu