anyone else build/install on ubuntu 11.10?

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
eleith
Advanced member
Advanced member
Posts: 52
Joined: Fri Sep 12, 2014 11:39 pm

anyone else build/install on ubuntu 11.10?

Postby eleith » Sat Jan 28, 2012 7:25 pm

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!


eleith
Advanced member
Advanced member
Posts: 52
Joined: Fri Sep 12, 2014 11:39 pm

anyone else build/install on ubuntu 11.10?

Postby eleith » Sun Jan 29, 2012 8:24 pm

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...
eleith
Advanced member
Advanced member
Posts: 52
Joined: Fri Sep 12, 2014 11:39 pm

anyone else build/install on ubuntu 11.10?

Postby eleith » Tue Jan 31, 2012 6:31 pm

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.
Dark Angel
Posts: 7
Joined: Sat Sep 13, 2014 2:31 am

anyone else build/install on ubuntu 11.10?

Postby Dark Angel » Mon Mar 19, 2012 11:10 am

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

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

[/quote]
This is on make. Configure passes normally.
Please advise.
Centos 5.8, 64bit, Zimbra 7.1.4.
ipisliao
Posts: 3
Joined: Sat Sep 13, 2014 1:20 am

anyone else build/install on ubuntu 11.10?

Postby ipisliao » Fri Jun 01, 2012 8:12 am

[QUOTE]--- 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;[/QUOTE]
it cause by miss match curly brace, hope this help

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 7 guests