Hello,

I've been working on porting GNU libc (glibc) to OpenSolaris (see [0]
for source code and other downloads). I've also ported NPTL (the glibc
thread library), using the corresponding OpenSolaris syscalls. I
haven't benchmarked much, but I suspect speed should be comparable to
"native" OpenSolaris. At this point I have a working chroot with a
number of packages installed and working, and I hope to have a zone
booting soon. Xorg, GNOME, and gdb all work. I also have a number of
Solaris binaries working, including truss, dladm, zfs, and zpool. (I
haven't tried, but it should be fairly straightforward to get dtrace
working.) In order to get these working, I implemented additional
OpenSolaris extensions  (mostly trivial syscall wrappers). Examples
are the functions defined in ucred.h, priv.h, and sys/pset.h.

Since nexenta is trying to be "OpenSolaris with the GNU userland", it
makes sense to use glibc. This would also solve the legal problem that
Debian had with linking Sun's libc with dpkg [1]. glibc is licensed
under LGPL with a linking exception, so linking CDDL code against the
glibc is also legal. In keeping with past glibc ports (e.g. kFreeBSD,
kNetBSD), I've used the target string i486-kopensolaris-gnu (the
64-bit target would be x86_64-kopensolaris-gnu).

If you want to test this out in a chroot, there's a bunch of pre-built
i386 binaries available [2] that can be just untarred into a
directory. You'll also need to mount /proc, /dev, and /devices in the
chroot via "lofs" (this won't be needed if done in a zone). Many
applications will require OpenSolaris headers to build, which can just
be copied from an OpenSolaris/Nexenta box (just don't overwrite any
headers installed by glibc).

-- David

[0] http://csclub.uwaterloo.ca/~dtbartle/opensolaris/
[1] http://lists.debian.org/debian-devel/2006/04/msg00069.html
[2] http://csclub.uwaterloo.ca/~mspang/opensolaris/builds/
_______________________________________________
gnusol-devel mailing list
gnusol-devel@lists.sonic.net
http://lists.sonic.net/mailman/listinfo/gnusol-devel

Reply via email to