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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by pan son :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am cross compiling dbus 1.3.0 for arm platform.
I was able to configure the source, but when I run 'make' I get the following error,

dbus-sysdeps-unix.c: In function '_dbus_dup':
dbus-sysdeps-unix.c:3047: error: 'cloexec_done' undeclared (first use in this function)
dbus-sysdeps-unix.c:3047: error: (Each undeclared identifier is reported only once
dbus-sysdeps-unix.c:3047: error: for each function it appears in.)
make[3]: *** [dbus-sysdeps-unix.lo] Error 1

Any help regarding this is highly appreciated.

Thankyou,
Vink

_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

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

by pan son :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.


On Wed, Oct 7, 2009 at 6:09 PM, pan son <sonicpan.sonicpan@...> wrote:
Hi,

I am cross compiling dbus 1.3.0 for arm platform.
I was able to configure the source, but when I run 'make' I get the following error,

dbus-sysdeps-unix.c: In function '_dbus_dup':
dbus-sysdeps-unix.c:3047: error: 'cloexec_done' undeclared (first use in this function)
dbus-sysdeps-unix.c:3047: error: (Each undeclared identifier is reported only once
dbus-sysdeps-unix.c:3047: error: for each function it appears in.)
make[3]: *** [dbus-sysdeps-unix.lo] Error 1

Any help regarding this is highly appreciated.

Thankyou,
Vink


_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

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

by Colin Walters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 8, 2009 at 7:20 PM, pan son <sonicpan.sonicpan@...> 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@...>
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@...>
_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus