Bug 4393 - xorg-server compile problem on uClibc
Summary: xorg-server compile problem on uClibc
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xorg (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Adam Jackson
QA Contact:
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks: 3643
  Show dependency treegraph
 
Reported: 2005-09-07 17:43 UTC by Yuri Vasilevski
Modified: 2005-10-02 06:32 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg-execinfo-backtrace-configure.patch (2.18 KB, patch)
2005-09-07 19:13 UTC, Mike Frysinger
no flags Details | Splinter Review

Description Yuri Vasilevski 2005-09-07 17:43:08 UTC
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
functionality.

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.

Yuri.
Comment 1 Joshua Baergen 2005-09-07 18:01:41 UTC
Add myself and spyderous to CC.
Comment 2 Mike Frysinger 2005-09-07 19:13:07 UTC
Created attachment 3198 [details] [review]
xorg-execinfo-backtrace-configure.patch

poc patch against cvs
Comment 3 Adam Jackson 2005-09-09 12:36:09 UTC
this is an xorg bug, not an xserver bug.

assign to me.
Comment 4 Adam Jackson 2005-09-10 10:38:29 UTC
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.
Comment 5 Mike Frysinger 2005-09-11 14:37:14 UTC
we're not looking for monolithic support here, just support for the modular system
Comment 6 Adam Jackson 2005-10-02 23:32:40 UTC
applied, with some imakefile tweaks to get the semantics right in the monolith.
 thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.