Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#11408 closed defect (fixed)

Failed to compile javancss

Reported by: Philippe.Lafoucriere@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.3.2
Keywords: javancss Cc: dave@…,markd@…
Port:

Description

Hi,

I'm trying to compile cobertura, and there's a dependancy on "javancss" which won't compile. Here's the complete output :

$ sudo port install cobertura 
Password:
--->  Fetching javacc
--->  Attempting to fetch javacc-4.0.tar.gz from https://javacc.dev.java.net/files/documents/17/26776/
--->  Verifying checksum(s) for javacc
--->  Extracting javacc
--->  Configuring javacc
--->  Building javacc with target all
--->  Staging javacc into destroot
--->  Installing javacc 4.0_0
--->  Activating javacc 4.0_0
--->  Cleaning javacc
--->  Fetching ccl-util
--->  Attempting to fetch ccl32.69.zip from http://www.kclee.de/clemens/java/ccl/
--->  Verifying checksum(s) for ccl-util
--->  Extracting ccl-util
--->  Applying patches to ccl-util
--->  Configuring ccl-util
--->  Building ccl-util with target jar
--->  Staging ccl-util into destroot
--->  Installing ccl-util 32.69_0
--->  Activating ccl-util 32.69_0
--->  Cleaning ccl-util
--->  Fetching javancss
--->  Attempting to fetch javancss21.41.zip from http://www.kclee.de/clemens/java/javancss/
--->  Verifying checksum(s) for javancss
--->  Extracting javancss
--->  Applying patches to javancss
--->  Configuring javancss
--->  Building javancss with target jar
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41" && ant jar" returned error 1
Command output:     [javac]             while( enum.hasMoreElements() ) 
    [javac]                    ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/Javancss.java:547: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]                 String fileName = FileUtil.normalizeFileName( (String)enum.nextElement() );
    [javac]                                                                       ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/test/JavancssTest.java:86: ')' expected
    [javac]                 , "Expected 7 Javadocs in in file Test20.java but got " + jvdcs + "!" );
    [javac]                 ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/test/JavancssTest.java:199: ')' expected
    [javac]                 , "pmJacob.javadocsLn: " 
    [javac]                 ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/test/JavancssTest.java:514: ')' expected
    [javac]             , "File test/Output56.txt and javancss output differs:\n"
    [javac]                 ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/test/JavancssTest.java:544: ')' expected
    [javac]             , "File test/Output32.txt and javancss output differs:\n"
    [javac]                 ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/test/XmlFormatterTest.java:45: ')' expected
    [javac]             assert( sText.equals( "79" ), sText );
    [javac]                                         ^
    [javac] /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/src/javancss/test/XmlFormatterTest.java:82: ')' expected
    [javac]             assert( sText.equals( sCompare ), sText );
    [javac]                                             ^
    [javac] 12 errors

BUILD FAILED
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_java_javancss/work/javancss21.41/build.xml:24: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Error: The following dependencies failed to build: javancss junit objectweb-asm objectweb-anttasks
Error: Status 1 encountered during processing.

Problem appears on intel and powerpc macs.

Change History (4)

comment:1 Changed 14 years ago by pipping@…

Milestone: Port Bugs

comment:2 Changed 14 years ago by pguyot (Paul Guyot)

Cc: dave@… added

comment:3 Changed 14 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: newclosed

Committed update to 28.49 fixes build failure.

comment:4 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.