Solaris 8 on chroot in Solaris 10

I've copied all nessesary Sol8 system files to machine with Sol10. After executing "chroot /home/chroot/sol8 /bin/bash" almost everything is OK except running programs which need the "libthread.so.1" library (for example java). These programs cause error: "_sys_thread_create() failed, errno = 22".

bash-3.00#uname -a

SunOS xxxx 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Fire-480R

bash-3.00# mount -F proc proc /home/chroot/sol8/proc

bash-3.00# mount -F fd /dev/fd /home/chroot/sol8/dev/fd

bash-3.00# chroot /home/chroot/sol8 /bin/bash

bash-2.05b#

bash-2.05b# ldd /usr/bin/java

libthread.so.1=>/usr/j2re1.4.1/bin/../../../lib/sparcv9/libthread.so.1

libdl.so.1 =>/usr/j2re1.4.1/bin/../../../lib/sparcv9/libdl.so.1

libc.so.1 =>/usr/j2re1.4.1/bin/../../../lib/sparcv9/libc.so.1

/usr/platform/SUNW,Sun-Fire-480R/lib/sparcv9/libc_psr.so.1

bash-2.05b# /usr/bin/java

_sys_thread_create() failed, errno = 22

The "libthread.so.1" file is dated on 19th may 06 (patch no. 108993-57)

Other machine with native Sol8 does not have such problem.

Can anyone explain me what the "errno=22" mean ?

Best regards.

Tom

[1240 byte] By [TomCP] at [2007-11-26 8:36:53]
# 1

The threading libraries are very different between Solaris 8 and Solaris 10. Since the library has to interact with the kernel and the interfaces changed, I can't imagine that this is going to work.

Someone with actual information about the interfaces would know more.

--

Darren

Darren_Dunham at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
So, is there any alternative way to run Solaris 8 on machine with Solaris 10 installed?Regards.Tom
TomCP at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Not today that I know of. This has come up as a discussion in the zones and brandz discussion areas because you can even run a Linux zone on Solaris 10. But apparantly the differences are so great that trying to run an older Solaris image is much more difficult.

See:

http://www.opensolaris.org/jive/thread.jspa?messageID=18257&#18257

http://www.opensolaris.org/jive/thread.jspa?threadID=8127

--

Darren

Darren_Dunham at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

> So, is there any alternative way to run Solaris 8 on

> machine with Solaris 10 installed?

Solaris 10 is an upgrade from Solaris 8. In theory, 10 should be backwards compatible with 8.

What are you trying to run on 8 that doesn't run on 10? Or is there something else you're trying yo do?

alan

alan_pae at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
Your initial post noted that you were doing this on a Sunfire 6800 system.You can have as many as four discrete domains on that platform !Just configure a Solaris 10 domain and configure a separate Solaris 8 domain !
rukbat at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6

We a lot of machines with Solaris 8 at our customer which cannot be upgraded in near future (for some security reasons). I've decided to install Solaris 10 on our development server (V480) but we have to produce binaries (aplications and libraries) which will be running in "clean" Sol8 environment.

The best solution would be to prepare Sol8 temporary environment on our server till then the customer will upgrade own machines to Sol10.

In reference to "Dynamic System Domains" option:

We are using Sun-Fire V480 server not Sunfire 6800 - is that option applicable to such servers (V480) ?

TomCP at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7

Apologies.

I could have sworn there was a mention of a SF6800 in there some place.

Then again, I glance through a number of different forum web sites,

not just the Sun forums.

I know there is a thread out there, somewhere,

where someone is trying this exact same thing on a Sunfire,

and have the exact same failure.

rukbat at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8
did you try LD_LIBRARY_PATH=/usr/lib/lwp before calling javaor anything using lpthreads ?RG
rgachet at 2007-7-6 22:08:26 > top of Java-index,Solaris Operating System,Solaris 10 Features...