4 Notes for building XFree86 on Solaris x86

Contents of this section

  1. The majority of all modifications you will need to make are now in ˜xc/config/cf/xf86site.def, except one. You will need to set OSName, and OSMinorVersion correctly in ˜xc/config/cf/sun.cf. Under Solaris 2.1 for x86, sun.cf needs to read (near the top of the file)
            #ifdef SVR4Architecture
            #ifdef i386Architecture
            #define OSName                  SunOS 5.1 x86
            XCOMM operating system:  OSName
            #define OSMajorVersion          5
            #define OSMinorVersion          1
    
    Under Solaris 2.4 for x86, sun.cf needs to read (near the top of the file)
            #ifdef SVR4Architecture
            #ifdef i386Architecture
            #define OSName                  SunOS 5.4 x86
            XCOMM operating system:  OSName
            #define OSMajorVersion          5
            #define OSMinorVersion          4
    
  2. Both Gcc, and ProWorks are supported by XFree86. Gcc-2.5.8 is suggested, Gcc-2.6.0 is known not to work. You also need to set HasGcc2 correctly in ˜xc/config/cf/xf86site.def, and use CC=gcc on your 'make World' command.

    You will also need to either create a link from gcc to cc, or comment out the CC=cc line in ˜xc/config/imake/Makefile.ini.

  3. If your are using ProWorks to compile the XFree86 distribution, you need to modify your PATH appropriately so the ProWorks tools are available.

  4. You MUST put /usr/ccs/bin at the front of your PATH. There are known problems with some GNU replacements for the utilities found there. So the /usr/ccs/bin versions of these programs must be found before any other possible GNU versions. (Most notably GNU 'ar' does not work during the build).

  5. If you wish to use the "memory aperture" feature of the S3, and Mach32 servers, you need to compile, and install the Solaris x86 aperture driver for memory mapped I/O support. This driver is REQUIRED for the P9000 server.

    The source for this driver is included in ˜xc/programs/Xserver/hw/xfree86/etc/apSolx86.shar. Building, and installing the driver is relatively straight forward. Please read its accompanying README file.

    You also need to set HasSolx86apertureDrv to YES in ˜xc/config/cf/xf86site.def.

  6. The BOOTSTRAPCFLAGS for Solaris x86 is:

                    "-Dsun -Di386 -DSVR4"
    

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter