Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41

Thread: CVS Build Troubles

  1. #1
    andreychek is offline Special Member & Volunteer
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    9

    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

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default cvs import

    Our cvs synchronizer was down, too - so I've fixed the tree, and It's coming back up to date.

  4. #4
    andreychek is offline Special Member & Volunteer
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    9

    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

  5. #5
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default error?

    What's the error? I don't know if our tree is up to date or not, yet, but it _usually_ builds...

  6. #6
    andreychek is offline Special Member & Volunteer
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    9

    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

  7. #7
    dijichi2 is online now OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    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?

  8. #8
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default ant version?

    Which ant version are you using?

  9. #9
    dijichi2 is online now OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    Apache Ant version 1.6.5 compiled on October 1 2005

  10. #10
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CVS updates
    By simonellistonball in forum Developers
    Replies: 3
    Last Post: 06-22-2006, 08:41 AM
  2. Updated cvs build instructions?
    By dijichi2 in forum Developers
    Replies: 2
    Last Post: 06-20-2006, 11:51 AM
  3. GA build from CVS, cannot run
    By vpoorboy in forum Installation
    Replies: 5
    Last Post: 02-21-2006, 08:04 AM
  4. Latest CVS version build trouble
    By graffiti in forum Developers
    Replies: 9
    Last Post: 12-19-2005, 07:14 PM
  5. CentOS 4.2 Build
    By andreychek in forum Developers
    Replies: 2
    Last Post: 12-09-2005, 09:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •