This is the mail archive of the rhug-rhats@sources.redhat.com mailing list for the RHUG project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Annoying gcj bug with extensions directory support



When you build and install xerces from rhug, it puts the appropriate
link in the extensions directory ($prefix/share/java/ext/xerces.jar).

If you try building xerces again, you get this:

gcj -C --encoding=8859_1 --classpath=upstream/src:./upstream/src -O2 -d upstream/src upstream/src/org/apache/xerces/validators/schema/GeneralAttrCheck.java
upstream/src/org/apache/xerces/framework/XMLContentSpec.java:625: Interface `org.apache.xerces.framework.XMLContentSpec$Provider' already defined in XMLContentSpec.java:0.
       public interface Provider {
                        ^
upstream/src/org/apache/xerces/framework/XMLContentSpec.java:642: confused by earlier errors, bailing out
make: *** [upstream/src/org/apache/xerces/validators/schema/GeneralAttrCheck.class] Error 1

Removing xerces.jar from the extensions directory solves the problem.

I guess it's too late to do anything about 3.1, but this sure would be
nice to fix for 3.1.1.  I will file a PR.

I guess the work-around for now is to compile with `--extdirs='.

AG


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]