[kaffe] Build Problems

Rob Gonzalez rgonzale at wso.williams.edu
Mon Aug 4 11:09:02 PDT 2003


Hi all,

I modified Kaffe while working on my thesis last year and am currently
trying to move the modifications to the latest CVS head.  Unfortunately, I
can no longer build Kaffe.

Here is the error I get.  Signature_name, BridgeMethod_name, and
NewLooj_name are Utf8Const* declared in baseClasses.c, though they are
declared as extern in classMethod.h.  checkPtr() you are probably familiar
with.

gcc -DLOOJVM -g -O2 -Wall -Wstrict-prototypes -o kaffeh sigs.o support.o
main.o mem.o inflate.o jar.o utf8const.o readClass.o constants.o debug.o 
readClass.o(.text+0xfb1): In function `readAttributes':
/home/gonzo/work/thesis/kaffe/loojvm/kaffe/kaffeh/../kaffevm/utf8const.h:58: undefined
reference to `Signature_name'
readClass.o(.text+0x1294):/home/gonzo/work/thesis/kaffe/loojvm/kaffe/kaffeh/../kaffevm/utf8const.h:58: undefined
reference to `BridgeMethod_name'
readClass.o(.text+0x16e1):/home/gonzo/work/thesis/kaffe/loojvm/kaffe/kaffeh/../kaffevm/utf8const.h:58: undefined
reference to `NewLooj_name'
readClass.o(.text+0x188f): In function `readAttributes':
/home/gonzo/work/thesis/kaffe/loojvm/kaffe/kaffeh/../kaffevm/readClass.c:407: undefined
reference to `checkPtr'
collect2: ld returned 1 exit status
make[2]: *** [kaffeh] Error 1
make[2]: Leaving directory
`/home/gonzo/work/thesis/kaffe/loojvm/kaffe/kaffeh'
make[1]: *** [stamp-kaffeh] Error 2
make[1]: Leaving directory `/home/gonzo/work/thesis/kaffe/loojvm/include'
make: *** [all-recursive] Error 1


I believe that baseClasses.o should be linked during this call to gcc to
fix the issue.  I have tried running automake, then configure, then make
and it doesn't seem to find that dependency.

Any suggestions?

Thanks,
Rob





More information about the kaffe mailing list