* gcc, g++, libg++, g77
@ 1997-05-29 4:00 Art Werschulz
1997-06-05 4:00 ` Edouard Poor
0 siblings, 1 reply; 2+ messages in thread
From: Art Werschulz @ 1997-05-29 4:00 UTC (permalink / raw)
Hi.
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?
Thanks.
--
Art Werschulz (8-{)} "Metaphors be with you." -- bumper sticker
GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?
Internet: agw@dsm.fordham.edu <a href="http://dsm.fordham.edu/~agw/">WWW</a>
ATTnet: Fordham U. (212) 636-6325, Columbia U. (212) 939-7061
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: gcc, g++, libg++, g77
1997-05-29 4:00 gcc, g++, libg++, g77 Art Werschulz
@ 1997-06-05 4:00 ` Edouard Poor
0 siblings, 0 replies; 2+ messages in thread
From: Edouard Poor @ 1997-06-05 4:00 UTC (permalink / raw)
In article <uevi424d10.fsf@erdos.dsm.fordham.edu>, Art Werschulz
<agw@erdos.dsm.fordham.edu> 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 <ctype.h> that includes <sys/localedef.h> that
includes <sys/lc_core.h> that includes <reg_types.h> 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
<ctype.h> to something simpler by defining some symbols that <standard.h>
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 <e.poor@auckland.ac.nz> */
#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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-06-05 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-29 4:00 gcc, g++, libg++, g77 Art Werschulz
1997-06-05 4:00 ` Edouard Poor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox