03-13-2011
include files
Our admin has upgraded our OS solaris system to 5.11 but no more I can compile any trivial or non-trivial code. I'm trying to compile a trivial c++ program(a Helloworld program) but It gives error indicating that include files do not exist (in this trivial case <stdio.h>), it starts compiling but it gives this compile error: "error: stdio.h: No such file or directory". Something interesting is that GCC compiler automatically looks into these folders:
/sw/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.0.4/include/c++
/sw/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.0.4/include/c++/sparc-sun-solaris2.10
/sw/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.0.4/include/c++/backward
/sw/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.0.4/include
/usr/sfw/include
/usr/include
however stdio.h is in this directory:
/sw/gcc/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/include
It seems reasonable for GCC to look into the new 2.10 OS folder rather than the old 2.9 OS, but the include paths are not as populated as the old one, I tried to copy some of the include files from the old OS path into the new OS path, but it gave Permission denied, I also tried to compile it using the -I option but like a chain event it starts giving error for another series of .h files that stdio.h calls them.
Any help would be highly appreciated.
10 More Discussions You Might Find Interesting
1. Programming
Hi,
I am new to the unix networking.
I have written one client and server for UDP sockets..
I got the following errors while conpilation
I have include all include files.
Could some one help ...is there any other file to be included.....?
will the include files change on different unix... (3 Replies)
Discussion started by: reddyb
3 Replies
2. Shell Programming and Scripting
Hello
Simple question about tcsh , i like to make external file that some tcsh script
will read from him var=="some value"
how can i make the include in tcsh files?
Thanks (0 Replies)
Discussion started by: umen
0 Replies
3. Shell Programming and Scripting
I want to include all the subnet files under /etc/dhcpd/ to /etc/dhcpd.conf
so here is my content of dhcpd.conf
...
include "/etc/dhcpd/*";
however, the check-syntax reports syntax error, as they do not recognize the wildcard *, and display that " file /etc/dhcpd/* could not be found.
... (4 Replies)
Discussion started by: fredao
4 Replies
4. Programming
Hi there!
gcc seems not to include available files, see below:
What should I do?
Look forward to your reply/replies!
Thanks
Grahamb
In the source directory I enter:
#gcc -Wall -I/usr/include ./gtkdaq.c > ./out.log 2>&1
Response:
In file included from ./gtkdaq.c:3:... (2 Replies)
Discussion started by: grahamb
2 Replies
5. Solaris
Hey there,
This is gotta be a stupid question, if there ever was one, but I am learning a lot by asking such questions.
Now I am trying to build this humungous library, which has all kinds a dependencies, which I realize as it makes, and i download all those dependent libs.
The compilation is... (1 Reply)
Discussion started by: shriyer123
1 Replies
6. UNIX for Dummies Questions & Answers
what is the relationship between
/usr/include/sys/*.h
and
/usr/include/unistd.h ?
Fuctions in unistd.h are syscalls. Do the fuctions in sys/*.h call syscalls? (7 Replies)
Discussion started by: vistastar
7 Replies
7. Shell Programming and Scripting
I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions.
now the result is one huge .txt file with all the contents of other .txt files
how can i add a File Name as a comment before each file?
... (12 Replies)
Discussion started by: miss_dodi
12 Replies
8. HP-UX
I am trying to compile a file called PPFormatageMUT.c in which I have included header file which are at some other location but the point is that while compiling the file, it is throwing error saying that
error : no such file or directory
source code location:... (1 Reply)
Discussion started by: ezee
1 Replies
9. Shell Programming and Scripting
I wrote this korn script and ran into a hole. I can use find to exclude all the hidden directories and to use my include file/exclude files for running a full backup
find / -depth -ipath '/home/testuser/.*' -prune -o -print| grep -f include.mydirs | grep -v -f exclude.mydirs
but when I... (8 Replies)
Discussion started by: metallica1973
8 Replies
10. Programming
I have an implementation file tomog.cpp that implements a class called Tomog where I need to include its header file which resides in another place.
How can I best specify the include file? I would not like to do
#include "../../tomso/tomography/tomog.hpp"
I wish to do instead
... (3 Replies)
Discussion started by: kristinu
3 Replies
LEARN ABOUT OPENSOLARIS
acl_trivial
acl_trivial(3SEC) File Access Control Library Functions acl_trivial(3SEC)
NAME
acl_trivial - determine whether a file has a trivial ACL
SYNOPSIS
cc [ flag... ] file... -lsec [ library... ]
#include <sys/acl.h>
int acl_trivial(char *path);
DESCRIPTION
The acl_trivial() function is used to determine whether a file has a trivial ACL. Whether an ACL is trivial depends on the type of the ACL.
A POSIX draft ACL is trivial if it has greater than MIN_ACL_ENTRIES. An NFSv4/ZFS-style ACL is trivial if it either has entries other than
owner@, group@, and everyone@, has inheritance flags set, or is not ordered in a manner that meets POSIX access control requirements.
RETURN VALUES
Upon successful completion, acl_trivial() returns 0 if the file's ACL is trivial and 1 if the file's ACL is not trivial. If it could not be
determined whether a file's ACL is trivial, -1 is returned and errno is set to indicate the error.
ERRORS
The acl_trivial() function will fail if:
EACCES A file's ACL could not be read.
ENOENT A component of path does not name an existing file or path is an empty string.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
acl(5), attributes(5)
SunOS 5.11 6 Oct 2005 acl_trivial(3SEC)