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 11-21-2008, 03:41 PM
Intermediate Member
 
Posts: 21
Default $ cd ~/zcs-src/ZimbraBuild make dev-install in ZimbraBuild seems out-dated

It seems the Makefile and the target make dev-install in ZimbraBuild of FRANKLIN branch are out-dated. It fails at various places. What is the build script I should use when build Thirdparty is done? Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-21-2008, 06:37 PM
Intermediate Member
 
Posts: 21
Default

I encountered more problems with build. In ZimbraBuild direcotry:
[root@localhost ZimbraBuild]# make
....

cp -f /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/../ZimbraServer/conf/postfix_sasl_smtpd.conf /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/cyrus-sasl-2.1.22.3z/lib/sasl2/smtpd.conf
make: *** No rule to make target `/root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/lib/ext/zimbra_cert_manager/zimbra_cert_manager.jar', needed by `core_stage'. Stop.
Reply With Quote
  #3 (permalink)  
Old 11-21-2008, 06:40 PM
Zimbra Employee
 
Posts: 580
Default

Uusally you would run:
make -f Makefile ajaxtar sourcetar all
__________________
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
  #4 (permalink)  
Old 11-21-2008, 06:54 PM
Intermediate Member
 
Posts: 21
Default

still getting this error:
make: *** No rule to make target `/root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/lib/ext/zimbra_cert_manager/zimbra_cert_manager.jar', needed by `core_stage'. Stop.
Reply With Quote
  #5 (permalink)  
Old 11-21-2008, 07:12 PM
Zimbra Employee
 
Posts: 580
Default

Hm, I find this target in the storetargets.def file:

$(CORE_DEST_DIR)/lib/ext/com_zimbra_cert_manager/com_zimbra_cert_manager.jar: $(CORE_DEST_DIR)/lib/ext/com_zimbra_cert_manager $(ADMIN_EXT_DIR)/build/com_zimbra_cert_manager.jar
cp -f $(ADMIN_EXT_DIR)/build/com_zimbra_cert_manager.jar $@

The CORE_COMPONENTS to build are defined either in components.def or <OS>_components.def (like RHEL5_64_components.def)

--Quanah
__________________
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
  #6 (permalink)  
Old 11-24-2008, 10:59 AM
Intermediate Member
 
Posts: 21
Default

Hi Quanah,
I saw the same line in storetargets.def file, however, now I still got this error message when I build:
[root@localhost ZimbraBuild]# make -f Makefile ajaxtar sourcetar all
....
mkdir -p /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/conf/attrs
cp -f /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/../ZimbraServer/build/dist/conf/attrs/* /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/conf/attrs
make: *** No rule to make target `/root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/lib/ext/zimbra_cert_manager/zimbra_cert_manager.jar', needed by `core_stage'. Stop.
Thanks in advance
Reply With Quote
  #7 (permalink)  
Old 11-24-2008, 11:06 AM
Intermediate Member
 
Posts: 21
Default

Acutally, I figured out the problem... in our CentOS5_64_components.def
file, the CORE_COMPONENTS list is not up to date. Now that problem is fixed. I am seeing some other problems now..
Reply With Quote
  #8 (permalink)  
Old 11-24-2008, 11:21 AM
Zimbra Employee
 
Posts: 580
Default

Yeah, building on CentOS means you'll have to do some work by hand.
__________________
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
  #9 (permalink)  
Old 11-24-2008, 11:52 AM
Intermediate Member
 
Posts: 21
Default

Hi Quanah,
I have this problem, do you know which script contains "Building for target i386" notion? I searched around but couldn't find it yet.. I am working on Centos 64.Thanks
cp -f /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/../ZimbraServer/build/dist/conf/attrs/* /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild/opt/zimbra/conf/attrs
(cd /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild; \
rpmbuild --target i386 --quiet --define '_rpmdir /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild' --buildroot=/root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/corebuild -bb /root/workspace/zimbra/FRANKLIN-5011/ZimbraBuild/zimbracore.spec )
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.95039
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ $'\r'
: command not found039: line 25:
error: Bad exit status from /var/tmp/rpm-tmp.95039 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.95039 (%prep)
make: *** [core] Error 1
Reply With Quote
  #10 (permalink)  
Old 11-24-2008, 11:59 AM
Zimbra Employee
 
Posts: 580
Default

Quote:
Originally Posted by syhliu View Post
Hi Quanah,
I have this problem, do you know which script contains "Building for target i386" notion?
What does the get platform tag script show for your system? It should report CentOS5_64 (or CentOS4_64), etc. In any case, you'll have to add logic to defs/globals.def for CentOS?_64 to change the ARCH type.

--Quanah
__________________
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.