cp-tools-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake


From: Andrew Overholt
Subject: Re: [Cp-tools-discuss] Compiling gjdoc from CVS with automake
Date: Wed, 24 Nov 2004 20:48:01 -0500
User-agent: Mutt/1.4.1i

* Alex Lancaster <address@hidden> [2004-11-24 06:17]:
> I guess my question really is: under what environment/toolchain does
> the *current* autotooled version that Andrew checked in actually work?
> Perhaps Andrew could tell the environment that worked for him.
> 
> In other words what can I do to compile this via autoconf/automake so
> that it can compile with gcj?  Julian suggested I need to install the
> rhug module for xerces.

Sorry for not fixing this earlier, everyone.  I'm doing my work on Fedora
Core 3 x86 with stock gcj and autotools, etc.  I've tried with the BC ABI
branch of gcj as well and I get similar results.

I've attached a few files:

* buildgnujaxp.patch -> patch to enable gnujaxp to be built with autotools
                        and gcj (still a work-in-progress)
* buildgjdoc.patch -> patch that I would like to apply to gjdoc with some
                      fixes for building against gnujaxp (and some minor
                      build fixes)

Both patches should apply against CVS head of each.  What I've been
doing to test is:

---------------------------------------
# Set up directory structure and check out sources
mkdir build sources
cd sources
cvs -z3 -d:ext:address@hidden:/cvsroot/classpath co gjdoc
cvs -z3 -d:ext:address@hidden:/cvsroot/classpathx co gnujaxp

# Build gnujaxp (in same dir ... working on that :)
cd gnujaxp
patch -p0 < ~/buildgnujaxp.patch
rm -rf autom4te.cache aclocal.m4 config.guess config.sub ltmain.sh; aclocal
./configure
make
su
make install

# Patch & build gjdoc (in separate dir)
exit
cd ../gjdoc
patch -p0 < ~/buildgjdoc.patch
rm -rf autom4te.cache aclocal.m4 config.guess classes config.sub ltmain.sh; 
aclocal
cd ../../build
mkdir gjdoc
cd gjdoc
../../sources/gjdoc/autogen.sh
./configure
make
su
make install
---------------------------------------

This should install gnujaxp and gjdoc in /usr/local and then you should be
able to run gjdoc like so (I've been trying against the Java-GNOME
libgtk-java sources):

cd ~/sources/java-gnome/libgtk-java/src/java
CLASSPATH=/home/overholt/sources/gjdoc/src/resources gjdoc -d `pwd` org.gnu.gtk

I'm having issues with:

1. the resources ... we should compile the txt files that gjdoc is
   referencing as gcj resources or something
2. java.util.regex.PatternSyntaxException: At position 108 in regular
   expression pattern (in AuthorTaglet.java) [1]
3. I/O warning : failed to load external entity "../gjdoc_common.xsl"
   compilation error: element include
   xsl:include : unable to load ../gjdoc_common.xsl

I get 2. and 3. with libgcj but not IBM's 1.4.2 JVM, so I guess 2's a
problem with java.util.regex in libgcj.  3. I'm not so sure about.  Anyone
have any ideas?  Let me know if the above instructions are borked in some
way.

HTH,

Andrew

[1] Full trace (with gcj built from BC ABI branch ... similar results with
    stock FC3 gcj):

Resolving references in package comments...
Running doclet...
java.lang.reflect.InvocationTargetException
   at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, 
boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean, java.lang.Class) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, 
boolean, java.lang.Class[], java.lang.Object[], java.lang.Class) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at gnu.classpath.tools.gjdoc.Main.startDoclet(java.util.List) 
(/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.Main.start(java.lang.String[]) 
(/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at gnu.classpath.tools.gjdoc.Main.main(java.lang.String[]) 
(/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
Caused by: java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass() 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at _Jv_InitClass (/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at gnu.classpath.tools.taglets.AuthorTaglet.setTagletEnabled(boolean) 
(/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at 
gnu.classpath.tools.doclets.xmldoclet.Driver.instanceStart(com.sun.javadoc.RootDoc)
 (/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at 
gnu.classpath.tools.doclets.xmldoclet.Driver.start(gnu.classpath.tools.gjdoc.TemporaryStore)
 (/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, 
boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean, java.lang.Class) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   ...5 more
Caused by: java.util.regex.PatternSyntaxException: At position 108 in regular 
expression pattern:
expected end of subexpression
        ^\s*([^
 (]+(?:\s+[^
 
(]+)*)\s*[(<]\s*(([A-z0-9_\-\.]+)address@hidden(?:[.][A-z0-9_\-]+)+[A-z])\s*[)>]$
                                                                                
                                    ^
   at java.util.regex.Pattern.Pattern(java.lang.String, int) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at java.util.regex.Pattern.compile(java.lang.String, int) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at java.util.regex.Pattern.compile(java.lang.String) 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   at gnu.classpath.tools.taglets.AuthorTaglet.<clinit>() 
(/usr/local/lib/lib-gnu-classpath-tools-gjdoc.so.0.0.0)
   at java.lang.Class.initializeClass() 
(/home/overholt/gcj-inst/lib/libgcj.so.6.0.0)
   ...10 more




reply via email to

[Prev in Thread] Current Thread [Next in Thread]