Re: uClibc: nm-utils.h:30:22: fatal error: execinfo.h: No such file or directory

Am Montag, den 09.05.2011, 13:35 -0500 schrieb Dan Williams:
> On Sat, 2011-05-07 at 23:35 +0200, Paul Menzel wrote:

> > trying to use uClibc to build NetworkManager in OpenEmbedded [1]
> > (distribution: `minimal-uclibc` for `MACHINE = "beagleboard"`) fails
> > with the following error.
> > 
> > According to this comment in GNOME BTS ticket 146693 [2] (regarding
> > aMule) it should be checked for the existence of `execinfo.h` in the
> > build system and if it is not available the backtrace calls should be
> > made a no op.
> > 
> > Unfortunately I can not point you to a project already having the
> > appropriate checks implemented, but there should be some.
> > 
> > Being able to compile NetworkManager using uClibc should make
> > NetworkManager attractive for some more embedded use cases.
> I have no idea why that's there for master (probably left over from the
> old nm_warn/nm_error/etc calls) so I've removed it there.

Great. That was easy [1].

> I guess all we can do for 0.8.4 (since this is a public header, and we
> can't really #include <config.h> there since we don't distribute it) is
> try to use uclibc-specific defines to make the nm_print_backtrace() call
> be a noop if we're on uclibc?

That sounds reasonable. You can use something like the following

        #if !defined(__UCLIBC__)
        # include <execinfo.h>

or whatever is needed.




Attachment: signature.asc
Description: This is a digitally signed message part

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