error: 'cloexec_done' undeclared, while cross compiling dbus 1.3.0 for ARM

Colin Walters walters at verbum.org
Tue Oct 13 11:30:14 PDT 2009


On Thu, Oct 8, 2009 at 7:20 PM, pan son <sonicpan.sonicpan at gmail.com> wrote:
> Answering my own question,
>
> At line 3046 of dbus/dbus-sysdeps-unix.c, the #ifndef should be changed to
> #ifdef
>
> #ifdef F_DUPFD_CLOEXEC
>   if (!cloexec_done)
>
> That worked for me.

Looks like this has been fixed in Git:

commit a8cf509a06cdc42568e446dea8a54a398e1c003b
Author: Benjamin Reed <rangerrick at befunk.com>
Date:   Wed Jul 22 08:47:51 2009 -0400

    Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed

    Signed-off-by: Thiago Macieira <thiago at kde.org>


More information about the dbus mailing list