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 08-27-2006, 06:24 PM
Senior Member
 
Posts: 64
Angry new error about making package of zimbra

Hello everyone,
I have spent all my time and job on compiling and creating zimbra.

And now, I have isntalled all thirdparty software and perl compoments. I am beginning to make package for zimbra.

But I meet new errors now when I made packages
this is my step:
#cd ZimbraBuild
#make allclean all

the error information is:

/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `ORIGINAL'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `ORIGINAL'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `VERSION'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `VERSION'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `trunk/ZimbraBuild/RE/BUILD'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `trunk/ZimbraBuild/RE/BUILD'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `11545412209502-src.tgz'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `11545412209502-src.tgz'
(cd /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer; /zimbra/apache-ant-1.6.5/bin/ant \
-Dplat.tag=FC4 \
-Dis-production=1 \
-Dzimbra.buildinfo.version=4.0.0_GA_246==== ORIGINAL VERSION trunk/ZimbraBuild/RE/BUILD 11545412209502.FC4 \
-Dzimbra.buildinfo.release=20060827204928 -Dzimbra.buildinfo.date=20060827204928 \
-Dzimbra.buildinfo.host=hd-t3948cl.privatedns.com dev-dist ; )
Buildfile: build.xml

BUILD FAILED
Target `ORIGINAL' does not exist in this project.

Total time: 1 second
make: *** [/mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/build/dist/tomcat/webapps/service.war] Error 1

But when I executed "ant" at /ZimbraServer, it is success. I don't know how should I do. and then I executed ant under any directory which has build.xml. I did not find any error information.

Who can help me?

Last edited by wildhuman; 08-29-2006 at 12:16 PM..
Reply With Quote
  #2 (permalink)  
Old 08-28-2006, 07:34 PM
Senior Member
 
Posts: 64
Angry

Even if I executed the make dev-install, it is the almost same error:
what is the reason on earth? who can tell me?

/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `ORIGINAL'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `ORIGINAL'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `VERSION'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `VERSION'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `trunk/ZimbraBuild/RE/BUILD'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `trunk/ZimbraBuild/RE/BUILD'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `11545412209502-src.tgz'
/mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `11545412209502-src.tgz'
*** Installing mysql
(cd /opt/zimbra; tar xzf /mnt/scsi/tmp/zimbra/ZimbraBuild/../ThirdParty/mysql/FC4/mysql-standard-4.1.20-pc-linux-gnu-i686-glibc23.tar.gz
*** Installing openldap
(cd /opt/zimbra; tar xzf /mnt/scsi/tmp/zimbra/ZimbraBuild/../ThirdParty/openldap/builds/FC4/openldap-2.3.21.tgz
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/DB_CONFIG /opt/zimbra/openldap-2.3.21/var/openldap-data
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/slapd.conf.production /opt/zimbra/openldap-2.3.21/etc/openldap/slapd.conf
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/amavisd.schema /opt/zimbra/openldap-2.3.21/etc/openldap/schema
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/zimbra.schema /opt/zimbra/openldap-2.3.21/etc/openldap/schema
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/zimbra.ldif /opt/zimbra/openldap-2.3.21/etc/openldap/zimbra.ldif
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/widgets.ldif /opt/zimbra/openldap-2.3.21/etc/openldap/widgets.ldif
cp /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/ldap/zimbra_mimehandlers.ldif \
/opt/zimbra/openldap-2.3.21/etc/openldap/zimbra_mimehandlers.ldif
(cd /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer; /zimbra/apache-ant-1.6.5/bin/ant \
-Dplat.tag=FC4 \
-Dis-production=1 \
-Dzimbra.buildinfo.version=4.0.0_GA_246==== ORIGINAL VERSION trunk/ZimbraBuild/RE/BUILD 11545412209502.FC4 \
-Dzimbra.buildinfo.release=20060828223609 -Dzimbra.buildinfo.date=20060828223609 \
-Dzimbra.buildinfo.host=hd-t3948cl.privatedns.com dev-dist ; )
Buildfile: build.xml

BUILD FAILED
Target `ORIGINAL' does not exist in this project.

Total time: 1 second
make: *** [/mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/build/dist/tomcat/webapps/service.war] Error 1
Reply With Quote
  #3 (permalink)  
Old 08-29-2006, 12:11 PM
Senior Member
 
Posts: 64
Default

which information that I executed "ant" under ZimbraServer:

[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/classes
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/generated/src/java
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/wiki
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/zimlets
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/data
Trying to override old definition of task deploy

make-dirs:
[echo] Creating dirs under /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/conf
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/openldap/etc/openldap/schema
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/bin
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/conf/msgs
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/db
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/lib/ext
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/lib/jars
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/libexec
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/tomcat/common/endorsed
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/tomcat/common/lib
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/tomcat/conf
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/tomcat/webapps
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/wiki
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/zimlets

compile:
[javac] Compiling 1203 source files to /mnt/scsi/tmp/zimbra/ZimbraServer/build/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
Trying to override old definition of task deploy

set-buildinfo-vars:
[echo] Version: 4.0

generate-buildinfo:
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/buildinfo
[javac] Compiling 1 source file to /mnt/scsi/tmp/zimbra/ZimbraServer/build/classes

jar:
[echo] Hostname: mail.localhost.localdomain
[jar] Building jar: /mnt/scsi/tmp/zimbra/ZimbraServer/build/zimbrastore.jar
Trying to override old definition of task deploy

set-buildinfo-vars:
[echo] Version: 4.0

generate-ldap-config:
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/attrs
[copy] Copying 2 files to /mnt/scsi/tmp/zimbra/ZimbraServer/build/attrs
[mkdir] Created dir: /mnt/scsi/tmp/zimbra/ZimbraServer/build/ldap-config
[copy] Copying 1 file to /mnt/scsi/tmp/zimbra/ZimbraServer/build/ldap-config
[copy] Copying 1 file to /mnt/scsi/tmp/zimbra/ZimbraServer/build/ldap-config
[copy] Copying 1 file to /mnt/scsi/tmp/zimbra/ZimbraServer/build/ldap-config

BUILD SUCCESSFUL
Total time: 59 seconds
Reply With Quote
  #4 (permalink)  
Old 08-29-2006, 05:11 PM
Zimbra Employee
 
Posts: 604
Default

Edit trunk/ZimbraBuild/RE/BUILD and strip out everything beyond the first 3 numbers. That will make ant much happier
Reply With Quote
  #5 (permalink)  
Old 08-29-2006, 06:39 PM
Senior Member
 
Posts: 64
Red face

Quote:
Originally Posted by brian
Edit trunk/ZimbraBuild/RE/BUILD and strip out everything beyond the first 3 numbers. That will make ant much happier
Thank you very much, I only kept 3 numbers in the BUILD file of ZimbraBuild/RE. Your advice lets me make a progress, and now, there is an error information when I "make allclean all":

[copy] Copying 4 files to /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/openldap/etc/openldap
[copy] Copying 2 files to /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/openldap/etc/openldap/schema
[copy] Copying 2 files to /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/db
[copy] Copying 2 files to /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/db
[copy] Copying 1 file to /mnt/scsi/tmp/zimbra/ZimbraServer/build/dist/db

BUILD FAILED
/mnt/scsi/tmp/zimbra/ZimbraServer/build.xml:352: /mnt/scsi/tmp/zimbra/ZimbraServer/data/wiki not found.

Total time: 39 seconds
make: *** [/mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/build/dist/tomcat/webapps/service.war] Error 1
~

And I checked the ZimbraServer, there is not wiki direcotry, there are only two directories: soap and TestMailRaw.

Perhaps I need copy wiki from someplace?

Thank you much. Hope you can give me more advice.

Last edited by wildhuman; 08-29-2006 at 07:53 PM..
Reply With Quote
  #6 (permalink)  
Old 08-30-2006, 07:40 AM
Senior Member
 
Posts: 64
Question

And I checked the svn site:https://svn.sourceforge.net/svnroot/zimbra/trunk/, I did not find any wiki information under ZimbraServer/data/, so perhps the wiki from other directory?

Please help me.
Reply With Quote
  #7 (permalink)  
Old 08-30-2006, 04:14 PM
Senior Member
 
Posts: 64
Question

with the help brain, I avoided the problem of wiki (brain will add wiki template in the svn).
and now, there is a new problem:

Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.81315
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.81315
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.81315
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
************************************************** *****************************
*
* WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild'
* to fail. To ignore these errors, you can set the '$QA_RPATHS'
* environment variable which is a bitmask allowing the values
* below. The current value of QA_RPATHS is 0x0000.
*
* 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor
* issue but are introducing redundant searchpaths without
* providing a benefit. They can also cause errors in multilib
* environments.
* 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute
* nor relative filenames and can therefore be a SECURITY risk
* 0x0004 ... insecure RPATHs; these are relative RPATHs which are a
* SECURITY risk
* 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other
* RPATHs; this is just a minor issue but usually unwanted
* 0x0010 ... the RPATH is empty; there is no reason for such RPATHs
* and they cause unneeded work while loading libraries
* 0x0020 ... an RPATH references '..' of an absolute path; this will break
* the functionality when the path before '..' is a symlink
*
*
* Examples:
* - to ignore standard and empty RPATHs, execute 'rpmbuild' like
* $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm
* - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
* $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
*
* 'check-rpaths' is part of 'fedora-rpmdevtools'.
*
************************************************** *****************************
ERROR 0002: file '/opt/zimbra/lib/libldap_r-2.3.so.0.2.9' contains an invalid rpath '/opt/zimbra/openldap-2.3.21/lib' in [/opt/zimbra/openldap-2.3.21/lib]
ERROR 0002: file '/opt/zimbra/lib/libldap-2.3.so.0.2.9' contains an invalid rpath '/opt/zimbra/openldap-2.3.21/lib' in [/opt/zimbra/openldap-2.3.21/lib]
error: Bad exit status from /var/tmp/rpm-tmp.81315 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.81315 (%install)
make: *** [core] Error 1


Please help me.

Last edited by wildhuman; 08-30-2006 at 04:17 PM..
Reply With Quote
  #8 (permalink)  
Old 08-30-2006, 04:31 PM
Zimbra Employee
 
Posts: 604
Default

Unfortunately postfix version info is stored in more then one location. Try a find command like this to located all the places.
find zimbra/trunk -type f -exec egrep -l 'postfix-2.2.9|POSTFIX_VERSION' {} \;

Did you build openldap via the Makefile in the Thirdparty directory?
Reply With Quote
  #9 (permalink)  
Old 08-30-2006, 04:49 PM
Senior Member
 
Posts: 64
Default

Quote:
Originally Posted by brian
Unfortunately postfix version info is stored in more then one location. Try a find command like this to located all the places.
find zimbra/trunk -type f -exec egrep -l 'postfix-2.2.9|POSTFIX_VERSION' {} \;

Did you build openldap via the Makefile in the Thirdparty directory?
Thank you very much. I found it in plat_common.def. I have changed it. but now, there is another problem:

*** Creating postfix
(cd /mnt/scsi/tmp/zimbra/ZimbraBuild/mtabuild/opt/zimbra; tar xzf /mnt/scsi/tmp/zimbra/ZimbraBuild/../ThirdParty/PostFix/PostFix-2.2.11/builds/FC4/postfix-2.2.11.tgz
rm -f /mnt/scsi/tmp/zimbra/ZimbraBuild/mtabuild/opt/zimbra/postfix-2.2.11/conf/main.cf
cp /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/conf/postfix/master.cf /mnt/scsi/tmp/zimbra/ZimbraBuild/mtabuild/opt/zimbra/postfix-2.2.11/conf/master.cf
cp -f /mnt/scsi/tmp/zimbra/ZimbraBuild/../ThirdParty/PostFix/PostFix-2.2.11/builds/qshape.pl /mnt/scsi/tmp/zimbra/ZimbraBuild/mtabuild/opt/zimbra/postfix-2.2.11/sbin/qshape.pl
cp: cannot stat `/mnt/scsi/tmp/zimbra/ZimbraBuild/../ThirdParty/PostFix/PostFix-2.2.11/builds/qshape.pl': No such file or directory
make: *** [/mnt/scsi/tmp/zimbra/ZimbraBuild/mtabuild/opt/zimbra/postfix-2.2.11] Error 1

In fact, there is no this file
Reply With Quote
  #10 (permalink)  
Old 08-30-2006, 05:13 PM
Zimbra Employee
 
Posts: 604
Default

I'd encourage you to take a look at trunk/ThirdParty/PostFix/PostFix-2.2.5/Makefile to see how postfix is built for inclusion, that will allow you to replicate for the 2.2.11 build.
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.