Results 1 to 4 of 4

Thread: Solaris 10 x86 install-- Problems compiling ZimbraNative

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Rep Power
    9

    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

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

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

    Which linker are you using?

  3. #3
    Join Date
    Mar 2006
    Posts
    2
    Rep Power
    9

    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

  4. #4
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    You need to compile ZimbraNative.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. Ubuntu 6.06 Install Problems
    By swu in forum Installation
    Replies: 8
    Last Post: 06-29-2007, 09:18 AM
  2. Ubuntu 6.06 LTS server install problems
    By Kavey1978 in forum Installation
    Replies: 17
    Last Post: 05-30-2007, 01:49 AM
  3. CentOS 4.4 64 bit - 4.5.0_GA install problems
    By davespigot in forum Installation
    Replies: 1
    Last Post: 01-25-2007, 07:25 PM
  4. Install on Solaris 10 x86
    By chrschaffer in forum Installation
    Replies: 1
    Last Post: 01-23-2007, 04:48 PM
  5. more fedora install problems
    By jlynch3 in forum Installation
    Replies: 13
    Last Post: 09-14-2005, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •