Mailing List Archive

conserver solaris 10 complie error
Hi,

Can anyone help with the below compile error.

Thanks David

$ make
for n in conserver console conserver.cf; do \
( cd $n && make all ) || exit 1; \
done
make[1]: Entering directory `/tmp/conserver-8.1.13/conserver'
gcc -O -I.. -I.. -I. -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -c -o group.o group.c
group.c: In function `ReapVirt':
group.c:1497: error: `WNOHANG' undeclared (first use in this function)
group.c:1497: error: (Each undeclared identifier is reported only once
group.c:1497: error: for each function it appears in.)
group.c:1497: error: `WUNTRACED' undeclared (first use in this function)
group.c: In function `Kiddie':
group.c:4143: warning: passing arg 2 of `SimpleSignal' from incompatible pointer type
group.c:4144: warning: passing arg 2 of `SimpleSignal' from incompatible pointer type
group.c:4146: warning: passing arg 2 of `SimpleSignal' from incompatible pointer type
group.c:4149: warning: passing arg 2 of `SimpleSignal' from incompatible pointer type
group.c:4152: warning: passing arg 2 of `SimpleSignal' from incompatible pointer type
group.c:4155: warning: passing arg 2 of `SimpleSignal' from incompatible pointer type
make[1]: *** [group.o] Error 1
make[1]: Leaving directory `/tmp/conserver-8.1.13/conserver'
make: *** [all] Error 1


---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
Re: conserver solaris 10 complie error [ In reply to ]
i just compiled on solaris 10 x86 using gcc without any issues. here
are a couple of questions:

1) did you run ./configure on that machine or another? (i assume that
one since it's all in /tmp)

2) did configure find /usr/include/sys/wait.h and set "#define
HAVE_SYS_WAIT_H 1" in config.h (in the top-level directory)?

3) do you have a /usr/include/sys/wait.h on the box?

if all those are true, then perhaps your gcc installation isn't quite
right? or, do you have another sys/wait.h being picked up from another
directory or something (that gcc finds)?

it should "just work"...i hope one of these things help.

Bryan
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users