I was trying to build X11R6.4 on a Solaris 7 box (5/99 with most
recommended patches). The make world went on fine until it was
trying to build the server:
sunCfb.c:304: sys/cg2reg.h: No such file or directory
*** Error code 1
I checked the pkginfo output, and indeed there is nothing related
to cg2, only cg6:
system SUNWcg6 GX (cg6) Device Driver
system SUNWcg6h GX (cg6) Header Files
Even most of our Sun boxes have been running Solaris 7 for a while,
we still have a couple boxes running Solaris 2.6, so I got on one,
looked into /usr/include/sys, and found a copy of cg2reg.h. I made
a copy of it back to the build machine and finished the build.
Interestingly, on the Solaris 2.6 box that I got the file from,
I saw nothing related to cg2 either. pkginfo output is almost
identical to the build box running Solaris 7.
I am curious whether anyone knows that is it true that in Solaris 7,
the /usr/include/sys/cg2reg.h is no longer available?