Instructions for Building XFree86 on an Intel Pentium Aviion machine with DG/ux R4.20MU04 : GENERAL:
Previous: Whats new
Next: Configuration for the build:

2. GENERAL:

Get from ftp.xfree86.org the XFree 3.3.x source code:

  ftp ftp.xfree86.org
  login: ftp
  passwd: your e-mail address
  cd pub/XFree86/3.3.5/source
  You need the files:
  X335src-1.tgz
  X335src-2.tgz
  X335src-3.tgz

Get also the contributed X software

  cd /pub/XFree86/3.3.5/source
  X335contrib.tgz

If you have the source tarballs of 3.3.3 go to /pub/XfFree86/3.3.5/binaries/DGUX-ix86/SOURCE get the DGUX source patch

  3.3.3-3.3.5-DGUX.diff.gz 
  X335contrib-DGUX.diff.gz (patch for the contrib software).

to avoid downloading all the source code again.

Sorry some DGUX changes they didnt make in time for the official release date of 3.3.4... I do this for free, so some times I may be excused for something like this...

To build X11R6.3 you need also the tools for DG/ux (see discussion below). They will be in ftp dpmms.cam.ac.uk (University of Cambridge,Department of Pure Mathematics) in /pub/takis/DGUX-Tools/BuildXtools.tar.gz (anonymous ftp) or in the ftp.xfree86.org ... (pub/XFree86/3.3.5/binaries/DGUX-ix86/SOURCE/BUILD-TOOLS/ BuildXtools.tar.gz).

Using a big filesytem (I use a virtual disk "xf86work" mounted on /xf86work of size 1400000 blocks) copy the source as:

  cp X335src-1.tgz  /xf86work/X335src-1.tar.gz
  cp X335src-2.tgz  /xf86work/X335src-2.tar.gz
  cp X335src-3.tgz  /xf86work/X335src-3.tar.gz

(or X333src-1,2,3.tar.gz as above plus the DG/ux patch to 3.3.5 i.e. the file 3.3.3-3.3.5-DGUX.diff.gz)

And maybe the contributed software:

  cp  X335contrib.tgz           /xf86work 

  (cp  X335contrib-DGUX.diff.gz  /xf86work). 

If you get the patches from DGUX-ix86, to build from source 3.3.3 your first problem is that in order to apply the source patch you need "patch" a very common GNU program that DG/ux doesnt have!? This program is in BuildXtools.tar.gz (or ftp prep.ai.mit.edu cd/pub/gnu get patch-2.5.tar.gz) So lets speak about these tools before anything else: Using "sysadm" mount a filesystem usr_local under /usr/local with size 200000 blocks. Then copy the BuildXtools file in /usr and give:

  gzip -d < BuildXtools.tar.gz | tar xvf -

It will unfold in the new filesytem /usr/local. Then go to your ".profile" (in your Home dir , mine eg is /admin) and add the /usr/local/bin in your path and the /usr/local/lib in your lib-path.

What you need is like that: (vi .profile)

  PATH=/usr/local/bin:/sbin:/usr/sbin:/usr/bin
  if [ -d /usr/opt/X11/bin ]
  then
    PATH=$PATH:/usr/opt/X11/bin
  fi
  export PATH
  (/usr/local/bin is before any other path!)

  LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/ccs/lib
  export LD_LIBRARY_PATH

then exit and re-login so that your new modified .profile will take effect.

Now do the following:

  cd /usr/sbin
  cp install install_dg
  rm install
  cp /usr/local/bin
  cp install /usr/bin  *(make the GNU install the default install)*
  (DG/ux install is useless)
  (Look also the file xc/config/cf/DGUX.cf , below).

  (Or get GNU make-3.77 and copy install.sh (or -sh) to a /usr/bin/install)

  cd /usr/bin
  cp true    /usr/local/bin
  cd /usr/local/bin
  ln -s true ranlib (Install true as ranlib in the DG/ux system)
Usually giving -v,-V or --version will give you build info on all the tools in /usr/local/bin (try it).

**Look the discussion for gcc before you build (below)**

Now untarr the source tree: In /xf86work (or whatever name you gave to the big filesystem for the build)

  gzip -d < X335src-1.tar.gz | tar xvf -
  gzip -d < X335src-2.tar.gz | tar xvf -
  gzip -d < X335src-3.tar.gz | tar xvf -

(If you have X-3.3.3 do the same for the 3.3.3 sources and then apply the 3.3.5-DGUX source patch

  gzip -d < 3.3.3-3.3.5-DGUX.diff.gz | patch -p0 -E).

The directory xc in now present in your build filesystem.


Instructions for Building XFree86 on an Intel Pentium Aviion machine with DG/ux R4.20MU04 : GENERAL:
Previous: Whats new
Next: Configuration for the build: