Installing gcc

Hi all

I'm trying to install the latest version of gcc but I keep getting this message on make;

gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I./../zlib -I./../include -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -c jartool.c
jartool.c:234: getopt.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `jartool.o'
Current working directory /tmp/gcc-3.3.4-20040530/fastjar
*** Error code 1
make: Fatal error: Command failed for target `all-fastjar'

Any advice would be appreciated.
Regards
Monique

Thanks for your response

The ff is the build lines from my Makefile;

# This file was generated automatically by configure. Do not edit.
VPATH = .
links =
host_alias = sparc-sun-solaris2.8
host_cpu = sparc
host_vendor = sun
host_os = solaris2.8
host_canonical = sparc-sun-solaris2.8
target_alias = sparc-sun-solaris2.8
target_cpu = sparc
target_vendor = sun
target_os = solaris2.8
target_canonical = sparc-sun-solaris2.8
build_alias = sparc-sun-solaris2.8
build_cpu = sparc
build_vendor = sun
build_os = solaris2.8
build_canonical = sparc-sun-solaris2.8
host_makefile_frag = mh-frag
enable_shared = no
enable_threads = no
enable_version_specific_runtime_libs = no
gcc_version_trigger = /tmp/gcc-3.3.4-20040530/gcc/version.c
gcc_version = 3.3.4

I then tried using both make and make install, both produce errors. I do not have gmake. I've read the install guide and tried searching for the error which yields nada. Is there anything else you suggest?

Ta
Monique

As another option, you can get gcc precompiled for Solaris 8 at www.sunfreeware.com. They have 3.3.2 and 3.4.0.

Thanks very much guys for your help. It seems the main problem with installing gcc is binutils. Anyway getting all those tarballs I swamped my box so it's back to the drawing board tomoro. Had enough today. Will try your suggestion Perderabo.

=)
Monique