Article View: comp.windows.misc
Article #306Re: Novice building X on Sun 3/50, SunOS 4.0.3
From: Robert Rodriguez
Date: Sun, 07 Oct 1990 17:25
Date: Sun, 07 Oct 1990 17:25
47 lines
2360 bytes
2360 bytes
In article <7498@darkstar.ucsc.edu> haynes@ucscc.UCSC.EDU.UUCP (Jim Haynes) writes: >I just applied all the patches and did a make World in my sun3 >directory and got everything made. Nothing (that I have tried so far) >works; they all report "inappropriate ioctl for device" . Any hints >from Old Hands where I should start looking? Jim, I'll have to guess that you are trying to build X11 release 4, and using the Gnu compiler "gcc". If I am right, then all you need to do is a "make clean", then run gcc's fixincludes script, then another "make World". Here's an excerpt from "Frequently asked questions about X": -- Subject: 30) How do I build X with gcc? MIT is now using regularly the Free Software Foundation's GNU-CC to build the X distribution and uses gcc-built servers to test performance increases. [These options are gathered from several descriptions of building X with gcc 1.34, 1.35, and 1.36]: Use the options -O -fstrength-reduce -fpcc-struct-return -traditional may also be necessary if your version of gcc is sufficiently old. Do not use -finline-functions, particularly on the R4 server. ---> Make sure to run 'fixincludes' from the gcc distribution ---> before doing anything, or you will get fatal errors such as: ---> xterm: Error 15, errno 25: Inappropriate ioctl for device. HOWEVER, there is a bug in gcc 1.34 and 1.36 (but not in 1.35 or 1.37) which miscompiles things of the form (expr == 0 ? exp1 : exp2). The fix needed in X11R4 (and probably X11R3) is to change the definition of XtNewString in Intrinsic.h to: #define XtNewString(str) \ ((str) != NULL ? (strcpy(XtMalloc((unsigned)strlen(str) + 1), str)) : NULL) A work-around is also in fix-2 to X11R4. -- If you'd like a copy of this complete file, I'll mail you one. Robert
Technical Details
Message-ID:
<301@pb2esac.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!pb2esac!rgrodrigReferences:
<7498@darkstar.ucsc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!pb2esac!rgrodrig From: rgrodrig@pb2esac.UUCP (Robert Rodriguez) Newsgroups: comp.windows.misc Subject: Re: Novice building X on Sun 3/50, SunOS 4.0.3 Summary: GCC fixincludes Message-ID: <301@pb2esac.UUCP> Date: 7 Oct 90 17:25:17 GMT References: <7498@darkstar.ucsc.edu> Reply-To: rgrodrig@pb2esac.UUCP (Robert Rodriguez) Distribution: comp Organization: Pacific*Bell ESAC, San Francisco, Ca. Lines: 47