mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: xorg intel driver load error
Date: Thu, 16 May 2013 20:37:05 -0400	[thread overview]
Message-ID: <20130517003705.GX20323@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAGSZau1zqR4=p_NmzF_gMbRaV8J+EcWG5ngPa1qjYdWzD_sG5w@mail.gmail.com>

On Fri, May 17, 2013 at 09:22:10AM +0900, plan9assembler wrote:
> Hi,
> 
> i am using my own x86_64-linux-musl from bootstrap+musl cross,
> https://plan9assembler.wordpress.com/
> https://github.com/pikhq/bootstrap-linux/issues/8
> https://github.com/pikhq/bootstrap-linux/issues/9
> 
> trying to install xorg, compilation done,(mesa, font, lib, proto, xserver
> etc).
> but when xserver didn't work, due to intel driver.
> 
> ....
> (EE) Failed to load /usr/lib/xorg/modules/drivers/intel_drv.so: Error
> relocating /usr/lib/xorg/modules/drivers/intel_drv.so: fbPolyPoint: symbol
> not found
> (II) UnloadModule: "intel"
> (II) Unloading intel
> (EE) Failed to load module "intel" (loader failed, 7)
> ....
> (EE) No drivers available.

I believe the issue is that xorg lacks proper dependency information
between modules, so unless they're loaded in the correct order,
symbols will be missing. This bug gets overlooked with glibc because
many (but not all) symbol references can be deferred until the first
time they're used (lazy binding); musl intentionally does not support
lazy binding.

I'm not sure if anybody has worked on a patch to fix the issue, but
you should be able to work around it by tweaking your config file to
load modules in dependency order. In your case, it sounds like the
missing symbol is in some general fb module..

Others who've worked more directly with packaging and system building
can probably provide more detailed information for you.

Rich


  reply	other threads:[~2013-05-17  0:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17  0:22 plan9assembler
2013-05-17  0:37 ` Rich Felker [this message]
2013-05-17  6:38   ` Isaac Dunham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130517003705.GX20323@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).