From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8bd442194386fdea X-Google-Attributes: gidfee84,public From: Alexander Kogan Subject: Re: libg++, groff1.11 Date: 1997/12/16 Message-ID: <34970684.41C6@ptc.com>#1/1 X-Deja-AN: 298834226 References: <3496420F.41C6@ax3301.biologie.Uni-Osnabrueck.DE> MIME-Version: 1.0 To: Siggi Engelbrecht Content-Type: multipart/mixed; boundary="------------167E2781446B" Newsgroups: comp.unix.osf.osf1 This is a multi-part message in MIME format. --------------167E2781446B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Siggi Engelbrecht wrote: > > Despite an apparently intact gcc 2.7.2.3. on my alpha (Dec > 3000-300LX/Digital Unix 4.0B) I neither get libg++ nor groff 1.11 to > compile. Any suggestions are welcome. Take a look at the letter from e.poor@auckland.ac.nz (Edouard Poor) in the attachment. I don't know about 2.7.2.3, but it worked for me for 2.7.2.2 Good luck! -- _______________________________________________________________________ Alexander B. Kogan Parametric Technology Corporation E-mail: kogan@ptc.com 128 Technology Drive, Waltham MA 02154 Voice: (617) 398-5172 Fax: (617) 398-5633 --------------167E2781446B Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from poster.ptc.com by andretti (5.65v3.2/1.1.10.5/15Nov96-0336PM) id AA14083; Mon, 9 Jun 1997 14:47:04 -0400 Received: from int-mail.ptc.com by poster (5.x/SMI-SVR4-NN) id AA02021; Mon, 9 Jun 1997 14:49:50 -0400 Received: from andretti ([199.6.23.148]) by int-mail.ptc.com (Netscape Mail Server v2.0) with SMTP id AAA15676 for ; Mon, 9 Jun 1997 14:41:57 -0400 Sender: kogan@poster.ptc.com Message-Id: <339C4FA4.3F54@ptc.com> Date: Mon, 09 Jun 1997 14:47:00 -0400 From: Alexander Kogan Organization: Parametric Technology Corporation X-Mailer: Mozilla 3.01Gold (X11; I; OSF1 V4.0 alpha) Mime-Version: 1.0 To: kogan Subject: [Fwd: Re: gcc, g++, libg++, g77] Content-Type: message/news Content-Transfer-Encoding: 7bit Content-Disposition: inline From: e.poor@auckland.ac.nz (Edouard Poor) Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 Subject: Re: gcc, g++, libg++, g77 Date: Thu, 05 Jun 1997 11:24:42 +1200 Organization: The University ofAuckland Message-ID: References: NNTP-Posting-Host: edouard.tcs.auckland.ac.nz Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.2.0b13 Path: news.ptc.com!ix.netcom.com!www.nntp.primenet.com!nntp.primenet.com!news.maxwell.syr.edu!howland.erols.net!newsfeed.internetmci.com!in3.uu.net!128.250.1.21!munnari.OZ.AU!comp.vuw.ac.nz!news.hn.netlink.co.nz!auckland.ac.nz!e.poor Xref: news.ptc.com comp.unix.osf.misc:1455 comp.unix.osf.osf1:9288 In article , Art Werschulz wrote: > Hi. Gidday. > We are running DU 4.0 on a DEC AlphaServer 1000. Has anybody managed > to compile working versions of gcc, g++, libg++, and g77 for such a > setup? gcc, g++ and libg++, yes, but not out of the box. g77 I havn't tried. After the standard "./configure" and following the instructions in the "INSTALL" file, I got to making the stage 2 compiler when I had an error from in the file "gcc-2.7.2.2/cp/errfn.c" about the redeclaration of sprintf(). Somehow the system stdio.h (or maybe the fixed version) is getting included at this point, and causing the problem. The easiest fix is the change the source file to remove the prototype. Things should compile OK at that point. libg++ was a little trickier -- the make process fails when trying to compile the file "libg++-2.7.2/libg++/src/Regex.cc". The problem is "Regex.cc" includes that includes that includes that includes which clashes with the types in the regular expression the "Regex.cc" is using (i.e. gnu's "rx.h"). The simplest way I found to deal with that was to change the behaviour of to something simpler by defining some symbols that can take note of. In my case adding the following three lines to the beginning of "Regex.cc" (before any #include directives are processed) fixed the problem: /* fix screwy includes -- modified by Edouard Poor */ #define _POSIX_SOURCE #define _ANSI_C_SOURCE Now this changes the locale specific behaviour to not use the code specified within the conditional compilation section goverend by the _XOPEN_SOURCE symbol -- whether there are any hidden problems for people who depend on strange locales within the Regex class, I don't know, although I guess there is a vanishingly small chance that there is. I'm not to fussed about it though. I hope this helps you, and anyone else who is having the same problems I was. > Thanks. Cheers, Edouard. -- Edouard Poor --------------167E2781446B--