When building xorg-xserver (modular X server) on gentoo embedded (uClibc based)
I found that hw/xfree86/common/xf86Events.c check for __GLIBC__ and if it is
defined assumes that it is building on a glibc based platform, includes
execinfo.h and tries to use it's functionality. The problem is that uClibc being
mostly source compatible with glibc also defines __GLIBC__, but lacks execinfo
I made a quick patch to work around this problem (can be found in my Gentoo's
bug report at: http://bugs.gentoo.org/show_bug.cgi?id=104931 ), but as it was
sugested by SpanKY, execinfo.h's presence should be detected by configure and
then proper actions should be taken by xf86Events.c.
Add myself and spyderous to CC.
Created attachment 3198 [details] [review]
poc patch against cvs
this is an xorg bug, not an xserver bug.
assign to me.
there's no way to do configure-style checks in the monolithic build system, so
i'll be setting imake to assume the backtrace functionality exists for linux.
if you want to build Xorg on uclibc, you'll need to put #define
HasGlibcBacktrace NO in your host.def.
marking as a doc blocker.
we're not looking for monolithic support here, just support for the modular system
applied, with some imakefile tweaks to get the semantics right in the monolith.