Compiling gcc-2.95.3 under Solaris 2.5.1
cmeli@condor.cis.um.edu.mt
cmeli@condor.cis.um.edu.mt
Sun Oct 28 06:12:00 GMT 2001
On a Sparc running Solaris 2.5.1 and gcc 2.95.2 I decided to install
gcc-2.95.3 in a separate directory (to keep a recent gcc-2.95.3 available),
and I planned to install gcc-3.0.2 afterwards.
So I installed gcc-2.95.3 though I had these problems which I managed to fix.
I'm listing them just in case anyone has a similar problem.
I build in a seperate directory as recommended.
<path to gcc source>/configure --languages="c,c++" --prefix=/usr/local/gcc2
I used this make command:
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
Basically I got an error when compiling gcc-2.95.3, undefined LC_TIME.
The error given was in <gcc source path>/texinfo/makeinfo/makeinfo.c
I fixed it by editing this file - I added #include "locale.h" after
#include "getopt.h"
Can anyone help me understand why this include file was not listed as it
should have been? Is it a problem with my system or some old gcc-2.95.3 bug?
I'm asking as I had some similar errors with gcc-3.0.2 which I will post
about in another email.
Regards,
Clyde Meli
More information about the Gcc-help
mailing list