LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-27-2008, 08:49 AM   #1
dningale
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 15
Smile 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
 
Old 10-27-2008, 09:19 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 10-27-2008, 10:06 AM   #3
dningale
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks for reply

just wanted to study sudo...so it is........... :-)
 
Old 10-27-2008, 03:57 PM   #4
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
If you install the companion DVD it'll be under /opt/sfw/bin.
 
Old 11-03-2008, 11:57 PM   #5
raviux
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
Wink

the server on which you are trying to install sudo package is,
Rajan had already installed sudo on the same for CA troubleshooting.
 
Old 01-22-2011, 07:32 AM   #6
Moahmmad Sirajee
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Talking

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

Last edited by Moahmmad Sirajee; 01-22-2011 at 07:36 AM.
 
Old 01-22-2011, 08:13 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 ?
 
Old 01-25-2011, 06:10 PM   #8
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Unable to start lighttpd as sudo on solaris 9 rajaniyer123 Solaris / OpenSolaris 7 05-11-2008 02:09 AM
Sudo help on Solaris 8 nuganen Solaris / OpenSolaris 2 04-03-2008 04:10 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Long Shot Question - Solaris 9 / Sudo / TSM Server. FragInHell Solaris / OpenSolaris 2 11-25-2004 08:05 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration