Compiler warnings when compiling daemontools (like: warning: passing arg 2 of `getgroups' from incompatible pointer type)
"Hans-Christian Jehg" <[email protected]> Thu, 14 Jul 2005 15:55:13 +0200
| Newsgroups | gmane.comp.djb.package |
|---|---|
| Organization | HoBSoft |
| Message-ID | <[email protected]> |
Hi I'm receiving these compiler warnings when installing the package. Note that I did only the compile part to not disrupt my system. I have already applied the error.h patch, or it wouldn't compile at all. Has anyone got any good ideas? Do you get the same? Systype are: linux-2.6.3-7mdk-:i386-:-:genuineintel-00000f34-bfebfbff-:- Best regards HC [root@server daemontools-0.76]# package/compile Linking ./src/* into ./compile... Compiling everything in ./compile... ./compile byte_chr.c ./compile byte_copy.c ./compile byte_cr.c ./compile byte_diff.c ./compile byte_rchr.c ./compile fmt_uint.c ./compile fmt_uint0.c ./compile fmt_ulong.c ./compile scan_ulong.c ./compile str_chr.c ./compile str_diff.c ./compile str_len.c ./compile str_start.c ./makelib byte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o \ byte_rchr.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o str_chr.o \ str_diff.o str_len.o str_start.o ./compile envdir.c ./compile alloc.c ./compile alloc_re.c ./compile buffer.c ./compile buffer_0.c ./compile buffer_1.c ./compile buffer_2.c ./compile buffer_get.c ./compile buffer_put.c ./compile buffer_read.c ./compile buffer_write.c ./compile coe.c ./compile env.c ./compile error.c ./compile error_str.c ./compile fd_copy.c ./compile fd_move.c ./compile fifo.c ./compile lock_ex.c ./compile lock_exnb.c ./compile ndelay_off.c ./compile ndelay_on.c ./compile open_append.c ./compile open_read.c ./compile open_trunc.c ./compile open_write.c ./compile openreadclose.c ./compile pathexec_env.c ./compile pathexec_run.c pathexec_run.c: In function `pathexec_run': pathexec_run.c:18: warning: implicit declaration of function `execve' ./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: implicit declaration of function `setgroups' ./load chkshsgr ./chkshsgr || ( cat warn-shsgr; exit 1 ) ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h ./compile prot.c prot.c: In function `prot_gid': prot.c:13: warning: implicit declaration of function `setgroups' prot.c:15: warning: implicit declaration of function `setgid' prot.c: In function `prot_uid': prot.c:20: warning: implicit declaration of function `setuid' ./compile readclose.c ./compile seek_set.c seek_set.c: In function `seek_set': seek_set.c:9: warning: implicit declaration of function `lseek' ./compile sgetopt.c ./compile sig.c ./compile sig_block.c ./compile sig_catch.c ./compile sig_pause.c ./compile stralloc_cat.c ./compile stralloc_catb.c ./compile stralloc_cats.c ./compile stralloc_eady.c ./compile stralloc_opyb.c ./compile stralloc_opys.c ./compile stralloc_pend.c ./compile strerr_die.c ./compile strerr_sys.c ./compile subgetopt.c ./compile wait_nohang.c ./compile wait_pid.c ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \ buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \ coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \ lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \ open_trunc.o open_write.o openreadclose.o pathexec_env.o \ pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \ sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \ stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \ stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o \ wait_pid.o ./load envdir unix.a byte.a ./compile envuidgid.c ./load envuidgid unix.a byte.a ./compile fghack.c ./load fghack unix.a byte.a ./compile match.c ./compile matchtest.c matchtest.c: In function `main': matchtest.c:22: warning: implicit declaration of function `_exit' ./load matchtest match.o unix.a byte.a ./compile deepsleep.c ./compile multilog.c multilog.c: In function `startprocessor': multilog.c:200: warning: passing arg 2 of `execve' from incompatible pointer type multilog.c: In function `fullcurrent': multilog.c:216: warning: implicit declaration of function `rename' ./compile iopause.c ./compile tai_now.c ./compile tai_pack.c ./compile tai_sub.c ./compile tai_unpack.c ./compile taia_add.c ./compile taia_approx.c ./compile taia_frac.c ./compile taia_less.c ./compile taia_now.c ./compile taia_pack.c ./compile taia_sub.c ./compile taia_uint.c ./makelib time.a iopause.o tai_now.o tai_pack.o tai_sub.o \ tai_unpack.o taia_add.o taia_approx.o taia_frac.o taia_less.o \ taia_now.o taia_pack.o taia_sub.o taia_uint.o ./compile timestamp.c ./load multilog deepsleep.o timestamp.o match.o time.a unix.a byte.a ./compile pgrphack.c ./load pgrphack unix.a byte.a ./compile readproctitle.c ./load readproctitle unix.a byte.a ./compile setlock.c ./load setlock unix.a byte.a ./compile setuidgid.c ./load setuidgid unix.a byte.a ./compile softlimit.c ./load softlimit unix.a byte.a ./compile supervise.c supervise.c: In function `announce': supervise.c:78: warning: implicit declaration of function `rename' supervise.c: In function `trystart': supervise.c:102: warning: passing arg 2 of `execve' from incompatible pointer type ./load supervise deepsleep.o time.a unix.a byte.a ./compile svc.c ./load svc unix.a byte.a ./compile svok.c ./load svok unix.a byte.a ./compile svscan.c svscan.c: In function `start': svscan.c:104: warning: passing arg 3 of `pathexec_run' from incompatible pointer type svscan.c:123: warning: passing arg 3 of `pathexec_run' from incompatible pointer type ./load svscan unix.a byte.a ./compile svstat.c ./load svstat time.a unix.a byte.a ./compile tai64n.c ./load tai64n timestamp.o time.a unix.a byte.a ./compile tai64nlocal.c ./load tai64nlocal unix.a byte.a env - /bin/sh rts.tests 2>&1 | cat -v > rts rm -f sysdeps cat systype compile load >> sysdeps grep sysdep direntry.h >> sysdeps grep sysdep haswaitp.h >> sysdeps grep sysdep hassgact.h >> sysdeps grep sysdep hassgprm.h >> sysdeps grep sysdep select.h >> sysdeps grep sysdep uint64.h >> sysdeps grep sysdep iopause.h >> sysdeps grep sysdep hasmkffo.h >> sysdeps grep sysdep hasflock.h >> sysdeps grep sysdep hasshsgr.h >> sysdeps Copying commands into ./command...