linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "Shuangjun Zhu" <r44089@email.sps.mot.com>
Cc: "Lucinda Schafer" <lucsch@adaptivemicro.com>,
	linuxppc-embedded@lists.linuxppc.org
Subject: Re: Help about the libc-2.1.1 segmentation fault
Date: Fri, 12 May 2000 07:07:52 +0200	[thread overview]
Message-ID: <200005120507.HAA02656@denx.local.net> (raw)
In-Reply-To: Your message of "Fri, 12 May 2000 09:05:32 +0800." <001e01bfbbae$2d0e03a0$69f001dc@sjzhu.sps.mot.com>


In message <001e01bfbbae$2d0e03a0$69f001dc@sjzhu.sps.mot.com> you wrote:
>
> Firstly, thank you for your kind help.
> In fact, my root file system is libc-1.99.so.  It assures me to begin to
> work.
> I build another file system to test the libc-2.1.1.so. It likes
>            ----  lib/libc-2.1.1.so
>           |
> /mnt ----------  bin -------- hello.dynamic, which built with libc-2.1.1.so
> library
>           |              |--- hello.static, which built with static library
>           |
>           ------ sbin/

Combining libc5 (1.99) and libc6 (2.1.x) withing one  system  is  not
easily done.

The only way I got  this  working  is  _strict_  separation  of  both
environments; separate directories is not enough.

Try the following: install a STATICALLY linked shell  (for  instance,
sash)  as  /mnt/bin/sh;  then  run "chroot /mnt /bin/sh", so that you
have a staicallly linked shell  running  in  a  chrooted  environment
where   ONLY  libc-2.1.x  files  (binaries,  libraries,  loader)  are
visible.

This way I've been testing my 2.1.x (x=1, 2 and 3) libs and  binaries
for a while.

Works fine for me, hope it helps.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
C++ was an interesting and valuable experiment, but we've learned its
lessons and it's time to move on.
                            - Peter Curran in <DCqM4z.BxB@isgtec.com>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-05-12  5:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-12  1:05 Help about the libc-2.1.1 segmentation fault Shuangjun Zhu
2000-05-12  5:07 ` Wolfgang Denk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-05-12 10:33 kd
2000-05-11  3:28 Shuangjun Zhu

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=200005120507.HAA02656@denx.local.net \
    --to=wd@denx.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=lucsch@adaptivemicro.com \
    --cc=r44089@email.sps.mot.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.
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).