[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cp-tools-discuss] Compiling gjdoc from CVS with automake
From: |
Alex Lancaster |
Subject: |
[Cp-tools-discuss] Compiling gjdoc from CVS with automake |
Date: |
Tue, 23 Nov 2004 00:51:54 -0800 |
Hey folks,
Lots of recent activity here on the mailing list and CVS on gjdoc!
Thanks to Julian adding a bunch of new features. It's been a bit
quiet of late... so I thought I'd jump in and try out Andrew
Overholt's new autotool'ed gjdoc, but have run into some problems with
linking.
First I compiled gnujaxp.jar and libxmlj from the CVS of the
classpathx/jaxp project. That seemed to go fine. It created shared
libraries for libxmlj but only a jar file for gnujaxp.jar (no shared
libraries, which it seems to have problems finding later).
Then I compiled gjdoc pointing CLASSPATH to the the gnujaxp.jar file
at configure-time, and LD_LIBRARY_PATH at compile-time set to find the
libxmlj.so shared library and using gij as the Java runtime ("java")
and it all goes fine until the linking phase:
$ LD_LIBRARY_PATH=/home/alex/packages/classpath/lib make
make all-am
make[1]: Entering directory `/home/alex/build/gjdoc' /bin/sh ./libtool
--mode=link gcj
--classpath=/home/alex/packages/classpath/share/java/gnujaxp.jar
-fassume-compiled -I/home/alex/src/remote-cvs/gnu.org/classpath/gjdoc/src -g
-O2 -o gjdoc --main=gnu.classpath.tools.gjdoc.Main -l-com-sun-javadoc
-l-com-sun-tools-doclets-Taglet -l-gnu-classpath-tools-gjdoc
-l-javax-xml-transform -l-javax-xml-parsers -lxmlj
gcj --classpath=/home/alex/packages/classpath/share/java/gnujaxp.jar
-fassume-compiled -I/home/alex/src/remote-cvs/gnu.org/classpath/gjdoc/src -g
-O2 -o .libs/gjdoc --main=gnu.classpath.tools.gjdoc.Main
/home/alex/build/gjdoc/.libs/lib-com-sun-javadoc.so
/home/alex/build/gjdoc/.libs/lib-com-sun-tools-doclets-Taglet.so
/home/alex/build/gjdoc/.libs/lib-gnu-classpath-tools-gjdoc.so
-l-javax-xml-transform -l-javax-xml-parsers
/home/alex/packages/classpath/lib/libxmlj.so -L/usr/lib /usr/lib/libxslt.so
/usr/lib/libxml2.so -lz -lpthread -lm -Wl,--rpath
-Wl,/home/alex/packages/classpath/lib
/usr/bin/ld: cannot find -l-javax-xml-transform
collect2: ld returned 1 exit status
make[1]: *** [gjdoc] Error 1
make[1]: Leaving directory `/home/alex/build/gjdoc'
make: *** [all] Error 2
I do not have a full installation of classpath itself, but just gcj
which seems sufficient for most of the compile. The
configure.ac/Makefile.am seems to be setup to look for a shared
library version of javax.xml.parsers, but it already appears in the
jar file and the jaxp configure/compile didn't create a shared
library:
$ jar tvf /home/alex/packages/classpath/share/java/gnujaxp.jar
<snip>
0 Sat Nov 20 11:38:30 PST 2004 javax/xml/parsers/
4382 Sat Nov 20 11:38:28 PST 2004
javax/xml/parsers/DocumentBuilderFactory.class
<snip>
I was wondering what the requirements of Andrew's gcj/classpath
toolchain is in order for gjdoc to compile? For reference here's my
autotools/gcj info on Fedora Core 2:
$ rpm -q autoconf automake libtool libgcj gcc-java
autoconf-2.59-3
automake-1.8.3-1
libtool-1.5.6-1
libgcj-3.3.3-7
gcc-java-3.3.3-7
Thanks,
Alex
- [Cp-tools-discuss] Compiling gjdoc from CVS with automake,
Alex Lancaster <=
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Julian Scheid, 2004/11/23
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Alex Lancaster, 2004/11/23
- Message not available
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Alex Lancaster, 2004/11/24
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Andrew Overholt, 2004/11/24
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Andrew Overholt, 2004/11/24
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Julian Scheid, 2004/11/25
- Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Andrew Overholt, 2004/11/25
Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake, Andrew Overholt, 2004/11/24