OS: Solaris 10
Compiler: Sun Studio 11
A machine in our environment was recently re-imaged and installed with
Solaris 10. In addition, Sun Studio 11 was installed.
I attempted to compile hello.cpp (Hello World) and received the
following errors:
> CC -c hello.cpp
"/opt/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h", line 40: Error:
Could not open include file<stddef.h>.
"/opt/SUNWspro/prod/include/CC/Cstd/./string", line 41: Error: Could
not open include file<ctype.h>.
"/opt/SUNWspro/prod/include/CC/Cstd/./string", line 77: Error: Could
not open include file<wchar.h>.
"/opt/SUNWspro/prod/include/CC/Cstd/./string", line 80: Error: Could
not open include file<wctype.h>
"/opt/SUNWspro/prod/include/CC/Cstd/./memory", line 55: Error: Could
not open include file<stdlib.h>
"/opt/SUNWspro/prod/include/CC/Cstd/./memory", line 56: Error: Could
not open include file<limits.h>
..
<snip...you get the idea>
Looks like a standard C compiler not installed. Any ideas?
|
|
0
|
|
|
|
Reply
|
zinc1oxide (5)
|
9/6/2007 4:27:05 AM |
|
zinc1oxide@gmail.com wrote:
> OS: Solaris 10
> Compiler: Sun Studio 11
>
> A machine in our environment was recently re-imaged and installed with
> Solaris 10. In addition, Sun Studio 11 was installed.
>
Why not Studio 12?
> I attempted to compile hello.cpp (Hello World) and received the
> following errors:
>
>> CC -c hello.cpp
> "/opt/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h", line 40: Error:
> Could not open include file<stddef.h>.
>
> Looks like a standard C compiler not installed. Any ideas?
>
More like the system had an "end user" install, rather than developer or
full distribution.
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
Ian
|
9/6/2007 4:38:58 AM
|
|
On Sep 6, 12:38 am, Ian Collins <ian-n...@hotmail.com> wrote:
> zinc1ox...@gmail.com wrote:
> > OS: Solaris 10
> > Compiler: Sun Studio 11
>
> > A machine in our environment was recently re-imaged and installed with
> > Solaris 10. In addition, Sun Studio 11 was installed.
>
> Why not Studio 12?
>
> > I attempted to compile hello.cpp (Hello World) and received the
> > following errors:
>
> >> CC -c hello.cpp
> > "/opt/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h", line 40: Error:
> > Could not open include file<stddef.h>.
>
> > Looks like a standard C compiler not installed. Any ideas?
>
> More like the system had an "end user" install, rather than developer or
> full distribution.
>
> --
> Ian Collins.
Not Studio 12 because the software I need to compile is only qualified
for Studio 11.
Yes, sounds like an "end user" install. I'll follow up.
thanks.
|
|
0
|
|
|
|
Reply
|
zinc1oxide
|
9/6/2007 4:53:27 AM
|
|
zinc1oxide@gmail.com wrote:
> OS: Solaris 10
> Compiler: Sun Studio 11
>
> A machine in our environment was recently re-imaged and installed with
> Solaris 10. In addition, Sun Studio 11 was installed.
>
> I attempted to compile hello.cpp (Hello World) and received the
> following errors:
>
>
>>CC -c hello.cpp
>
> "/opt/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h", line 40: Error:
> Could not open include file<stddef.h>.
> "/opt/SUNWspro/prod/include/CC/Cstd/./string", line 41: Error: Could
> not open include file<ctype.h>.
> "/opt/SUNWspro/prod/include/CC/Cstd/./string", line 77: Error: Could
> not open include file<wchar.h>.
> "/opt/SUNWspro/prod/include/CC/Cstd/./string", line 80: Error: Could
> not open include file<wctype.h>
> "/opt/SUNWspro/prod/include/CC/Cstd/./memory", line 55: Error: Could
> not open include file<stdlib.h>
> "/opt/SUNWspro/prod/include/CC/Cstd/./memory", line 56: Error: Could
> not open include file<limits.h>
> .
>
> <snip...you get the idea>
>
> Looks like a standard C compiler not installed. Any ideas?
>
Do stddef.h, ctype.h, wchar.h, wctype.h, stdlib.h and limits.h EXIST on
your system? If they exist, have you checked the permissions on the
files themselves and the path to those files?
When Solaris was installed, did you do the FULL (SUNWCxall) install?
It's possible to install Solaris without support for the development
tools and some people install it that way for reasons good or bad!
Among the good reasons would be to prevent people from making
unauthorized modifications to the system or the application. Another
good reason might be to save disk space.
|
|
0
|
|
|
|
Reply
|
Richard
|
9/6/2007 1:54:09 PM
|
|
On Sep 6, 9:54 am, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:
> zinc1ox...@gmail.com wrote:
> > OS: Solaris 10
> > Compiler: Sun Studio 11
>
> > A machine in our environment was recently re-imaged and installed with
> > Solaris 10. In addition, Sun Studio 11 was installed.
>
> > I attempted to compile hello.cpp (Hello World) and received the
> > following errors:
>
> >>CC -c hello.cpp
>
> > "/opt/SUNWspro/prod/include/CC/Cstd/rw/stddefs.h", line 40: Error:
> > Could not open include file<stddef.h>.
> > "/opt/SUNWspro/prod/include/CC/Cstd/./string", line 41: Error: Could
> > not open include file<ctype.h>.
> > "/opt/SUNWspro/prod/include/CC/Cstd/./string", line 77: Error: Could
> > not open include file<wchar.h>.
> > "/opt/SUNWspro/prod/include/CC/Cstd/./string", line 80: Error: Could
> > not open include file<wctype.h>
> > "/opt/SUNWspro/prod/include/CC/Cstd/./memory", line 55: Error: Could
> > not open include file<stdlib.h>
> > "/opt/SUNWspro/prod/include/CC/Cstd/./memory", line 56: Error: Could
> > not open include file<limits.h>
> > .
>
> > <snip...you get the idea>
>
> > Looks like a standard C compiler not installed. Any ideas?
>
> Do stddef.h, ctype.h, wchar.h, wctype.h, stdlib.h and limits.h EXIST on
> your system? If they exist, have you checked the permissions on the
> files themselves and the path to those files?
>
> When Solaris was installed, did you do the FULL (SUNWCxall) install?
>
> It's possible to install Solaris without support for the development
> tools and some people install it that way for reasons good or bad!
> Among the good reasons would be to prevent people from making
> unauthorized modifications to the system or the application. Another
> good reason might be to save disk space.
Yes, the problem was the install. The system did not have the proper
development packages available which caused the compile errors. Once
the development packages were installed, everything compiled.
thanks.
|
|
0
|
|
|
|
Reply
|
zinc1oxide
|
9/13/2007 3:44:17 PM
|
|
|
4 Replies
538 Views
(page loaded in 0.083 seconds)
|