Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-2006, 07:43 PM
Starter Member
 
Posts: 2
Default Solaris 10 x86 install-- Problems compiling ZimbraNative

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:
Code:
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:
Code:
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.

Thanks,
Aaron
Reply With Quote
  #2 (permalink)  
Old 03-07-2006, 08:49 PM
Zimbra Employee
 
Posts: 2,103
Default

I never got saslauthd to build on solaris - never got to zimbra native.

Which linker are you using?
Reply With Quote
  #3 (permalink)  
Old 03-08-2006, 08:28 PM
Starter Member
 
Posts: 2
Default

I got it to link with both gnu ld, and /opt/csw/i386-pc-solaris2.8/bin/ld with the following (I tried them both):

/opt/csw/i386-pc-solaris2.8/bin/ld -lstdc++ -o build/libzimbra-native.so build/IO.o build/Process.o build/zjniutil.o

After that, (and commenting out the p4 stuff) "gmake all" and "gmake push" both complete. After that I tried another "ant reset-the-world". I got the following in the catalina.out
Code:
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Zimbra server reserving server socket port=7110 bindaddr=null ssl=false
Zimbra server reserving server socket port=7995 bindaddr=null ssl=true
Zimbra server reserving server socket port=7143 bindaddr=null ssl=false
Zimbra server reserving server socket port=7993 bindaddr=null ssl=true
Fatal error: terminating: Failed to loadLibrary(zimbra-native)
java.lang.UnsatisfiedLinkError: no zimbra-native in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at com.zimbra.znative.Util.loadLibrary(Util.java:52)
        at com.zimbra.znative.Util.(Util.java:69)
        at com.zimbra.znative.Process.geteuid(Process.java:41)
        at com.zimbra.cs.servlet.PrivilegedServlet.init(PrivilegedServlet.java:115)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4197)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Thanks for any help,
Aaron
Reply With Quote
  #4 (permalink)  
Old 03-08-2006, 08:58 PM
Zimbra Employee
 
Posts: 4,792
Default

You need to compile ZimbraNative.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.