[kaffe] build failure if old version present, ServletContext.setAttribute

Greg Wooledge greg at wooledge.org
Sat May 24 12:30:01 PDT 2003


I've been unable to get CVS Kaffe to work for about 2 weeks now.
This is on OpenBSD 3.2 x86.  I have CVS Kaffe from May 9 in
/usr/local/kaffe.  Then:

# cvs -z3 update -dP
# ./configure --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-engine=jit3
# vi libtool    (to change need_version)
# gmake
[...]
/bin/sh ./rebuildLib @essential.files
Compiling classes from @essential.files using  /usr/local/src/kaffe/kaffe/kaffe/kaffe-bin -verbosegc at.dms.kjc.Main
Failed to locate native library "libnative" in path:
        /usr/local/kaffe/jre/lib
Aborting.
gmake[1]: *** [lib/stamp] Error 1
gmake[1]: Leaving directory `/usr/local/src/kaffe/libraries/javalib'
gmake: *** [all-recursive] Error 1

So, I stop Freenet and then:
# ls -ld /usr/local/kaffe*
lrwxr-xr-x  1 root  wheel    9 May 21 19:12 /usr/local/kaffe -> kaffe.bak
drwxr-xr-x  7 root  wheel  512 May  9 18:12 /usr/local/kaffe.bak
drwxr-xr-x  7 root  wheel  512 Mar 13 21:20 /usr/local/kaffe.debug
drwxr-xr-x  7 root  wheel  512 May 21 19:10 /usr/local/kaffe.new
# rm /usr/local/kaffe
# gmake
[... it builds cleanly ...]
# gmake install
[... installs cleanly in /usr/local/kaffe ...]
# rm -rf /usr/local/kaffe.new
# mv /usr/local/kaffe /usr/local/kaffe.new
# ln -s kaffe.new /usr/local/kaffe 
# ls -ld /usr/local/kaffe*                
lrwxr-xr-x  1 root  wheel    9 May 24 15:23 /usr/local/kaffe -> kaffe.new
drwxr-xr-x  7 root  wheel  512 May  9 18:12 /usr/local/kaffe.bak
drwxr-xr-x  7 root  wheel  512 Mar 13 21:20 /usr/local/kaffe.debug
drwxr-xr-x  7 root  wheel  512 May 24 15:22 /usr/local/kaffe.new

And then when I try to run Freenet:
$ java freenet.node.Main
assertion "!INTS_DISABLED()" failed: file "exception.c", line 398
Abort (core dumped) 

(That takes about 1-2 minutes.)  And in the freenet.log file there is:

24-May-03 3:24:34 PM (freenet.node.Main, main, ERROR): Failed to load service: mainport
java.lang.NoSuchMethodError: javax/servlet/ServletContext.setAttribute(Ljava/lang/String;Ljava/lang/Object;)V
        at freenet.interfaces.servlet.ServletContainer.createServletContext(ServletContainer.java:142)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.loadContext(MultipleHttpServletContainer.java:183)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.init(MultipleHttpServletContainer.java:154)
        at freenet.node.Main.loadService(Main.java:1467)
        at freenet.node.Main.startNode(Main.java:1385)
        at freenet.node.Main.main(Main.java:852)

And the core file:
$ gdb /usr/local/kaffe.new/jre/bin/kaffe-bin kaffe-bin.core 
[...]
(gdb) bt
#0  0x401de27b in kill ()
#1  0x401ddbd7 in abort ()
#2  0x40198f53 in __assert ()
#3  0x40033334 in dispatchException (eobj=0x196f558, baseframe=0xd5fb90)
    at exception.c:398
#4  0x40033558 in floatingException (frame=0x1b8c8f4) at exception.c:542
#5  0x40071a2c in nullException (sig=11, code=28887396, ctx=0x1b8c914)
    at signal.c:87
#6  0x40009004 in ?? ()
#7  0x4006fd88 in jmutex_unlock (lock=0x148b898) at jthread.c:1957
#8  0x40049051 in slowUnlockMutex (lkp=0xf227c4, where=0x1b8cabc) at ksem.h:116
#9  0x400496a9 in slowUnlockObject (obj=0xf227c0, where=0x1b8cabc)
    at locks.c:538
#10 0x1cca54e in ?? ()
#11 0xb418f4 in ?? ()
#12 0x14a5eb0 in ?? ()
#13 0x1fda3e in ?? ()
#14 0xb2a6cb in ?? ()
#15 0x1d413b0 in ?? ()
#16 0x400526aa in callMethodV (meth=0x149ab0, func=0x1d41348, obj=0x60d830, 
    args=0x1b8cf94 "/0\005@`ð\a@¸±\001@<g\b@", ret=0x1b8cbec)
    at ../../config/i386/common.h:38
#17 0x4003ff0d in Kaffe_CallVoidMethodV (env=0x40080c34, obj=0x60d830, 
    meth=0x149ab0, args=0x1b8cf94 "/0\005@`ð\a@¸±\001@<g\b@") at jni.c:1094
#18 0x4003ffaa in Kaffe_CallVoidMethod (env=0x40080c34, obj=0x60d830, 
    meth=0x149ab0) at jni.c:1107
#19 0x4005357b in firstStartThread (arg=0x60d830) at thread.c:357
#20 0x4006edb4 in start_this_sucker_on_a_new_frame () at jthread.c:1266
#21 0x4006eed2 in jthread_create (pri=-809513300, 
    func=0x4006ff64 <jcondvar_wait+160>, daemon=806984, jlThread=0x14ebb8, 
    threadStackSize=0) at jthread.c:1336

So then I go back to the May 9 build.  I've been doing this for a
while now, intermittently, but it's long past time to report it. :-/
I don't know exactly when the last working date is; it could be later
than May 9, but that's the version I have saved.

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030524/e10f290c/attachment-0002.pgp 


More information about the kaffe mailing list