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 ``
make'' to link the server. See
for more info.
See INSTALL for instructions on unbundling and building the source distribution.
You should configure the distribution by editing
xc/config/cf/host.def before compiling. To compile the
sources, invoke ``
make World'' in the xc directory.
XFree86 has a configuration option to select the console
drivers to use in
#define XFree86ConsoleDefines -DPCCONS_SUPPORT
#define XFree86ConsoleDefines -DPCVT_SUPPORT
#define XFree86ConsoleDefines -DSYSCONS_SUPPORT
#define XFree86ConsoleDefines -DCODRV_SUPPORT
xf86site.defthe pccons and pcvt drivers will be supported by default.
Syscons and codrv are not bundled with NetBSD. They are available by anonymous FTP from a number of sites. They are not supported by the XFree86 binary distribution anymore.
XFree86's default configuration includes support for the PCVT console
driver. Unfortunately, NetBSD versions before 19980413 don't install
/usr/include/machine. If you want to build XFree86
with PCVT support, execute the following command as root before
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
If you want to build a server supporting codrv and you
don't already have the corresponding header file
ioctl_pc.h installed in
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
If you have installed the codrv console driver, this file should be taken from your installed version of the driver.
console.h file for syscons isn't distributed with XFree86
anymore. You should get it from the syscons distribution.
By default XFree86 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
#define BuildBsdSharedLibs NO
XFree86 also compiles on NetBSD/sparc. The Sun server
patches from Dennis Ferguson and Matthew Green have been integrated in
xf86site.def are needed:
Problems with this port should be reported to the port-sparc@NetBSD.Org mailing list or directly to me firstname.lastname@example.org rather than to the xfree86 mailing list.
Note that the NetBSD project has now its own source tree, based on the XFree86 source tree, with some local modifications. You may want to start with this tree to rebuild from sources. The NetBSD xsrc source tree is available at: ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/