Hi,

Xlib uses AC_CHECK_FUNC(issetugid) in configure.ac, and then
#include <unistd.h>
issetugid();
in the code.  On Linux everything's fine because libc doesn't have that
function.  OTOH kfreebsd explodes with a missing prototype, see
https://buildd.debian.org/status/fetch.php?pkg=libx11&arch=kfreebsd-amd64&ver=2%3A1.4.99.901-1&stamp=1334874367

Is that function defined somewhere on kfreebsd?  If so, where?  And
shouldn't unistd.h pull that in?

No, the prototype is not defined anywhere,
the function is available mainly for linking of old code.

The key problem is that configure uses different set of CFLAGS compared to real build:

  checking for issetugid... yes

and

  error: implicit declaration of function 'issetugid' 
[-Werror=implicit-function-declaration]

Petr


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Reply via email to