From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,d0f8da7899689b40,start X-Google-Attributes: gid103376,public From: Andreas Jungmaier Subject: Gnat (3.10p) on RedHat Linux := Success :-) Date: 1998/05/21 Message-ID: #1/1 X-Deja-AN: 355301120 Content-Transfer-Encoding: QUOTED-PRINTABLE Mime-Version: 1.0 Reply-To: ajung@teisa.unican.es Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Universidad de Cantabria NEWS Server Newsgroups: comp.lang.ada Date: 1998-05-21T00:00:00+00:00 List-Id: Hello all ! Thanks to the contribution of David Hoos, I have _finally_ managed to get a working copy on my RedHat-5.0 based Linux system. Since this is not exactly a straight installation, I would like to repost the essence of the installation procedure, as there seem to be some more people out there, that use this setup : - First of you install the gnat-binary distribution for linux =09(gnat-3.10p-i386....bin.tar.gz) in standard places. Note that this will replace the gcc-2.7.2.3 that comes with the RedHat-5.0 distribution. However, you keep, of course, the=20 /usr/lib/gcc-lib/i386-linux/2.7.2.3/.. directory. - Then you need to change a line in the file(s) s-osinte.ads, which are located in /usr/lib/gcc-lib/i386-linux/2.7.2.1/adainclude Note that this is a link to either rts-fsu/adainclude, or to=20 rts-native/adainclude. You may change either, or both. Below you find the diff : 591c591,593 < type sigset_t is new unsigned_long; --- > SIGSET_NWORDS : constant :=3D 1024 / (unsigned_long'Size); > > type sigset_t is array (1 .. SIGSET_NWORDS) of unsigned_long; This is to fix a change in the sigset_t type, as used in the=20 RedHat-5.0 distribution (don=B4t ask me where). - go into the corresponding adalib-directory and execute the=20 following script, in order to recompile the libraries in the adainclude directory. -------------------------------- #!/bin/tcsh -f foreach f (../adainclude/*.ad[bs]) gcc -c -O2 -gnatpga -I- $f end -------------------------------- There were some errors in the compilation, but I ignored these ;-) - Then the execution of=20 =09ar ru libgnat.a *.o will create a new version of the libgnat.a library, that is supposed to work with RedHat-5.0. - Finally you need to set up symbolic links for some files from the directo= ry /usr/lib/gcc-lib/i386-linux/2.7.2.1/ to the corresponding files of the directory /usr/lib/gcc-lib/i386-linux/2.7.2.3/ thereby effectively removing the original files in ..../i386-linux/2.7.2.= 1/ The files for which that is done are : =09SYSCALLS.c.X =09cc1 =09cc1plus =09cpp =09crt* =09specs and the directory=20 =09include/ - Then go ahead and test your setup by compiling some code ! Thanks to all that helped, Andreas ------------------------------------------------------------------------- Andreas Jungmaier =09=09ajung@teisa.unican.es -------------------------------------------------------------------------