daemontools make
Jason Parker/Cathy Crea <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
I'm working on installing a qmail toaster...
Installing daemon tools failed for me during the make step as follows:
#-----------------------------------------------------------------------
-----------------------
[sprint:qmail/admin/daemontools-0.76] sprint% tail install.output
./compile chkshsgr.c
chkshsgr.c: In function `main':
chkshsgr.c:10: warning: passing arg 2 of `getgroups' from incompatible
pointer type
chkshsgr.c:10: warning: passing arg 2 of `setgroups' from incompatible
pointer type
./load chkshsgr
ld: can't use -s with input files containg indirect symbols (output
file must contain at least global symbols, for maximum stripping use -x)
make: *** [chkshsgr] Error 1
Copying commands into ./command...
cp: compile/svscan: No such file or directory
[sprint:qmail/admin/daemontools-0.76] sprint%
#-----------------------------------------------------------------------
-----------------------
Anyone else seen or solved this problem? (I'm on OS X 10.2 but this
problem, if not seen by Linux users, would seem more related to the
compiler being used rather than the OS). I checked the compiler being
used and it is gcc.
It's not clear to me if the compile warnings are tripping up the load
or make step. I don't know what the message "... use -s with input
file..." is referring to other than it appears the load.
I looked at the source of chkshsgr.c (thankfully short) with my 12 year
C language rust below. The warnings suggests that passing x as an short
array pointer in this case may be a problem... (changing it to long did
not change the warnings).
Anyway... any help out there? (PS - where can I search the log or qmail
list archives I haven't stumbled on a link as yet...)
TIA,
-jason
/* Public domain. */
#include <unistd.h>
int main()
{
short x[4];
x[0] = x[1] = 0;
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
_exit(0);
}