[comp.windows.x] error in sunCG3.c

pannaiya@NMSU.EDU (01/06/90)

I am trying to build X11R4 on a Sun 3/60 running SunOS 3.5 and am getting
the following error when trying to make World.

cc -c -O   -I../../../. -I. -I../mfb -I../mi -I../../include -I../../.././X11  -
DXDMCP -DSUN_WINDOWS -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC   -DXAW_BC sunCG3C
.c
"sunCG3C.c", line 463: CG3AC_MONOLEN undefined
"sunCG3C.c", line 464: CG3AC_ENBLEN undefined
"sunCG3C.c", line 480: CG3BC_MONOLEN undefined
"sunCG3C.c", line 481: CG3BC_ENBLEN undefined
*** Error code 1

I am using Sun cc for everything.

Could someone tell me where these symbols are  defined.

PK
pannaiya@nmsu.edu

keith@EXPO.LCS.MIT.EDU (Keith Packard) (01/06/90)

Sun 3's don't ever have CG3 displays, they only exist on 386i and sun4
machines.  Thus, the CG3 does not even have header files under sunOS 3.5 on
your sun 3/60.  To temporarily avoid the problem, hack the sources as
follows:

Trivial fix:

	Remove sunCG3.o from the Imakefile
	Remove the CG3 related lines from sunInit.c (i.e. lines
	which contain 'CG3' in them).

	remake the Makefile (make Makefile; make depend)

	remake the directory (make)

Keith Packard
MIT X Consortium

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/07/90)

If you upgraded to SunOS 4.0.3, you wouldn't have this problem.
I don't have an official fix for you, but someone else has suggested
adding these to sunCG3C.c if your build fails:

#define CG3AC_MONOLEN (128*1024)
#define CG3AC_ENBLEN  CG3AC_MONOLEN
#define CG3BC_MONOLEN CG3AC_MONOLEN
#define CG3BC_ENBLEN  CG3AC_MONOLEN