LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2004, 04:31 AM   #1
candyman123
Member
 
Registered: Jul 2003
Posts: 46

Rep: Reputation: 15
Fedora Core 2 chroot to Gentoo


Hi, I have FC2 and Gentoo installed.

(fd0,0) WinXP
(fd0,1) boot partition
(fd0,2) swap
(fd0,3) extended partition
(fd0,4) gentoo
(fd0,5) fc2

Output from 'mount' while in FC2:
/dev/hda6 on / type reiserfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda5 on /gentoo type reiserfs (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hda2 on /boot type ext2 (rw)

While in FC2, gentoo is mounted to /gentoo. Just as I did with the Knoppix CD, I would like to chroot to the gentoo partition. So,

mount -o bind /proc /gentoo/proc
chroot /gentoo /bin/bash

When I do this, I get the following error:

Inconsistency detected by ld.so: rtld.c: 1173: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

Even if I don't do the /proc mount, I still get this error. Any ideas as to why this is happening? Can it be fixed...if so, how? Let me know if you need more information.

Also, while I am at it....in grub, my repeat rate for keystrokes is super fast. Thus, even normal keystrokes will often result with some letter being displayed many times. This is not an issue after an OS has loaded...it is only an issue while in GRUB. How can this be resolved?

~C
 
Old 05-23-2004, 07:15 AM   #2
grcunningham
Member
 
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103

Rep: Reputation: 15
im not positive, but i think your ld.so problems are occurring
because you have different libraries on the two different systems
when I chroot into my Linux from Scratch setup, I have to also
clear my current path and add the new path, using this command:

chroot /tools/lfs /tools/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login

the backslashes on the end of the lines just allow you
to enter multiple lines as one command
the -i option passed to the env command will clear
all variables of the chroot environment...
after this i set only the HOME,TERM,PS1, and PATH variables
the TERM=$TERM sets the TERM variable inside the chroot
environment to the same value as outside chroot...this is needed
for programs like vi and less to work properly

of course you will need to change the dirs to match your system

this command and the description was taken from the Linux From Scratch
manual, ver 5.0, chapter 6
 
Old 05-23-2004, 12:12 PM   #3
candyman123
Member
 
Registered: Jul 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for the response. I gave that a try.

chroot /gentoo /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login

Here is the output:
Inconsistency detected by ld.so: rtld.c: 1173: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

So, that doesn't seem to fix it.

From the gentoo Alternative Installation guide, I found the following command being used when trying to install gentoo from an existing install of linux:

env -i /usr/sbin/chroot /gentoo /bin/bash

Trying this command gives this output:
Inconsistency detected by ld.so: rtld.c: 1173: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!

...which is the same.

Any other ideas?

~C

Last edited by candyman123; 05-23-2004 at 12:14 PM.
 
Old 06-10-2004, 10:50 PM   #4
kurious
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
i have teh same problem.. after i upgraded from fedora core 1 to core 2

i had updated rh9 to fedora core 1 earlier .. then while playing a game x-server got messed up.. and i keep getting an error message like "x spawning too fast.. disabling for 5 minutes" .. so i decided to upgrade to fedora core 2 instead of installing core 1 again

i think its architecture problem .. i am not sure though (i am sort of a novice at linux admin)

my other partition (where i want to install gentoo) was mounted on /d so i did:

Quote:
[root@localhost common]# /usr/sbin/chroot /d /bin/bash
Inconsistency detected by ld.so: rtld.c: 1173: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
if someone finds a solution pls let me know .. coz i cant live without hardware rendering (which fedora doesnt have) plus gentoo has a great portage system : D

EDIT:

i found the answer to the problem .. i was using gnome when the error occurred. but when i used the failsafe terminal, everything went right : ) .. and i got no error when i did /usr/sbin/chroot

Last edited by kurious; 06-11-2004 at 10:59 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do RHEL AS 3.0, RH 9.0, Fedora Core 3, Debian (Testing) Gentoo Linux support nForce 4 explorer1979 Linux - Hardware 1 04-03-2005 03:45 AM
Gentoo install chroot; Should is say livecd / ? revenge80200 Linux - General 5 02-25-2005 09:37 AM
Gentoo 2004.2 chroot/pulling files ghazz Linux - Distributions 2 01-25-2005 05:10 PM
gentoo, no network after chroot exodist Linux - Distributions 23 07-22-2004 02:49 AM
Gentoo 1.4 install chroot help vdogvictor Linux - Newbie 12 04-09-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration