<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>GENERAL:          </TITLE>
</HEAD>
<BODY BGCOLOR="#efefef" TEXT="black" LINK="blue" VLINK="#551A8B" ALINK="red">

<A HREF="DGux.html"><EM>Instructions for Building XFree86 on an Intel Pentium Aviion machine with DG/ux R4.20MU04</EM></A>
 <b>:</b> <EM>GENERAL:          </EM><BR>
<b>Previous:</b> <A HREF="DGux1.html"><EM>Whats new </EM></A><BR>
<b>Next:</b> <A HREF="DGux3.html"><EM>Configuration for the build:</EM></A>


<HR NOSHADE>
  <H2><A NAME="2"></A>2. GENERAL:          </H2>

<p>Get from ftp.xfree86.org the XFree 3.3.x source code:
<pre>
  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
</pre>
</p>
<p>Get also the contributed X software
<pre>
  cd /pub/XFree86/3.3.5/source
  X335contrib.tgz
</pre>
</p>
<p>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 </p>
<p>
<pre>
  3.3.3-3.3.5-DGUX.diff.gz 
  X335contrib-DGUX.diff.gz (patch for the contrib software).
</pre>
</p>
<p>to avoid downloading all the source code again.</p>
<p>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...</p>
<p>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).</p>
<p>Using a big filesytem (I use a virtual disk "xf86work" mounted on
/xf86work of size 1400000 blocks) copy the source as:</p>
<p>
<pre>
  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
</pre>
</p>
<p>(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)</p>
<p>And maybe the contributed software:
<pre>
  cp  X335contrib.tgz           /xf86work 

  (cp  X335contrib-DGUX.diff.gz  /xf86work). 
</pre>
</p>
<p>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:
<pre>
  gzip -d &lt; BuildXtools.tar.gz | tar xvf -
</pre>
</p>
<p>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.</p>
<p>What you need is like that:
(vi .profile)</p>
<p>
<pre>
  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
</pre>
</p>
<p>then exit and re-login so that your new modified .profile will take effect.</p>
<p>Now do the following:
<pre>
  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)
</pre>

Usually giving -v,-V  or --version will give you build info on all 
the tools in /usr/local/bin (try it).</p>
<p>   
**Look the discussion for gcc before you build (below)**</p>
<p>Now untarr the source tree:
In /xf86work (or whatever name you gave to the big filesystem for the build)
<pre>
  gzip -d &lt; X335src-1.tar.gz | tar xvf -
  gzip -d &lt; X335src-2.tar.gz | tar xvf -
  gzip -d &lt; X335src-3.tar.gz | tar xvf -
</pre>
</p>
<p>(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 </p>
<p>
<pre>
  gzip -d &lt; 3.3.3-3.3.5-DGUX.diff.gz | patch -p0 -E).
</pre>
</p>
<p>The directory xc in now present in your build filesystem.</p>


 <HR NOSHADE>
<A HREF="DGux.html"><EM>Instructions for Building XFree86 on an Intel Pentium Aviion machine with DG/ux R4.20MU04</EM></A>
 <b>:</b> <EM>GENERAL:          </EM><BR>
<b>Previous:</b> <A HREF="DGux1.html"><EM>Whats new </EM></A><BR>
<b>Next:</b> <A HREF="DGux3.html"><EM>Configuration for the build:</EM></A>



</BODY>
</HTML>
