Skip to contentSkip to conversation

spasswd.c

DISCUSSION Dusty Hall 2 participants 2 messages Feb 16, 2003 SELinux security module

lore
Share & tools
lore

Dusty Hall

author
#0 lore raw

I'm having trouble compiling utils, specifically spasswd. I've read through the spasswd README and glanced at the Makefile but to no avail. First of all I'm compiling on Owl Linux with 2.2.22 if that makes a difference. I've got the new kernel built following the instructions and made it down to compiling utils but thats where I'm having problems. Here's the error I'm getting:

[root@localhost:~/downloads/selinux/utils/spasswd] make
cc -Wall -g -I/usr/local/selinux/include -L/usr/local/selinux/lib spasswd.c -o spasswd
spasswd.c: In function `sig_handler':
spasswd.c:47: warning: implicit declaration of function kill' spasswd.c: In function main':
spasswd.c:66: storage size of sa' isn't known spasswd.c:149: SA_SIGINFO' undeclared (first use in this function) spasswd.c:149: (Each undeclared identifier is reported only once spasswd.c:149: for each function it appears in.) spasswd.c:150: warning: implicit declaration of function sigaction' spasswd.c:150: SIGHUP' undeclared (first use in this function) spasswd.c:151: SIGINT' undeclared (first use in this function) spasswd.c:152: SIGQUIT' undeclared (first use in this function) spasswd.c:153: SIGPIPE' undeclared (first use in this function) spasswd.c:154: SIGTERM' undeclared (first use in this function) spasswd.c:66: warning: unused variable `sa'
make: *** [spasswd] Error 1

Any advise would be greatly appreciated.

Thanks,

-Dusty
draper7@<NOSPAM>slashseven.com

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · Dusty Hall

I'm having trouble compiling utils, specifically spasswd. I've read

[root@localhost:~/downloads/selinux/utils/spasswd] make cc -Wall -g -I/usr/local/selinux/include -L/usr/local/selinux/lib
spasswd.c -o spasswd spasswd.c: In function `sig_handler':
spasswd.c:47: warning: implicit declaration of function kill' spasswd.c: In function main':
spasswd.c:66: storage size of `sa' isn't known

Add the following near the top of spasswd.c:
#include <signal.h>

After the following line would be good:
#include <sys/types.h>

The problem was that when I added the kill() call for proxying signals I didn't add enough #include lines, it worked on my system and apparently on most people's systems too. Steve, can this be added to the CVS?

Probably OWL is using an older glibc which relies on getting these things right.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.