I've been attempting to create a binary package for zimbra on Solaris 10 x86. I think I'm most of the way there, but am having problems starting tomcat with the zimbra-native.jar.

Catalina.out reads:
Fatal error: terminating: Failed to loadLibrary(zimbra-native)
java.lang.UnsatisfiedLinkError: /opt/zimbra/lib/libzimbra-native.so: ld.so.1: java: fatal: libc.so.6: open failed: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
So lib.so.6 is a linux only, so I try to build zimbra-native for Solaris with gmake (since the Makefile isn't compatible w/ ccs-make), and I get:
gmake[1]: Leaving directory `/opt/zimbra/src/zcs-src/ZimbraNative'
gmake build/libzimbra-native.so
gmake[1]: Entering directory `/opt/zimbra/src/zcs-src/ZimbraNative'
gcc  -shared -o build/libzimbra-native.so build/IO.o build/Process.o build/zjniutil.o
Text relocation remains                         referenced
    against symbol                  offset      in file
                           0x7f        build/IO.o
                           0x9d        build/IO.o
                           0xd7        build/IO.o
                           0x111       build/IO.o
                           0x204       build/IO.o
                           0x246       build/IO.o
                           0x290       build/IO.o
                           0x356       build/IO.o
                           0x74        build/Process.o
                           0xd8        build/Process.o
                           0x130       build/Process.o
                           0x16f       build/Process.o
                           0x1a9       build/Process.o
                           0x1d9       build/Process.o
                           0xf         build/zjniutil.o
                           0x51        build/zjniutil.o
                           0x93        build/zjniutil.o
                           0xd5        build/zjniutil.o
_xstat                              0x12        build/IO.o
_lxstat                             0x2d        build/IO.o
_fxstat                             0x48        build/IO.o
_xmknod                             0x63        build/IO.o
ZimbraThrowNPE                      0x87        build/IO.o
ZimbraThrowNPE                      0xa5        build/IO.o
ZimbraThrowNPE                      0x24e       build/IO.o
ZimbraThrowNPE                      0x177       build/Process.o
ZimbraThrowIAE                      0xdf        build/IO.o
ZimbraThrowIAE                      0x119       build/IO.o
ZimbraThrowIAE                      0x298       build/IO.o
ZimbraThrowIAE                      0x1b1       build/Process.o
ZimbraThrowIAE                      0x1e1       build/Process.o
memset                              0x153       build/IO.o
memset                              0x1a9       build/IO.o
memset                              0x2e8       build/IO.o
link                                0x1db       build/IO.o
errno                               0x1f0       build/IO.o
errno                               0x342       build/IO.o
errno                               0x63        build/Process.o
errno                               0xc4        build/Process.o
errno                               0x11f       build/Process.o
strerror                            0x1f5       build/IO.o
strerror                            0x347       build/IO.o
strerror                            0x68        build/Process.o
strerror                            0xc9        build/Process.o
strerror                            0x124       build/Process.o
snprintf                            0x215       build/IO.o
snprintf                            0x367       build/IO.o
snprintf                            0x85        build/Process.o
snprintf                            0xe9        build/Process.o
snprintf                            0x141       build/Process.o
ZimbraThrowIOE                      0x22a       build/IO.o
ZimbraThrowIOE                      0x37c       build/IO.o
getuid                              0x7         build/Process.o
geteuid                             0x14        build/Process.o
geteuid                             0x3e        build/Process.o
getgid                              0x21        build/Process.o
getegid                             0x2e        build/Process.o
setgid                              0x52        build/Process.o
ZimbraThrowOFE                      0x9a        build/Process.o
ZimbraThrowOFE                      0xfe        build/Process.o
ZimbraThrowOFE                      0x156       build/Process.o
initgroups                          0xb0        build/Process.o
setuid                              0x10e       build/Process.o
calloc                              0x1c5       build/Process.o
free                                0x226       build/Process.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[1]: *** [build/libzimbra-native.so] Error 1
gmake[1]: Leaving directory `/opt/zimbra/src/zcs-src/ZimbraNative'
gmake: *** [all] Error 2
Any help would be much appreciated. Once I get things finished on Solaris 10 x86, I'd be happy to try to package it on sparc also.