[pocket-linux] /lib/i686/libc.so.6 question
David Horton
dhorton at megsinet.net
Mon Oct 13 20:27:09 EDT 2003
McKibben, Rob wrote:
> Your Pocket Linux How-To is GREAT! thank you!
> I am using this as a self directed training class and it has been extremely
> helpful.
> I followed all the steps through Chapter 6 without any problems (excluding
> typos, and once I made it through makeing the kernel).
> However, at the conclusion of Chapter 6 my zipped Root file was too big for
> the floppy.
> So, I went to the web page and downloaded your Chapter 6 image and started
> from there. (I had to figure out how to make ~/staging on my hard drive
> look like the image on the floppy, but because I went through all the steps
> in your How-to, I understood - finally - what was going on, and I was able
> to reverse engineer the process.)
> Boot disk and "Chapter 6" Root disk and hard drive ~/staging now working
> just fine. On to Chapter 7.
> Stepped through all the steps (including adding /lib/libcrypt and
> libnss_files) (and, like Santa - double checked all the lists/typing), dd'd
> image to Root, and rebooted.
> login: root
> password: <enter>
> incorrect password, or some such ugly message,
> dead in the water,
> big blue switch
> Nosing around; ldd login (or maybe it was passwd) says it needs library
> /lib/i686/libc.so.6. (note: "i686") I have /lib/libc.so.6 (note: no
> "i686").
> Tried several variations of ln -s /lib/i686/libc.so.6 /lib/libc.so.6 but
> the system did not like any of the variations. I got either; file exists or
> file does not exist.
> Is i686 the problem here, and, if so, what's the trick, or is it something
> else?
> Thanks,
> Rob
>
>
>
Rob,
What distro are you using to build on? Is it Redhat 9 by chance? I'm
just wondering because my Redhat 9 system has a /lib/i686 directory on
it. When I originally wrote the guide I was using Slackware 8 as my
development system so I never ran into this.
You might try doing 'export CC="gcc -mcpu=i386"' right before you build.
I don't know if this will help, but it should tell the compiler to
generate i386 instructions and that might make the linker decide not to
choose the i686 library. It's kind of a shot in the dark though.
Good luck and let me know how it turns out.
Dave
More information about the Pocket-Linux
mailing list