<!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>DISCUSSION ABOUT GCC</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>DISCUSSION ABOUT GCC</EM><BR>
<b>Previous:</b> <A HREF="DGux3.html"><EM>Configuration for the build:</EM></A><BR>
<b>Next:</b> <A HREF="DGux5.html"><EM>BUILD </EM></A>


<HR NOSHADE>
  <H2><A NAME="4"></A>4. DISCUSSION ABOUT GCC</H2>
<p>There are so much things that I can say for the system gcc of
DG/ux. If I was keeping track for the programs that fail using
this compiler I will certainly have fill a book (conveniently 
for the DG of course). 
But my work is not to correct bugs for the DG/ux compiler or
anything else) , and in particular to collect reports for
the genius of DG.
(DG:Sorry guys nothing personal. I am a pure Mathematician , 
I am doing all this work for pleasure, I dont want any money 
from DG or anybody else , I am not looking to become a employer
of DG,and I am NOT a trouble shooter of the DG/ux in general.
But maybe some times if you help I may be able to help you also).</p>
<p>What I wanted to do is to build X11. Thats why you will find 
in BuildXtools a new gcc. This gcc is build for DG/ux R4.20MU02.
so you have to upgrade your DG/ux OS version to the above.
But it is solid to build not only X11 but whatever else you want.
DO NOT use gcc of DG/ux. If you do I cannot tell you anything 
about any problems that you have.
To complete the installation of this new gcc do the following:</p>
<p>
<pre>
  cp -r /usr/local/gcc-dgux  /usr/opt/sdk/sde/ix86dgux/usr/lib 
  cd  /usr/opt/sdk/sde/ix86dgux/usr/lib
  rm gcc 
  ln -s gcc-dgux gcc   (set link gcc---&gt;gcc-dgux)
  
  cd /usr/local
  cp -r /usr/local/gcc-dgux  /usr/sde/ix86dgux/usr/lib
  cd  /usr/sde/ix86dgux/usr/lib
  rm gcc 
  ln -s gcc-dgux gcc  (set link gcc--&gt;gcc-dgux)
</pre>
</p>
<p>To come back to your old DG/ux gcc just change the above two
links gcc--&gt;gcc-dgux
to gcc--&gt;gcc-2
with the command: (in both the above two dirs)
<pre>
  rm gcc
  ln -s gcc-2 gcc 
</pre>
</p>
<p>/usr/bin/gcc -v should report the version that you have.
To build succesfully this version of X11 gcc is a *MUST*.</p>
<p>Dynamic loading Servers:
Edit xc/config/cf/DGUX.cf and change the entry</p>
<p>#ifndef BuildDynamicLoading
#define BuildDynamicLoading NO ---&gt;YES.
#endif</p>
<p>Remeber when you build you will see lots of errors and the servers
will NOT build! This is because the dynamic linker doesnt know
the locatios of the newly created R6 libX's.
So after the (seem faulty) building do a   </p>
<p>make DESTDIR=ProjectRoot/lib install</p>
<p>(look below for install, ProjectRoot the location that you choose
in the file xc/config/cf/DGUX.cf above) </p>
<p>So that all your new libXR6 libraries will go there.
(do a cd ProjectRoot/lib to make sure).</p>
<p>Then go to your home dir and declare the path ProjectRoot/lib dir 
in you LD_LIBRARY_PATH (your profile) as:</p>
<p>LD_LIBRARY_PATH=ProjectRoot/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH</p>
<p>Then relogin!</p>
<p>Now just _rebuild_ A FULL XFree86-3.3.5 with the entry</p>
<p>#define BuildDynamicLoading YES in your DGUX.cf. </p>
<p> 
This time you will build _all_ XFree86-3.3.5 correctly.</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>DISCUSSION ABOUT GCC</EM><BR>
<b>Previous:</b> <A HREF="DGux3.html"><EM>Configuration for the build:</EM></A><BR>
<b>Next:</b> <A HREF="DGux5.html"><EM>BUILD </EM></A>



</BODY>
</HTML>
