This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Trying to compile Xerces's jar
- From: Andrew Cowie <andrew at operationaldynamics dot com>
- To: "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: Tue, 22 Feb 2005 12:55:13 +1100
- Subject: Trying to compile Xerces's jar
- Organization: Operational Dynamics
I'm trying to build a project which depends on jars from Apache's Xerces
XML DOM library, http://xml.apache.org/xerces2-j/ , but it errors out on
me in funny ways.
[These jars run fine in gij, btw]
$ gcj -classpth xml-apis.jar:resolver.jar:xercesImpl.jar -shared \
-g -o xerces.so -c xml-apis.jar resolver.jar xercesImpl.jar
errors out with:
java/io/OutputStream.java: In class `java.io.OutputStream':
java/io/OutputStream.java: In constructor `()':
java/io/OutputStream.java:0: internal compiler error: Segmentation fault
But,
$ gcj -shared -g -o xml-apis.so -c xml-apis.jar resolver.jar
works fine, but then
$ gcj -classpth xml-apis.jar:resolver.jar:xercesImpl.jar -shared \
-g -o xerces.so -c xercesImpl.jar
bails out with:
org/apache/xerces/util/XMLCatalogResolver.java: In class `org.apache.xerces.util.XMLCatalogResolver':
org/apache/xerces/util/XMLCatalogResolver.java: In method `org.apache.xerces.util.XMLCatalogResolver.setPreferPublic(boolean)':
org/apache/xerces/util/XMLCatalogResolver.java:0: error: class 'org.apache.xml.resolver.CatalogManager' has no method named 'setPreferPublic' matching signature '(Z)V'
Is this just a case of "must be built from the ground up with gcj", or
am I doing something wrong, or...
Cheers,
AfC
Sydney