LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   installing sudo in solaris 10 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/installing-sudo-in-solaris-10-a-679329/)

dningale 10-27-2008 08:49 AM

installing sudo in solaris 10
 
I am installing sudo in solaris 10

bash-3.00# uname -a
SunOS Audible 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V240

I am follwoing installation steps from "http://www.kempston.net/solaris/sudo.html"

I am getting error while doing make command

error is
bash-3.00# make
gcc -c -I. -I. -O2 -D__EXTENSIONS__ -D_PATH_SUDOERS=\"/etc/sudoers\" -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440 check.c
In file included from /usr/include/sys/wait.h:24,
from /usr/include/stdlib.h:22,
from check.c:31:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
from /usr/include/sys/wait.h:25,
from /usr/include/stdlib.h:22,
from check.c:31:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from /usr/include/stdlib.h:22,
from check.c:31:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from check.c:55:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1

please help
Thanks

jlliagre 10-27-2008 09:19 AM

There are already packaged sudo binaries available for Solaris, at sunfreeware for example.
Installing sudo is often unnecessary as Solaris provides natively RBAC which has most sudo has and has several useful things sudo don't.

dningale 10-27-2008 10:06 AM

Thanks for reply

just wanted to study sudo...so it is........... :-)

mijohnst 10-27-2008 03:57 PM

If you install the companion DVD it'll be under /opt/sfw/bin.

raviux 11-03-2008 11:57 PM

the server on which you are trying to install sudo package is,
Rajan had already installed sudo on the same for CA troubleshooting.

Moahmmad Sirajee 01-22-2011 07:32 AM

http://www.kempston.net/solaris/sudo.html is not there
Thanks.

jlliagre 01-22-2011 08:13 AM

That's the fate of most web pages, eventually. Anyway, the OP failed to achieve what (s)he wanted following the instructions there, so what's the point ?

ADxD_7 01-25-2011 06:10 PM

Ya if you really want to compile sudo from source then to go the sudo website ( http://www.gratisoft.us/sudo/ ) and read what dependencies it needs and compile them from source....OR do it WAY easy and just go to sunfreeware.com and download all the dependencies and sudo itself as Solaris packages ...... if you are just trying to get experience with compiling then your question is in the wrong place...im sure the below error is from a missing dependency or a related issue


All times are GMT -5. The time now is 12:45 PM.