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).
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:
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--->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-->gcc-dgux)
To come back to your old DG/ux gcc just change the above two links gcc-->gcc-dgux to gcc-->gcc-2 with the command: (in both the above two dirs)
rm gcc ln -s gcc-2 gcc
/usr/bin/gcc -v should report the version that you have. To build succesfully this version of X11 gcc is a *MUST*.
Dynamic loading Servers: Edit xc/config/cf/DGUX.cf and change the entry
#ifndef BuildDynamicLoading #define BuildDynamicLoading NO --->YES. #endif
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
make DESTDIR=ProjectRoot/lib install
(look below for install, ProjectRoot the location that you choose in the file xc/config/cf/DGUX.cf above)
So that all your new libXR6 libraries will go there. (do a cd ProjectRoot/lib to make sure).
Then go to your home dir and declare the path ProjectRoot/lib dir in you LD_LIBRARY_PATH (your profile) as:
LD_LIBRARY_PATH=ProjectRoot/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
Now just _rebuild_ A FULL XFree86-3.3.5 with the entry
#define BuildDynamicLoading YES in your DGUX.cf.
This time you will build _all_ XFree86-3.3.5 correctly.