This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Trying to compile Xerces's jar


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


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