edguer@alpha.ces.cwru.edu (Aydin Edguer) (03/21/90)
I have successfully applied all fixes up to and including #5. When attempting to compile X11R4 on a Sun running SunOS 3.5 using gcc, I received the following errors: sunCG3C.c: In function sunCG3CProbe: sunCG3C.c:463: `CG3AC_MONOLEN' undeclared (first use this function) sunCG3C.c:463: (Each undeclared identifier is reported only once sunCG3C.c:463: for each function it appears in.) sunCG3C.c:464: `CG3AC_ENBLEN' undeclared (first use this function) sunCG3C.c:480: `CG3BC_MONOLEN' undeclared (first use this function) sunCG3C.c:481: `CG3BC_ENBLEN' undeclared (first use this function) *** Error code 1 The specific command that was executed was: gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -c -O -I../../../. -I. - I../mfb -I../mi -I../../include -I../../.././X11 -DXDMCP -DSUN_WINDOWS -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC sunCG3C.c I see no way in which this function could compile unless _MAP_NEW is defined. The patch I applied to make this compile is: *** sunCG3C.c.orig Wed Oct 25 13:38:38 1989 --- sunCG3C.c Wed Mar 21 00:41:54 1990 *************** *** 80,87 **** --- 80,91 ---- #define CG3AC_IMAGE(fb) ((caddr_t)(&(fb)->cpixel)) #define CG3AC_IMAGELEN (((sizeof (CG3AC) + 4095)/4096)*4096) + #define CG3AC_MONOLEN (128*1024) + #define CG3AC_ENBLEN CG3BC_MONOLEN #define CG3BC_IMAGE(fb) ((caddr_t)(&(fb)->cpixel)) #define CG3BC_IMAGELEN (((sizeof (CG3BC) + 4095)/4096)*4096) + #define CG3BC_MONOLEN (128*1024) + #define CG3BC_ENBLEN CG3BC_MONOLEN static CG3ACPtr CG3ACfb = NULL; static CG3BCPtr CG3BCfb = NULL; Is this correct (if not, what should it be)? Has anyone else run into this problem before (or am I the only one left in the world running SunOS 3.5)? Aydin Edguer edguer@ces.cwru.edu