Summary: problem with GCC and compiling

From: Ju-Lien Lim (
Date: Wed Jan 14 1998 - 07:51:13 CST

My thanks to Casper Dik <casper@holland.Sun.COM> who
wrote the following:

Bad gcc installation or missing SUNWhea package.
On 2.5.1, the sys/feature_test.h exists in
/usr/include; do you have many files under

It turned out I only had one file (sx.h) in
/usr/include/sys, and I have since corrected this

Original Question:
Hi... I'm running GCC on Sol. 2.5.1 on a
Sparc 20, and I've tried building GCC from scratch as
well as loaded a few different binaries, but no
matter what, when I try to compile a simple c program
(test.c - I've included it below...), I get the
following message:

$ gcc test.c

In file included from test.c:1:

sys/feature_tests.h: No such file or directory

Anyway, I've about 10 machines running GCC either
built from the source or from binaries I downloaded,
but they work fine. I checked the other machines
also for feature_tests.h but don't seem to find this
library on any of the machines. Can anyone tell me
why this isn't working for me?!?

Thanks again!

Get your free address at

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:29 CDT