2013/8/16 Slávek Banko <slavek.banko@axis.cz>
Dne pá 16. srpna 2013 Fat-Zer napsal(a):
> 2013/8/16 Darrell Anderson <darrella@hushmail.com>
>
> > >> Here is propoused patch which checks if demangle.h is present.
> > >
> > >Darrell, I have demangle.h on my system, so it's up to you to test
> > >it.
> >
> > Actually anybody can test --- just temporarily rename or move
> > /usr/include/demangle.h. :-)
>
> The previous patch makes turning on the debug quite tricky, so better
> to remove the ifdef's with NDEBUG in backtrace_symbols.c.
>
> I've tested the build both with and without demangle.h and seems
> everything is ok. so retest

It was necessary to add a condition for linking with BFD.
Updated patch attached. Please test it.

Slavek
--
Sorry, I'm a little confused, so, slackware doesn't have libbfq at all or just demangle.h is missing?
If the matter is about linking than IMHO the solution with conditional user-defined option is better. 

Anyway in a day or two I'll came with a normal patch to move all that to kdebug.cpp and provide WITH_LIBBFD for optional linkage... + some additional backtrace features.