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

Bug#517566: kdebase - FTBFS: error: redefinition of 'struct ucred'



On Tue, Mar  3, 2009 at 20:29:09 +0000, peter green wrote:

> I have done test builds, the package FTBFS in sid and builds fine in lenny. I have not tried squeeze.
>
> A notable difference between the suceeding (non-binnmu) and the failing (+b1) build is
>
> original build
>> checking "struct ucred"... yes
>
> binnmu build
>> checking "struct ucred"... no
>
> in configure.in we see
> configure.in:AC_EGREP_HEADER([struct ucred], [sys/socket.h], have_ucred=yes)
>
> I'm not sure why this succeeds in lenny and fails in sid but I suspect some form of header dependency cleanup.
>
Different glibc version.

> I changing the filename in that line to bits/socket.h should fix that 
> issue. 
>
Sounds like the wrong fix (and also sounds like it wouldn't work).
struct ucred is only defined if you define _GNU_SOURCE.

Cheers,
Julien



Reply to: