[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#669670: libx11: FTBFS[kfreebsd] (missing declaration for issetugid)



Package: libx11
Version: 2:1.4.99.901-1
Severity: serious
Tags: help upstream
X-Debbugs-Cc: Petr Salinger <Petr.Salinger@seznam.cz>, debian-bsd@lists.debian.org

On Fri, Apr 20, 2012 at 22:38:20 +0200, Petr Salinger wrote:

> 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]
> 
OK.  I guess this could be solved by adding AC_CHECK_DECL in addition to
the existing AC_CHECK_FUNC and only using this function if both tests
succeed.  I'll gladly take a patch, otherwise it'll wait until I can get
to this.  Filing a bug for now...

Thanks,
Julien

Attachment: signature.asc
Description: Digital signature


Reply to: