[MKSearch-dev] Week 4 round up

Bruno Postle bruno at mkdoc.com
Thu Nov 11 15:39:27 GMT 2004


Sorry, I've been away in Rome and I'm just catching-up, but I have 
lots of mksearch stuff to report :-).

I get this error building JAXP:

  ./compile-jaxp.sh
  Cleaning build directory...
  Preparing build directory...
  Compiling JAXP API...
  Compiling W3C DOM package...
  Compiling SAX package...
  Compiling GNU XML parser package...
  Creating a JAXP service property directory...
  Copying the JAXP service properties file...
  cp: cannot stat `/home/bruno/src/svn/mksearch/lib-src/jaxp/META-INF/services/*': No such file or directory

There is no 'lib-src/jaxp/META-INF' directory in subversion, so I 
guess it just hasn't been committed.


The compile-mksearch.sh script has this at the beginning:

  rm -rf $mk_build
  mkdir $mk_build

The 'build' directory is now in subversion itself, so this deletes 
the 'build/.svn' metadata and stops the svn command from working.


I'm a bit wary of all these `rm -rf $mk_build/whatever` statements.  
If I had a /whatever directory on my system and ran the script 
without setting $mk_build, it would delete everything in it.

So, the bash scripts could first test to see if $mk_build is set:

  [ $mk_build ] || exit 1
  [ $mk_home ]  || exit 1

..or something similar?


I get an error trying to compile jspider, this error is actually 
generated by util/list-jspider.sh:

  ./compile-jspider.sh
  Generating JSpider source listing...
  Exception in thread "main" java.lang.NoClassDefFoundError: com.mkdoc.util.SourceList
     at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.4.0.0)
     at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.4.0.0)
     at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.4.0.0)
     at __libc_start_main (/lib/tls/libc-2.3.2.so)


I can't build util/compile-lister.sh:

  ./compile-lister.sh
  gcj: /home/bruno/src/svn/mksearch/src/com/mkdoc/io/JavaFileFilter.java: 
  No such file or directory

There is no 'src/com/mkdoc/io' directory, so I guess this is missing 
from subversion too.


..and lastly jtidy doesn't run, though I suspect this might be 
something to do with missing jaxp files:

  ./run-jtidy.sh foo.html
  Tidy (vers 4th August 2000) Parsing "foo.html"
  Exception in thread "main" java.lang.IllegalAccessError
     at _Jv_SearchMethodInClass(java.lang.Class, java.lang.Class, _Jv_Utf8Const, _Jv_Utf8Const) (/usr/lib/libgcj.so.4.0.0)
     at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.4.0.0)
     at org.w3c.tidy.ParserImpl$ParseHead.parse(org.w3c.tidy.Lexer, org.w3c.tidy.Node, short) (Unknown Source)
     at org.w3c.tidy.ParserImpl$ParseHTML.parse(org.w3c.tidy.Lexer, org.w3c.tidy.Node, short) (Unknown Source)
     at org.w3c.tidy.ParserImpl.parseDocument(org.w3c.tidy.Lexer) (Unknown Source)
     at org.w3c.tidy.Tidy.parse(java.io.InputStream, java.lang.String, java.io.OutputStream) (Unknown Source)
     at org.w3c.tidy.Tidy.main(java.lang.String[]) (Unknown Source)

I get a different error if I try and use a pipe:

  ./run-jtidy.sh < foo.html
  Tidy: can't open file "stdin"

-- 
Bruno


More information about the MKSearch-dev mailing list