Results 1 to 5 of 5

Thread: anyone else build/install on ubuntu 11.10?

  1. #1
    eleith is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default anyone else build/install on ubuntu 11.10?

    i'm trying to build zimbra for ubuntu 11.10, but i have some questions

    1) do i need to build third party sources (./buildZCS.sh -t)?

    2) when trying to build third party sources, it looks for some of my shared libraries (eg: zlib.so) in /usr/bin but many of my libraries are in /lib/x86_64-linux-gnu. how can i get the build to look in that directory (without symlinking every shared library)

    3) i've got oracle's java installed in the ThirdPartyBuild folder. however, can i run openJDK for the java on my machine, and just use oracle java for building zimbra?

    4) i've added a file defs/UBUNTU11_64.def and modified devs/plat_commons.def to get it to recognize ubuntu 11.10, so i don't end up with files named UBUNTUUNKOWN_64... are there other files i'm missing?

    any points would be helpful, i really just want to run zimbra 7.1.4, i don't want to modify it, but since the released binaries can't install on ubuntu 11.10, i'm building it, hoping to get it working myself (since i don't want to downgrade my OS)

    thanks!

  2. #2
    eleith is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default

    i've gotten a little farther. here is my progress

    1) yes, you do need to build third party libraries.

    2) i just ended up creating symlinks for the libraries that were showing up in the other directories (zlib, expat and a few others)

    3) still haven't figured out if i can use openJDK or not...

    4) this seems like the right thing to do, but not sure if there are other files i need to edit. i don't think so as of right now.

    -------

    i also had to install gcc/g++ 4.4 and use that instead of the latest. there were many build errors that seemed related to gcc versions.

    i currently am stumped on getting nginx to build. ngx_http_upstream_zmauth_module.c will not build for reasons i can't understand.

    a message about warnings being declared as errors show up, and then a ton of errors are listed (many seem like warnings too). i'm not sure if this is related to gcc still being a version too far ahead than the build expects me to use or not.

    i'll keep playing with it...

  3. #3
    eleith is offline Active Member
    Join Date
    Jul 2008
    Posts
    44
    Rep Power
    7

    Default

    i ended punting on this and going back to 10.04 LTS.

    i started getting things to compile but then the zimbra patch in nginx just wouldn't compile. either i was still using a too recent version of gcc or i was missing some library, but the errors didn't seem to suggest that.

    once i couldn't compile nginx, i punted.

    the binary builds provided by zimbra really are nice, but it would have been nice to have been successfully able to use the source to get it up and running.

    for now, i have to rely on zimbra staying alive and well for many more years to come. it is a great product after all.

  4. #4
    Dark Angel is offline Junior Member
    Join Date
    Mar 2012
    Posts
    7
    Rep Power
    3

    Default

    Confirmed. I have the same issue. Nginx is failed to compile with:

    cc1: warnings being treated as errors
    src/http/modules/ngx_http_upstream_zmauth_module.c: In function ‘zmauth_cache_fqdn’:
    src/http/modules/ngx_http_upstream_zmauth_module.c:2557: warning: unused variable ‘pool’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2556: warning: unused variable ‘p’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2555: warning: unused variable ‘len’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2555: warning: unused variable ‘size’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2555: warning: unused variable ‘l’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2554: warning: unused variable ‘pdu’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2554: warning: unused variable ‘k’
    src/http/modules/ngx_http_upstream_zmauth_module.c: At top level:
    src/http/modules/ngx_http_upstream_zmauth_module.c:2589: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2589: warning: type defaults to ‘int’ in declaration of ‘pool’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2589: warning: initialization makes integer from pointer without a cast
    src/http/modules/ngx_http_upstream_zmauth_module.c:2589: error: initializer element is not constant
    src/http/modules/ngx_http_upstream_zmauth_module.c:2591: error: expected identifier or ‘(’ before ‘if’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: warning: type defaults to ‘int’ in declaration of ‘k’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: error: ‘log’ undeclared here (not in a function)
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: error: ‘usr’ undeclared here (not in a function)
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: error: ‘vhost’ undeclared here (not in a function)
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: warning: passing argument 1 of ‘ngx_memcache_get_http_alias_key’ makes pointer from integer without a cast
    src/http/modules/ngx_http_upstream_zmauth_module.c:2595: error: incompatible types in initialization
    src/http/modules/ngx_http_upstream_zmauth_module.c:2597: error: expected identifier or ‘(’ before ‘if’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2602: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2602: warning: type defaults to ‘int’ in declaration of ‘size’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2603: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2603: warning: type defaults to ‘int’ in declaration of ‘len’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2603: error: ‘qusr’ undeclared here (not in a function)
    src/http/modules/ngx_http_upstream_zmauth_module.c:2604: error: expected identifier or ‘(’ before ‘do’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2607: error: expected identifier or ‘(’ before ‘while’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2609: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2609: warning: type defaults to ‘int’ in declaration of ‘l’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2610: error: request for member ‘len’ in something not a structure or union
    src/http/modules/ngx_http_upstream_zmauth_module.c:2613: error: ‘mcf’ undeclared here (not in a function)
    src/http/modules/ngx_http_upstream_zmauth_module.c:2620: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2621: error: expected identifier or ‘(’ before ‘if’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2626: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2626: warning: type defaults to ‘int’ in declaration of ‘p’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2626: error: ‘pdu’ undeclared here (not in a function)
    src/http/modules/ngx_http_upstream_zmauth_module.c:2627: warning: initialization makes integer from pointer without a cast
    src/http/modules/ngx_http_upstream_zmauth_module.c:2627: error: initializer element is not constant
    src/http/modules/ngx_http_upstream_zmauth_module.c:2629: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2631: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2632: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2633: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2634: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2635: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: error: expected declaration specifiers or ‘...’ before ‘&’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: error: expected declaration specifiers or ‘...’ before ‘k’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: error: expected declaration specifiers or ‘...’ before ‘pdu’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: error: expected declaration specifiers or ‘...’ before ‘(’ token
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: error: expected declaration specifiers or ‘...’ before ‘log’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: warning: data definition has no type or storage class
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: warning: type defaults to ‘int’ in declaration of ‘ngx_memcache_post’
    src/http/modules/ngx_http_upstream_zmauth_module.c:2639: error: conflicting types for ‘ngx_memcache_post’
    src/core/ngx_memcache.h:127: error: previous declaration of ‘ngx_memcache_post’ was here
    src/http/modules/ngx_http_upstream_zmauth_module.c:2640: error: expected identifier or ‘(’ before ‘}’ token
    make[1]: *** [objs/src/http/modules/ngx_http_upstream_zmauth_module.o] Error 1
    make[1]: Leaving directory `/home/public/p4/HELIX-714/ThirdParty/nginx/nginx-0.9-zimbra'
    make: *** [build] Error 2
    This is on make. Configure passes normally.

    Please advise.

    Centos 5.8, 64bit, Zimbra 7.1.4.

  5. #5
    ipisliao is offline New Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    5

    Default

    --- a/p4/HELIX-714/ThirdParty/nginx/nginx-0.9-zimbra/src/http/modules/ngx_http_upstream_zmauth_module.c
    +++ b/p4/HELIX-714/ThirdParty/nginx/nginx-0.9-zimbra/src/http/modules/ngx_http_upstream_zmauth_module.c
    @@ -2579,7 +2579,6 @@ static void zmauth_cache_fqdn
    break;
    }
    }
    - }
    if (i == usr.len) { /* not found */
    w.on_failure (&w);
    return;
    it cause by miss match curly brace, hope this help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 39
    Last Post: 09-04-2012, 11:18 PM
  2. Ubuntu 11.10 64bit problems
    By gbr in forum General Questions
    Replies: 3
    Last Post: 11-22-2011, 12:50 PM
  3. Upgrading to ubuntu 11.10
    By drdre in forum Administrators
    Replies: 3
    Last Post: 10-14-2011, 06:51 AM
  4. Replies: 3
    Last Post: 02-18-2011, 03:49 PM

Posting Permissions

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