>Hi,
>
>I am trying to compile the cmd directory without using the make utility. I am
>using the Sun Studio cc compiler and want to know the minimum required
>infoprmation to compile the commands such as head, tail, ps etc. I am running
>into two issues.
>
>1) When I try to compile ps.c, it complains that under priv.h, it cannot find
>priv_names.h file. I checked the source browser and indeed the file does not
>exist
It's generated by the make process - see usr/src/uts/common/sys/Makefile.
There are several such generated includes - generally, you need to do a
"make install_h" in usr/src/uts before attempting to build anything else.
And if you don't use make, you need to point your compiler at the
proto/root_$ARCH directory wrt. to looking for the proper include files.
The installed system's headers may not fit.
>
>2) I commented the above line and then tried to compile . some of the sommands
>such as head, tail etc compiled fine. For process specific cmds such as ptree,
>ps, it asks during link that getprojbyid symbol cud not be found. Anyone has
>any
>idea which librarieds I need to link with?
At least libproject and libproc. Maybe more. Depends on the missing symbols.
To find out, run a full opensolaris build and check the logfiles. That's
actually quicker than me looking these things up :)
>
>For thoise questioning my sanity, I am about to teach an undergrad course in OS
>and would like to give my students assignments based on the code. Since it is
>an
>undergrad class, I want them to be able to do simple things without getting
>into
>make issues.
Hmm - the OpenSolaris sourcetree might be a better exercise in "understanding
make
issues" ... it's really not designed to be built "out of context".
Best regards,
FrankH.
>
>
>Any help would be greatly appreciated. You can also email the response to
>[EMAIL PROTECTED]
>
>Thanks,
>
>Adil
>This message posted from opensolaris.org
>_______________________________________________
>opensolaris-code mailing list
>[email protected]
>https://opensolaris.org:444/mailman/listinfo/opensolaris-code
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code