Linking with DOM
Per Bothner
per@bothner.com
Fri Apr 15 02:59:00 GMT 2005
In my quest to build as much of Kawa as possible using GCJ-4.0,
I'm now trying to build various classes that depend on org.w3c.dom.
I can compile OK, but when I link I get a lot of undefined references:
../libtool --mode=link --tag=GCJ gcj \
-o kawa1 gnu-bytecode.lo gnu-lists.lo gnu-expr.lo
gnu-kawa-functions.lo gnu-kawa-lispexpr.lo gnu-kawa-reflect.lo
gnu-kawa-util.lo gnu-mapping.lo gnu-math.lo gnu-text.lo
gnu-commonlisp-lang.lo gnu-xml.lo gnu-kawa-xml.lo gnu-xquery-util.lo
gnu-xquery-lang.lo kawa-lang.lo kawa-repl.lo kawa-standard.lo
--main=kawa.repl
libtool: link: gcj -o kawa1 .libs/gnu-bytecode.o .libs/gnu-lists.o
.libs/gnu-expr.o .libs/gnu-kawa-functions.o .libs/gnu-kawa-lispexpr.o
.libs/gnu-kawa-reflect.o .libs/gnu-kawa-util.o .libs/gnu-mapping.o
.libs/gnu-math.o .libs/gnu-text.o .libs/gnu-commonlisp-lang.o
.libs/gnu-xml.o .libs/gnu-kawa-xml.o .libs/gnu-xquery-util.o
.libs/gnu-xquery-lang.o .libs/kawa-lang.o .libs/kawa-repl.o
.libs/kawa-standard.o --main=kawa.repl
.libs/gnu-kawa-xml.o(.text+0x4e15): In function
`gnu::kawa::xml::KText::splitText(int)':
/tmp/unmodified/gnu/kawa/xml/KText.java:25: undefined reference to
`org::w3c::dom::DOMException::class$'
.libs/gnu-kawa-xml.o(.text+0x4e38):/tmp/unmodified/gnu/kawa/xml/KText.java:25:
undefined reference to `org::w3c::dom::DOMException::DOMException(short,
java::lang::String*)'
.libs/gnu-kawa-xml.o(.text+0x4e9f): In function
`gnu::kawa::xml::KText::replaceWholeText(java::lang::String*)':
/tmp/unmodified/gnu/kawa/xml/KText.java:37: undefined reference to
`org::w3c::dom::DOMException::class$'
....
.libs/gnu-kawa-xml.o(.data.rel+0x3b0c): undefined reference to
`org::w3c::dom::Attr::class$'
collect2: ld returned 1 exit status
So I figure I need to link some other library, and so I look
in $libdir - but I don't see anything that looks suggestive.
Can I link in JAXP classes using the old ABI?
(I am willing to switch to the new ABI if that is recommded.)
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Java
mailing list