This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compiling gcc-2.95.3 under Solaris 2.5.1
- To: gcc-help at gcc dot gnu dot org
- Subject: Compiling gcc-2.95.3 under Solaris 2.5.1
- From: cmeli at condor dot cis dot um dot edu dot mt
- Date: 28 Oct 2001 17:14:18 -0000
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