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