public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] X server on minimal system
@ 2005-09-30 17:55 Joe Sapp
  2005-10-01  0:10 ` Kurt Kiefer
  2005-10-03  7:04 ` Peter S. Mazinger
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Sapp @ 2005-09-30 17:55 UTC (permalink / raw
  To: gentoo-embedded

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to get an X server running on a minimal system built from a
stage3 uclibc tarball.  I think I've taken all the necessary steps, but I
keep getting errors like:

Elf_RelocateEntry() Unsupported relocation type 4
Elf_RelocateEntry() Unsupported relocation type 9
Elf_RelocateEntry() Unsupported relocation type 3
...
Symbol _GLOBAL_OFFSET_TABLE_ from module /usr/lib/modules/fonts/libbitmap.a
is unresolved!
Elf_RelocateEntry() Unsupported relocation type 10

Here's some relevant info:
USE="bitmap-fonts dlloader truetype-fonts type1-fonts uclibc" (have tried
most combinations of all of these - always with uclibc on).
Kernel is 2.6.11-hardened-r15 (All types of binaries are supported - it's
the only thing I can think of that's relevant that could cause these errors).
xorg-x11-6.8.2-r5

I've read some mention of people on this list getting X to work - mind
sharing some wisdom?  Do I have any other options in terms of X servers?
(kdrive seems to give the same result, but I'm currently trying again.)

Thanks,

- --
Joe Sapp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDPXwRJxWGazwiTooRAjXpAJ9zWrXMAk7M8VDTy8gSi1J055z19gCfeN6k
v0/PmnCUg5uygxTxq+Zcg8A=
=nXG2
-----END PGP SIGNATURE-----
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] X server on minimal system
  2005-09-30 17:55 [gentoo-embedded] X server on minimal system Joe Sapp
@ 2005-10-01  0:10 ` Kurt Kiefer
  2005-10-02 19:30   ` Joe Sapp
  2005-10-03  7:04 ` Peter S. Mazinger
  1 sibling, 1 reply; 5+ messages in thread
From: Kurt Kiefer @ 2005-10-01  0:10 UTC (permalink / raw
  To: gentoo-embedded

> Here's some relevant info:
> USE="bitmap-fonts dlloader truetype-fonts type1-fonts uclibc" (have  
> tried
> most combinations of all of these - always with uclibc on).

Did you try "-bitmap-fonts"? Looks like your problem is with them...
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] X server on minimal system
  2005-10-01  0:10 ` Kurt Kiefer
@ 2005-10-02 19:30   ` Joe Sapp
  2005-10-03  5:59     ` Kevin F. Quinn
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Sapp @ 2005-10-02 19:30 UTC (permalink / raw
  To: gentoo-embedded

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kurt Kiefer wrote:
|> Here's some relevant info:
|> USE="bitmap-fonts dlloader truetype-fonts type1-fonts uclibc" (have
|> tried most combinations of all of these - always with uclibc on).
|
|
| Did you try "-bitmap-fonts"? Looks like your problem is with them...

Yes I have.  I'm more concerned about the "Unsupported relocation type"
errors I keep getting.  Searching the web hasn't yielded much so I thought
I would try this list.

- --
Joe Sapp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDQDVJJxWGazwiTooRAtW+AJoCyb1rpS7w1leTv9UD5/HgGngNyQCdEcNC
ZEK9MbLB/0Wr1NODudOiR7Q=
=EhWL
-----END PGP SIGNATURE-----
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] X server on minimal system
  2005-10-02 19:30   ` Joe Sapp
@ 2005-10-03  5:59     ` Kevin F. Quinn
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin F. Quinn @ 2005-10-03  5:59 UTC (permalink / raw
  To: gentoo-embedded

On 2/10/2005 21:30:20, Joe Sapp (nixphoeni@gentoo.org) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Kurt Kiefer wrote:
> |> Here's some relevant info:
> |> USE="bitmap-fonts dlloader truetype-fonts type1-fonts uclibc" (have
> |> tried most combinations of all of these - always with uclibc on).
> |
> |
> | Did you try "-bitmap-fonts"? Looks like your problem is with them...
> 
> Yes I have.  I'm more concerned about the "Unsupported relocation type"
> errors I keep getting.  Searching the web hasn't yielded much so I thought
> I would try this list.

These errors occur if you try to build X with the elfloader, but also build the modules PIC (Position Independent Code) - the relocation types you mentioned are relevant to PIC, but the elfloader doesn't understand PIC objects.  However I don't know how you've ended up with them since you have 'dlloader' in your use flags - that causes X to avoid the elfloader completely, and use the system's standard shared library loader instead.

It's not bitmap-fonts that causes the problem, btw - it just happens that it's the first module loaded by X, so that's the first time the error occurs. If you remove bitmap-fonts, it'll just fall over on the next module.

What do you get when you do:

emerge -pv x11-base/xorg-x11

and what is the output of 'emerge --info'?



-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] X server on minimal system
  2005-09-30 17:55 [gentoo-embedded] X server on minimal system Joe Sapp
  2005-10-01  0:10 ` Kurt Kiefer
@ 2005-10-03  7:04 ` Peter S. Mazinger
  1 sibling, 0 replies; 5+ messages in thread
From: Peter S. Mazinger @ 2005-10-03  7:04 UTC (permalink / raw
  To: gentoo-embedded

On Fri, 30 Sep 2005, Joe Sapp wrote:

> --[PinePGP]--------------------------------------------------[begin]--
> I'm trying to get an X server running on a minimal system built from a
> stage3 uclibc tarball.  

hardened / non-hardened stage3?

> I think I've taken all the necessary steps, but I

which ?

> keep getting errors like:
> 
> Elf_RelocateEntry() Unsupported relocation type 4
> Elf_RelocateEntry() Unsupported relocation type 9
> Elf_RelocateEntry() Unsupported relocation type 3

binutils version (maybe gcc too) ?

these are relocations related to PIE/PIC ( hardened gcc used? )

> ...
> Symbol _GLOBAL_OFFSET_TABLE_ from module /usr/lib/modules/fonts/libbitmap.a
> is unresolved!

bad for you, your build env seems to be broken

> Elf_RelocateEntry() Unsupported relocation type 10
> 
> Here's some relevant info:
> USE="bitmap-fonts dlloader truetype-fonts type1-fonts uclibc" (have tried
> most combinations of all of these - always with uclibc on).

uclibc in USE is obsoleted (this was replaced by elibc_uclibc, but does 
not have to be added to USE - "autodetected" - )

> Kernel is 2.6.11-hardened-r15 (All types of binaries are supported - it's
> the only thing I can think of that's relevant that could cause these errors).
> xorg-x11-6.8.2-r5

what kernel headers are installed and if you switched from headers 2.4 to 
2.6, have you also rebuilt at least uclibc?

> 
> I've read some mention of people on this list getting X to work - mind
> sharing some wisdom?  Do I have any other options in terms of X servers?

X works, you have a problem generally with your build environment.
a. IIRC the stages are built w/ kernel-headers-2.4, if you want to use 
2.6, it would be better to start from stage1 and rebuild everything
b. haven't tested current hardened stage3, but if I would want hardened 
uClibc freshly installed, I would also start from a stage1.
To check why I say b. run (consider adding all the dirs from your PATH to 
the command below)
file /bin/* /usr/bin/* /sbin/* /usr/sbin/* | grep ELF | grep -v 'shared 
object'
The listed files (executables) should all be static binaries, if they are 
not, the packages providing those files were not built hardened.

> (kdrive seems to give the same result, but I'm currently trying again.)

kdrive is obsoleted (at least IMHO), try maybe the modular-X (emerge 
xorg-server), package masked.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-31  3:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 17:55 [gentoo-embedded] X server on minimal system Joe Sapp
2005-10-01  0:10 ` Kurt Kiefer
2005-10-02 19:30   ` Joe Sapp
2005-10-03  5:59     ` Kevin F. Quinn
2005-10-03  7:04 ` Peter S. Mazinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox