comp.lang.ada
 help / color / mirror / Atom feed
From: Eugene Fokin <elf@solvo.spb.su>
Subject: Re: gnat and RedHat 5.1
Date: 1998/11/03
Date: 1998-11-03T00:00:00+00:00	[thread overview]
Message-ID: <363eb084.0@grace.solvo.spb.su> (raw)
In-Reply-To: ZOpQSqsA#GA.198@samson.airnet.net

David C. Hoos, Sr. wrote:

>>At the end, neither gnatmake neither gcc worked !!!
>>please help me

> [...skipped...]
> A number of people have found that this solution works for them.  The
> cause of the segmentation fault is the change of the size of sigset_t
> from 32 bits to 1024 bits.
> [...skipped...]

I can tell how I forced my gcc/gnat to work together.
I have redhat-like distribution, and I've got the egcs-1.0.3a source
(recommended). Also I've got the gnat-3.10p source.

1. Unpack egcs sources.
2. Unpack subdir. ".../src/ada" from gnat source into subdir. ".../gcc/"
   under egcs top dir. source.
3. Go into egcs top dir. source.
4. Apply next patch:

----- start of gnat-3.10p.glibc.patch -----
*** gcc/ada/5iosinte.ads.orig	Thu Aug 14 08:05:18 1997
--- gcc/ada/5iosinte.ads	Tue Oct 27 17:59:01 1998
***************
*** 588,594 ****
  
  private
  
!    type sigset_t is new unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
--- 588,594 ----
  
  private
  
!    type sigset_t is array (1 .. 32) of unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
*** gcc/ada/5losinte.ads.orig	Thu Aug 14 08:05:06 1997
--- gcc/ada/5losinte.ads	Tue Oct 27 17:59:02 1998
***************
*** 648,654 ****
  
  private
  
!    type sigset_t is new unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
--- 648,654 ----
  
  private
  
!    type sigset_t is array (1 .. 32) of unsigned_long;
  
     --  In Solaris 2.4 the component sa_handler turns out to
     --  be one a union type, and the selector is a macro:
*** gcc/ada/a-init.c.orig	Thu Aug 14 08:03:40 1997
--- gcc/ada/a-init.c	Tue Oct 27 17:59:02 1998
***************
*** 79,84 ****
--- 79,86 ----
    __gl_adafinal_ptr = adafinal_ptr;
  }
  
+ #define NULL 0
+ 
  #if defined (MSDOS)
  #include <stdio.h>

----- end  of  gnat-3.10p.glibc.patch -----

5. Do egcs configure procedure.
6. Do make bootstrap
7. Go into ".../gcc" subdir. and perform all steps from
   README.BUILD file from gnat-3.10p source distribution, like:
   make gnattools, make gnatlib, etc.
8. Go back up to top dir. in egcs source.
9. Do make install.

Good luck!
-- 
-Eugene




  reply	other threads:[~1998-11-03  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-28  0:00 gnat and RedHat 5.1 Dominique Jean-Prost
1998-10-28  0:00 ` David C. Hoos, Sr.
1998-11-03  0:00   ` Eugene Fokin [this message]
1998-10-28  0:00 ` Samuel Tardieu
1998-10-28  0:00   ` Dale Pontius
1998-10-29  0:00 ` Jerry van Dijk
1998-11-12  0:00 ` Aidan Skinner
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox