LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-20-2005, 01:36 PM   #1
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
Debian 32bit chroot setup question


I have been starting to set up a 32 bit chroot within my amd64 system so that I can run some 32 bit apps. I am using the how-to on Alioth:
https://alioth.debian.org/docman/vie....html#id271960

My questions is dealing with linking the 32 bit linker. What would be the command to do this? What is this doing? The how-to doesn't give the command and I wasn't sure exactly what it's trying to do.
 
Old 11-20-2005, 04:26 PM   #2
Que_273
Member
 
Registered: Nov 2005
Location: South coast
Distribution: Debian /AMD64
Posts: 48

Rep: Reputation: 15
If you are trying to run a 32bit program while within the 64bit userspace (ie not in the chroot) then you must be able to find the linker ld.so and any libraries.
The howto showed how to put the chroot library paths into /etc/ld.so.conf and you must also have a symlink in /lib to the ld-linux.so file in your chroot
Code:
hugh@polybius:/lib$ ls -l ld*
-rwxr-xr-x  1 root root 97904 2005-08-31 03:00 ld-2.3.5.so
lrwxrwxrwx  1 root root    32 2005-09-16 15:42 ld-linux.so.2 -> /emul/ceasar/lib/ld-2.3.2.so
lrwxrwxrwx  1 root root    11 2005-09-10 01:44 ld-linux-x86-64.so.2 -> ld-2.3.5.so
In 64bit space if your run "ldd myprog" you should get this linker and any libraries shown. For example:
Code:
hugh@polybius:~/Programs/surf2/bin$ ldd surface
        linux-gate.so.1 =>  (0x00000000)
        libstdc++.so.5 => /emul/ceasar/usr/lib/libstdc++.so.5 (0x55675000)
        libm.so.6 => /emul/ceasar/lib/tls/libm.so.6 (0x5572f000)
        libgcc_s.so.1 => /emul/ceasar/usr/lib/libgcc_s.so.1 (0x55751000)
        libc.so.6 => /emul/ceasar/lib/tls/libc.so.6 (0x5575c000)
        libdl.so.2 => /emul/ceasar/lib/tls/libdl.so.2 (0x560d1000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
 
Old 11-21-2005, 06:54 AM   #3
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Original Poster
Rep: Reputation: 15
If I do the first command then I see that I already have the link matching up to the x86-64 linker, but I don't have the 2nd item your output shows (pointing to your emul directory). Do I need to have this also? From looking at mine it seems that debootstrap created the link for me?
 
Old 11-21-2005, 07:06 AM   #4
Que_273
Member
 
Registered: Nov 2005
Location: South coast
Distribution: Debian /AMD64
Posts: 48

Rep: Reputation: 15
You will need that link if you want to run 32bit apps in 64bit userspace. If you are running programs that are in the chroot (like a 32bit version of mozilla w/ Flash plugin) then it is not necessary because when you run "dchroot -d mozilla" it will change to the 32bit chroot and the linker will be found as if it was a standard installation.

If the programs you are running are not actually in .deb files, installed manually or copied from elsewhere (taking care to keep things separate) you can install the ia32-libs package which gives you a nearly completeset of 32bit libraries (and linker) within your 64bit userspace.
 
Old 11-28-2005, 08:01 AM   #5
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Original Poster
Rep: Reputation: 15
Thanks for the info. My 32 bit chroot seems to be working well so far.
 
  


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
AMD64 - 3d accel in a 32bit chroot don't work ssobeht Debian 2 12-22-2005 10:11 AM
chroot for 32bit progs in debian64 port Jaster Debian 2 03-06-2005 08:34 AM
32bit Debian -> 64bit Debian movery Linux - Distributions 0 01-08-2005 06:39 AM
Chroot - question ef_ Linux - Software 3 10-14-2004 05:57 AM
chroot question akwida Linux From Scratch 8 11-05-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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