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

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


--9Cifn/h8XkfDE4v2
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3D/usr/local/include --with-libraries=3D/usr/=
local/lib --with-engine=3Djit3
# vi libtool    (to change need_version)
# gmake
[...]
/bin/sh ./rebuildLib @essential.files
Compiling classes from @essential.files using  /usr/local/src/kaffe/kaffe/k=
affe/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=20
# ls -ld /usr/local/kaffe*               =20
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)=20

(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 servi=
ce: mainport
java.lang.NoSuchMethodError: javax/servlet/ServletContext.setAttribute(Ljav=
a/lang/String;Ljava/lang/Object;)V
        at freenet.interfaces.servlet.ServletContainer.createServletContext=
(ServletContainer.java:142)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.loadCont=
ext(MultipleHttpServletContainer.java:183)
        at freenet.interfaces.servlet.MultipleHttpServletContainer.init(Mul=
tipleHttpServletContainer.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=20
[...]
(gdb) bt
#0  0x401de27b in kill ()
#1  0x401ddbd7 in abort ()
#2  0x40198f53 in __assert ()
#3  0x40033334 in dispatchException (eobj=3D0x196f558, baseframe=3D0xd5fb90)
    at exception.c:398
#4  0x40033558 in floatingException (frame=3D0x1b8c8f4) at exception.c:542
#5  0x40071a2c in nullException (sig=3D11, code=3D28887396, ctx=3D0x1b8c914)
    at signal.c:87
#6  0x40009004 in ?? ()
#7  0x4006fd88 in jmutex_unlock (lock=3D0x148b898) at jthread.c:1957
#8  0x40049051 in slowUnlockMutex (lkp=3D0xf227c4, where=3D0x1b8cabc) at ks=
em.h:116
#9  0x400496a9 in slowUnlockObject (obj=3D0xf227c0, where=3D0x1b8cabc)
    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=3D0x149ab0, func=3D0x1d41348, obj=3D0x6=
0d830,=20
    args=3D0x1b8cf94 "/0\005@`=F0\a@=B8=B1\001@<g\b@", ret=3D0x1b8cbec)
    at ../../config/i386/common.h:38
#17 0x4003ff0d in Kaffe_CallVoidMethodV (env=3D0x40080c34, obj=3D0x60d830,=
=20
    meth=3D0x149ab0, args=3D0x1b8cf94 "/0\005@`=F0\a@=B8=B1\001@<g\b@") at =
jni.c:1094
#18 0x4003ffaa in Kaffe_CallVoidMethod (env=3D0x40080c34, obj=3D0x60d830,=
=20
    meth=3D0x149ab0) at jni.c:1107
#19 0x4005357b in firstStartThread (arg=3D0x60d830) at thread.c:357
#20 0x4006edb4 in start_this_sucker_on_a_new_frame () at jthread.c:1266
#21 0x4006eed2 in jthread_create (pri=3D-809513300,=20
    func=3D0x4006ff64 <jcondvar_wait+160>, daemon=3D806984, jlThread=3D0x14=
ebb8,=20
    threadStackSize=3D0) 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.

--=20
Greg Wooledge                  |   "Truth belongs to everybody."
greg@wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |

--9Cifn/h8XkfDE4v2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (OpenBSD)

iD8DBQE+z8i6kAkqAYpL9t8RAuSEAKCmVVeuLy0GLfTbDru+Jh/HPrIapQCgl0S8
dYOdImuMhPtExglrFd7y8ho=
=gTzk
-----END PGP SIGNATURE-----

--9Cifn/h8XkfDE4v2--