Problems compiling latest squeakvm (svn)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems compiling latest squeakvm (svn)

CdAB63
 
1st:
$ svn co http://squeakvm.org/svn/squeak/trunk squeak

2nd:
$ cd squeak && mkdir bld && cd bld

3rd:
$ ../platforms/unix/cmake/configure

4th: (necessary for Fedora 13)
$ vi ../platforms/unix/plugins/UUIDPlugin/sqUnixUUID.c
- #include <uuid.h>
+ #include <uuid/uuid.h>


5th:
$ make

It bangs with:

Linking C executable squeakvm
CMakeFiles/squeakvm.dir/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c.o: In function `sqGetInterpreterProxy':
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:360: undefined reference to `internalIsImmutable'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:361: undefined reference to `internalIsMutable'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:362: undefined reference to `primitiveFailFor'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:363: undefined reference to `classAlien'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:364: undefined reference to `getStackPointer'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:365: undefined reference to `sendInvokeCallbackStackRegistersJmpbuf'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:366: undefined reference to `reestablishContextPriorToCallback'
/home/casimiro/Softwares/squeak/squeak/platforms/Cross/vm/sqVirtualMachine.c:367: undefined reference to `classUnsafeAlien'
collect2: ld returned 1 exit status
make[2]: ** [squeakvm] Erro 1
make[1]: ** [CMakeFiles/squeakvm.dir/all] Erro 2
make: ** [all] Erro 2


Piece of code where fail happens (sqVirtualMachine.c):

#if VM_PROXY_MINOR > 7

        VM->internalIsImmutable = internalIsImmutable;
        VM->internalIsMutable   = internalIsMutable;
        VM->primitiveFailFor    = primitiveFailFor;
        VM->classAlien          = classAlien;
        VM->getStackPointer     = (sqInt *(*)(void))getStackPointer;
        VM->sendInvokeCallbackStackRegistersJmpbuf = sendInvokeCallbackStackRegistersJmpbuf;
        VM->reestablishContextPriorToCallback = reestablishContextPriorToCallback;
        VM->classUnsafeAlien    = classUnsafeAlien;
        VM->callbackEnter = callbackEnter;
        VM->callbackLeave = callbackLeave;
        VM->addGCRoot = addGCRoot;
        VM->removeGCRoot = removeGCRoot;

#endif



signature.asc (269 bytes) Download Attachment