Facing problem in xinit

"Syed Irfan Ali Zaidi" <[email protected]> Tue, 3 Jan 2006 04:48:37 -0500 (EST)
Newsgroups gmane.comp.xfree86.forum
Message-ID <56859.203.82.63.3.1136281717.squirrel@wm0>
Hi Dear

I want to make a my bootable file system to run my application (developed
using gtk).
I want to run xerver for it.
I have compiled kernel 2.6.14 for this purpose and prepared a root image
to load as ram disk.

I have selected xvesa for my server. And placed relevant shared libraries
in the file system for bootable cd. I placed the binary of xinit too to
start the xserver and written a simple xinitrc script and startx scripts.

On booting when the startx script tries to run xinit then error comes

error loading the shared libraries: libc.so.6: connot handle the TLS data=
.
I used the "ldd xinit" to check the dependent library files

        linux-gate.so.1 =3D>  (0xffffe000)
        libX11.so.6 =3D> /usr/X11R6/lib/libX11.so.6 (0x4003d000)
        libc.so.6 =3D> /lib/tls/libc.so.6 (0x40136000)
        libdl.so.2 =3D> /lib/libdl.so.2 (0x40255000)
        /lib/ld-linux.so.2 (0x40000000)

and placed the libraries in the same manner as described above. But still
getting the above error.
I have no idea how to resolve it. Please guide me to solve it.
Thanx

AyeSoft
[Software Engineer]