8 Rebuilding the XFree86 Distribution

Contents of this section

The server link kit allow you to rebuild just the X server with a minimum amount of disk space. Just unpack it, make the appropriate changes to the xf86site.def, type ``./mkmf'' and ``make'' to link the server. See /usr/X11R6/lib/Server/README for more info.

See INSTALL for instructions on unbundling and building the source distribution.

You should configure the distribution by editing xc/config/cf/xf86site.def before compiling. To compile the sources, invoke ``make World'' in the xc directory.

8.1 Console drivers

XFree86 3.2 has a configuration option to select the console drivers to use in xf86site.def:

If you don't define XFree86ConsoleDefines in xf86site.def the pccons and pcvt drivers will be supported.

8.2 pcvt_ioctl.h file:

XFree86's defaults config includes support for the PCVT console driver. Unfortunately, NetBSD doesn't install the pcvt_ioctl.h file in /usr/include/machine. If you want to build XFree86 with PCVT support, execute the following command as root before starting make World:

cp /usr/src/sys/arch/i386/isa/pcvt/pcvt_ioctl.h /usr/include/machine

If you don't have kernel sources, you can grab this file from ftp.netbsd.org or one of its mirrors. If you're not running PCVT, you can remove -DPCVT_SUPPORT from XFree86ConsoleDefines in xf86site.def too.

If you have a full source tree, you may want to copy this file to /usr/src/sys/arch/i386/include, so that it gets reinstalled every time you run make includes.

This problem is documented in NetBSD PR#1391, which has not been handled yes. OpenBSD has pcvt_ioctl.h at the right places.

8.3 console.h and ioctl_pc.h files:

If you want to build a server supporting codrv and you don't already have the corresponding header file ioctl_pc.h installed in /usr/include/machine, then install the copy that is supplied in xc/programs/Xserver/hw/xfree86/etc. If you run NetBSD-current you probably want to install it in /usr/src/sys/arch/i386/include too, so that it get reinstalled each time you run make includes.

If you have installed the codrv console driver, this file should be taken from your installed version of the driver.

The console.h file for syscons isn't distributed with XFree86 anymore. You should get it from the syscons distribution.

8.4 Support for shared libs under NetBSD 1.0 and later

By default XFree86 3.2 builds for NetBSD with shared libraries support. If you're building on 0.9 or don't want shared libraries add the following line to xf86site.def:

#define BuildBsdSharedLibs NO

8.5 Building on Sparc

XFree86 3.2 also compiles on NetBSD/sparc and OpenBSD/sparc. The Sun server patches from Dennis Ferguson and Matthew Green have been integrated in xc/programs/Xserver/hw/sun. Small modifications to xf86site.def are needed:

Problems with this port should be reported to the port-sparc@NetBSD.Org mailing list or directly to me matthieu@laas.fr rather than to the xfree86 mailing list.

Note that the SparcStation 4 TCX framebuffer is not supported for now.

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter