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

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 Display Modes
  #1 (permalink)  
Old 11-30-2005, 03:18 PM
Special Member & Volunteer
 
Posts: 155
Default CVS Build Troubles

Howdy,

I'm hoping to create a generic build script that anyone can use to build from CVS (which handles grabbing all the dependencies, etc etc).

It's coming along really well, except I ran into a snag during my own build. I gave it a few days in case it was just a CVS problem, but still no joy.

Basically, after downloading the dependencies, I go into the ZimbraBuild dir, run 'make', and I get the following error:

Code:
# make
(cd /root/zimbra-cvs/main/ZimbraBuild/../ZimbraServer; /usr/bin/ant \
	-Dplat.tag=UNKNOWN \
	-Dzimbra.buildinfo.version=3.0.0_M3_101.UNKNOWN \
	-Dzimbra.buildinfo.release=20051130170512 -Dzimbra.buildinfo.date=20051130170512 \
	-Dzimbra.buildinfo.host=zimbra.rwcwarranty.com dev-dist ; )
Buildfile: build.xml

build-init:

compile:
    [javac] Compiling 322 source files to /root/zimbra-cvs/main/ZimbraServer/build/classes
    [javac] /root/zimbra-cvs/main/ZimbraServer/src/java/com/zimbra/cs/object/handler/NANPHandler.java:49: cannot find symbol
    [javac] symbol  : constructor ObjectHandler()
    [javac] location: class com.zimbra.cs.object.ObjectHandler
    [javac] public class NANPHandler extends ObjectHandler {
    [javac]        ^
    [javac] /root/zimbra-cvs/main/ZimbraServer/src/java/com/zimbra/cs/object/handler/RegexHandler.java:48: cannot find symbol
    [javac] symbol  : constructor ObjectHandler()
    [javac] location: class com.zimbra.cs.object.ObjectHandler
    [javac] public class RegexHandler extends ObjectHandler {
    [javac]        ^
    [javac] /root/zimbra-cvs/main/ZimbraServer/src/java/com/zimbra/cs/object/handler/TrackingHandler.java:58: cannot find symbol
    [javac] symbol  : constructor ObjectHandler()
    [javac] location: class com.zimbra.cs.object.ObjectHandler
    [javac] public class TrackingHandler extends ObjectHandler {
    [javac]        ^
    [javac] /root/zimbra-cvs/main/ZimbraServer/src/java/com/zimbra/cs/object/handler/URLHandler.java:49: cannot find symbol
    [javac] symbol  : constructor ObjectHandler()
    [javac] location: class com.zimbra.cs.object.ObjectHandler
    [javac] public class URLHandler extends ObjectHandler {
    [javac]        ^
    [javac] Note: /root/zimbra-cvs/main/ZimbraServer/src/java/com/zimbra/cs/service/FeedManager.java uses or overrides 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.
    [javac] 4 errors

BUILD FAILED
/root/zimbra-cvs/main/ZimbraServer/build.xml:249: Compile failed; see the compiler error output for details.
The Zimbra Network Edition is currently installed on the machine, and I have JAVA_HOME set to "/opt/zimbra/jdk1.5.0_05/".

I can see the classes it's complaining about:

main/ZimbraServer/build/classes/com/zimbra/cs/object/ObjectHandler.class
main/ZimbraServer/src/java/com/zimbra/cs/object/ObjectHandler.java

I'm running this on CentOS 4.2, which is why is why plat.tag is set to "UNKNOWN".

I solved some other problems by symlinking main/ZimbraBuild/defs/RHEL.def to main/ZimbraBuild/defs/UNKNOWN.def.

Is there something not being set correctly due to the distro I'm on that's preventing that from compiling correctly? Maybe I screwed something else up? :-)

Any thoughts would be great.

As soon as the script works I'll gladly post it on here :-)

Thanks,
-Eric
Reply With Quote
  #2 (permalink)  
Old 11-30-2005, 06:48 PM
Zimbra Employee
 
Posts: 4,784
Default

Seems you found a problem with our CVS tree. Deletes aren't working. If you just delete this directory:

/root/zimbra-cvs/main/ZimbraServer/src/java/com/zimbra/cs/object/handler/

it should compile. Let us know if you hit anyother problems.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 11-30-2005, 07:09 PM
Zimbra Employee
 
Posts: 2,073
Default cvs import

Our cvs synchronizer was down, too - so I've fixed the tree, and It's coming back up to date.
Reply With Quote
  #4 (permalink)  
Old 11-30-2005, 10:32 PM
Special Member & Volunteer
 
Posts: 155
Default

Quote:
Originally Posted by marcmac
Our cvs synchronizer was down, too - so I've fixed the tree, and It's coming back up to date.
Aha!

Yes, that made a big difference.

Doing a 'cvs update' produces all sorts of changes, deletions, and the like. Much more what I'd expect that what I previously was seeing :-)

Now, it still doesn't compile, but it's a completely different error, and I'm sure it's just related to the snapshot I have ATM, I'll try again tomorrow.

Thanks,
-Eric
Reply With Quote
  #5 (permalink)  
Old 11-30-2005, 10:39 PM
Zimbra Employee
 
Posts: 2,073
Default error?

What's the error? I don't know if our tree is up to date or not, yet, but it _usually_ builds...
Reply With Quote
  #6 (permalink)  
Old 11-30-2005, 11:15 PM
Special Member & Volunteer
 
Posts: 155
Default

Quote:
Originally Posted by marcmac
What's the error? I don't know if our tree is up to date or not, yet, but it _usually_ builds...
Ya know... I just did another 'cvs update', it pulled down a few more updates, and the problem went away.

Thanks!
-Eric
Reply With Quote
  #7 (permalink)  
Old 12-01-2005, 02:19 PM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

i'm building on debian from current cvs

bodged my way through all the compile stuff, now getting a build.xml error:

BUILD FAILED
/opt/zimbra/zimbra-cvs/ZimbraWebClient/build.xml:542: Could not create task or type of type: propertyfile.

any ideas?
Reply With Quote
  #8 (permalink)  
Old 12-01-2005, 02:24 PM
Zimbra Employee
 
Posts: 2,073
Default ant version?

Which ant version are you using?
Reply With Quote
  #9 (permalink)  
Old 12-01-2005, 02:26 PM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

Apache Ant version 1.6.5 compiled on October 1 2005
Reply With Quote
  #10 (permalink)  
Old 12-01-2005, 02:56 PM
Zimbra Employee
 
Posts: 4,784
Default

Quote:
Originally Posted by dijichi2
Apache Ant version 1.6.5 compiled on October 1 2005
That looks good, just make sure that 'which ant' returns the right ant and that ANT_HOME is set to the ant 1.6.5 dir.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0