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

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 06-13-2010, 12:18 AM
Intermediate Member
 
Posts: 16
Default OCS build issue. on Going build issues.

I am trying to get a build of Zimbra from source on an unsupported platform(Gentoo).

So far its been fun, although I've now got an issue that I don't know how to solve.
I don't understand where openldap-2.4.21.7z.tgz comes from?

I am getting the following error:-

Code:
Total time: 2 minutes 26 seconds
mkdir /home/public/p4/GNR-606/ZimbraBuild/storebuild/opt/zimbra/jetty-6.1.22.z6/webapps/service
(cd /home/public/p4/GNR-606/ZimbraBuild/storebuild/opt/zimbra/jetty-6.1.22.z6/webapps/service; jar xf /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/build/dist/jetty/webapps/service.war)
mkdir -p /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/db
cp -R /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/src/db/mysql/db.sql /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/db
cp -R /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/src/db/mysql/create_database.sql /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/db
cp -R /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/build/versions-init.sql /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/db
mkdir -p /home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra
*** Creating openldap
(cd /home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra; tar xzf /home/public/p4/GNR-606/ZimbraBuild/../ThirdPartyBuilds/Gentoo-BSR1_64/openldap/openldap-2.4.21.7z.tgz;)
tar: /home/public/p4/GNR-606/ZimbraBuild/../ThirdPartyBuilds/Gentoo-BSR1_64/openldap/openldap-2.4.21.7z.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [/home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra/openldap-2.4.21.7z] Error 2

I understand I am using an unsupported platform and I am more then happy to support it myself. I just can't understand where the zimbra build get its version of openldap.

Last edited by undersys; 06-16-2010 at 10:42 PM..
Reply With Quote
  #2 (permalink)  
Old 06-13-2010, 05:49 AM
Junior Member
 
Posts: 7
Default what kind of build are u attempting ?

Hi Friend ,

are u building for deploying and using OR for making changes to the
software ?
Reply With Quote
  #3 (permalink)  
Old 06-13-2010, 06:50 PM
Intermediate Member
 
Posts: 16
Default

Building for deployment. I'll move into development after I have a working server
Using the following Wiki guide.

What else do you need to know?
Reply With Quote
  #4 (permalink)  
Old 06-14-2010, 02:13 AM
Junior Member
 
Posts: 7
Default bulding in gentoo

Hi,
I do not have gentoo. But it looks like you have not done the
third party build. have a look at
GNR on Debian Lenny - Zimbra :: Wiki

ignore the debian specific parts and install the dependencies
using your platforms' packaging system. then run

./buildZCS.sh -t
Reply With Quote
  #5 (permalink)  
Old 06-14-2010, 02:41 AM
Intermediate Member
 
Posts: 16
Default

If only it was that simple
BTW, Debian and Gentoo a nothing like each other, but thanks
The error is given after I run "./buildZCS.sh -t" quite a while into the build process.

I think i may of found the issue, testing now.
It looks like Gentoo can not make a gziped tarball of :-
/home/public/p4/GNR-606/ThirdParty/openldap/openldap-2.4.21.7z/

So I've manually created it and I'll see what happens..
Reply With Quote
  #6 (permalink)  
Old 06-14-2010, 06:07 PM
Intermediate Member
 
Posts: 16
Default

nope!
Still fails.
I've tried to manually create the tar and the extra directories.
What I don't understand is I've removed 'openldap" from the third party builds.. so why is it still trying to build it?
I'd rather use gentoo's openldap.

Note, even if i do add openldap back into the third party build it fails at the same lines.

>_<

Code:
*** Creating openldap
(cd /home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra; tar xzf /home/public/p4/GNR-606/ZimbraBuild/../ThirdPartyBuilds/Gentoo-BSR1_64/openldap/openldap-2.4.21.7z.tgz;)
cp /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/conf/ldap/DB_CONFIG \
		/home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra/openldap-2.4.21.7z/var/openldap-data
cp /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/conf/ldap/DB_CONFIG.accesslog \
		/home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra/openldap-2.4.21.7z/var/openldap-data
cp /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/conf/ldap/syncprov-master.ldif \
		/home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra/openldap-2.4.21.7z/etc/openldap
cp: cannot create regular file `/home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra/openldap-2.4.21.7z/etc/openldap': No such file or directory
make: *** [/home/public/p4/GNR-606/ZimbraBuild/ldapbuild/opt/zimbra/openldap-2.4.21.7z] Error 1
Reply With Quote
  #7 (permalink)  
Old 06-15-2010, 04:10 AM
Intermediate Member
 
Posts: 16
Default

Hit what looks like to be a new error. I think I've solved the openldap error.

Its looking for perlbin.tgz no mention of this in the 3rd party makefile.. so I wonder where it comes from.

mkdir -p /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/contrib
cp -R /home/public/p4/GNR-606/ZimbraBuild/../ZimbraServer/src/contrib/* /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/contrib
mkdir -p /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/zimbramon/bin
(cd /home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/zimbramon/bin; \
tar xzf /home/public/p4/GNR-606/ZimbraBuild/../ThirdPartyBuilds/Gentoo-BSR1_64/perl/perlbin.tgz)
tar: /home/public/p4/GNR-606/ZimbraBuild/../ThirdPartyBuilds/Gentoo-BSR1_64/perl/perlbin.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [/home/public/p4/GNR-606/ZimbraBuild/corebuild/opt/zimbra/zimbramon/bin] Error 2
Reply With Quote
  #8 (permalink)  
Old 06-16-2010, 06:44 PM
Intermediate Member
 
Posts: 16
Default

Is there anyone in Zimbra Dev land that can help?

I was thinking maybe do a recheck out, but the GNR-606 branch should not of changed. I really can not see why its failing.
I can see where the build pulls down the perlbin.tgz source!
Reply With Quote
  #9 (permalink)  
Old 06-23-2010, 05:45 PM
Intermediate Member
 
Posts: 16
Default

No matter what I try it fails at the same point.
I think it has something to do with this in the Perl Makefile :-
Code:
tarball:
        @echo -n "Creating $(PERL_TGZ_DEST)..."; \
        (cd $(DEST_LIB_DIR); rm -f i386-linux-thread-multi/goferperf.pl; \
        tar czf $(PERL_TGZ_DEST) .); \
        if [ $$? -ne 0 ]; then  echo "FAILED.";  else  echo "done.";  fi
        @echo -n "Creating $(PERL_BIN_TGZ_DEST)..."; \
        (cd $(DEST_BIN_DIR); \
        tar cfz $(PERL_BIN_TGZ_DEST) sa-compile sa-learn sa-update
spamassassin spamc spamd); \
        if [ $$? -ne 0 ]; then  echo "FAILED.";  else  echo "done.";  fi
        chmod -R a+w $(PERL_TGZ_DEST_DIR)/*
I may try a re checkout of the branch. Although this really should not be needed as the branch should not change.
A little disappointed with the lack of Zimbra Dev involvement with the FOSS build....
Reply With Quote
  #10 (permalink)  
Old 07-01-2010, 11:08 AM
Zimbra Employee
 
Posts: 580
Default

If your system can't create gziped tarballs, there's somethign seriously wrong with it. This works on all of the supported platforms just fine. I suggest you examine the log to see what errors it wrote to it.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
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.