[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Solaris Binaries


I'm using 2.4.3 kernel now and the Solaris emulation is fine.
For example:
ldd /solaris/bin/ldd 
        libelf.so.1 =>   /solaris/bin/../lib/libelf.so.1
        libc.so.1 =>     /solaris/bin/../lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1

ldd /solaris/bin/tar
        libcmd.so.1 =>   /usr/lib/libcmd.so.1
        libsec.so.1 =>   /usr/lib/libsec.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1

I configured the solaris simulation using kernel 2.2.17 and I didn't
change anything of course I installed new modutils, modconf, mount,
fileutils etc. for the 2.4.x kernel.

Here's a part of the kernel config:


solaris inserted as a module

I mounted the solaris partitions:

/dev/hda1 on /solaris type ufs (ro,ufstype=sun)
/dev/hda4 on /solaris/var type ufs (ro,ufstype=sun)
/dev/hda5 on /solaris/usr type ufs (ro,ufstype=sun)
/dev/hda8 on /solaris/home type ufs (rw)

   Device Flag    Start       End    Blocks   Id  System
/dev/hda1             0       152     71820    2  SunOS root
/dev/hda2  u        152       707    262237+   3  SunOS swap
/dev/hda3             0      8892   4201470    5  Whole disk
/dev/hda4           707      1141    205065    7  SunOS var
/dev/hda5          1141      2724    747967+   4  SunOS usr
/dev/hda6          2724      8600   2776410   83  Linux native
/dev/hda8          8600      8892    137970    8  SunOS home

I made the directory:

and linked the following in the /usr/gnemul/solaris:
bin -> /solaris/bin
etc -> /solaris/etc
lib -> /solaris/lib
opt -> /solaris/opt
platform -> /solaris/platform
sbin -> /solaris/sbin
usr -> /solaris/usr
var -> /solaris/var

You may need to mount the var partition write enabled too.

	Date: Tue, 1 May 2001 10:41:42 -0400
	From: Ben Collins <bcollins@debian.org>
	Cc: debian-sparc@lists.debian.org
	Resent-From: debian-sparc@lists.debian.org
	X-Mailing-List: <debian-sparc@lists.debian.org> archive/latest/6420
	X-Loop: debian-sparc@lists.debian.org
	Precedence: list
	Resent-Sender: debian-sparc-request@lists.debian.org

	On Tue, May 01, 2001 at 06:16:41AM +0000, mikec@infoleak.org wrote:
	> I have a Sun Ultra 10 running Debian-Sparc unstable tree, upgraded to kernel 2.4.3. Everything is working fine except for SunOS/Solaris binary compatibility.  I have the kernel compiled with
	> And I have followed the howto, and placed a complete library/include set in /usr/gnemul/solaris, as well as a whole /etc dir:
	> total 4
	> drwxr-xr-x    3 root     root     4096 Apr 26 05:19 solaris
	> lrwxrwxrwx    1 root     root     19 Apr 26 05:42 sunos -> /usr/gnemul/solaris
	> However, whenever I try to run a solaris binary, /any/ one, I get this (that is a tar binary from a Solaris 2.6 box) :
	> mculbert@wintermute:~$ ./tar
	> bash: ./tar: No such file or directory
	> mculbert@wintermute:~$ 

	It can't find the Solaris dynamic linker, which needs to be in /lib (as
	ld.so or ld.so.1, can't remember).

	Also, to find the other libraries, you need to either set
	LD_LIBRARY_PATH, or put them in /usr/lib. You can also copy all the
	Solaris stuff to another directory and chroot to it.


	/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
	`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '

	To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
	with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: