[Pkg-shadow-devel] Problem at cross-compiling shadow-220.127.116.11
nicolas.francois at centraliens.net
Mon Sep 7 23:46:16 UTC 2009
On Sat, Aug 22, 2009 at 12:34:35PM +0200, pi00100100 at gmail.com wrote:
> I'm trying to cross-compile shadow-18.104.22.168. The host system is
> i686-unknown-linux-gnu. The target system is
> x86_64-unknown-linux-gnu. I'm trying to run the configure script
> with the arguments --prefix=/usr --build=i686-unknown-linux-gnu
> --host=x86_64-unknown-linux-gnu --disable-nls but I get the
> following error message:
> checking whether setpgrp takes no argument... configure: error:
> cannot check setpgrp when cross compiling
> I can fix this by adding ac_cv_func_setpgrp_void=yes to the
> configure arguments, but I wonder if this is the normal and
> recommended way to proceed or if it is a bug.
You can remove AC_FUNC_SETPGRP from configure.in.
(ac_cv_func_setpgrp_void=yes is also safe if you want to avoid
Here is the documentation of this autoconf macro:
-- Macro: AC_FUNC_SETPGRP
If `setpgrp' takes no argument (the Posix version), define
`SETPGRP_VOID'. Otherwise, it is the BSD version, which takes two
process IDs as arguments. This macro does not check whether
`setpgrp' exists at all; if you need to work in that situation,
first call `AC_CHECK_FUNC' for `setpgrp'.
This macro is obsolescent, as current systems have a `setpgrp'
whose signature conforms to Posix. New programs need not use this
Also, setpgrp is only used in src/logoutd.c, and unconditionally without
any arguments. So if it failed on any system, nobody complained since
quite a long time.
More information about the Pkg-shadow-devel