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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, T_FILL_THIS_FORM_SHORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,577f08131449e3cc X-Google-Attributes: gid103376,public From: Eugene Fokin Subject: Re: gnat and RedHat 5.1 Date: 1998/11/03 Message-ID: <363eb084.0@grace.solvo.spb.su>#1/1 X-Deja-AN: 407845778 Distribution: su References: <3637161F.4638@vegaserv.univ-fcomte.fr> Organization: SOLVO Ltd. User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (Linux/2.0.33 (i586)) Newsgroups: comp.lang.ada Date: 1998-11-03T00:00:00+00:00 List-Id: 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 ----- 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