ObjectiveCPlugin, VMMaker usage

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

ObjectiveCPlugin, VMMaker usage

Damien Pollet
Hi,

tonight I've been trying without success to build Alain's ObjectiveCPlugin:
    http://lists.apple.com/archives/objc-language/2004/Apr/msg00002.html
I'm using the latest tarball of the VM source, VMMaker from SqueakMap,
and a 3.9 7033 image.

I got VMM to generate an ObjectiveCPlugin.c file, but the build system
doesn't seem to see it, even after running make in unix/config,
re-configuring, and RTFMing:
    http://squeakvm.org/unix/devel.html#html/devel.m4.3.1
    http://minnow.cc.gatech.edu/squeak/VMMaker

That's my first attempt at this kind of stunt, and I would welcome
pointers and suggestions :-)

--
 Damien Pollet
 type less, do more

Reply | Threaded
Open this post in threaded view
|

Re: ObjectiveCPlugin, VMMaker usage

Damien Pollet
OK, following Goran's instructions at http://goran.krampe.se/blog, I
can now build a VM. But when I add a plugin (ObjC or GTK) I get
strange compile errors...

for the ObjC plugin:

In file included from Squeak-3.9-7/build/config.h:184,
                 from Squeak-3.9-7/platforms/Cross/vm/sqMemoryAccess.h:19,
                 from Squeak-3.9-7/platforms/Cross/vm/sqVirtualMachine.h:15,
                 from
Squeak-3.9-7/platforms/unix/plugins/ObjectiveCPlugin/sqUnixObjC.m:2:
Squeak-3.9-7/platforms/unix/vm/glibc.h:6: error: syntax error before 'c'
Squeak-3.9-7/platforms/unix/vm/glibc.h:6: error: syntax error before '&' token
Squeak-3.9-7/platforms/unix/vm/glibc.h:7: error: syntax error before 'c'
[...]

is it a compiler problem, or some preprocessor stuff that the objc
compiler doesn't like ?

for the GtkPlugin:

Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c: In
function 'GenericCallback':
Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c:123:
error: 'struct VirtualMachine' has no member named 'callbackEnter'
Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c: In
function 'gReturnFromCallback':
Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c:149:
error: 'struct VirtualMachine' has no member named 'callbackLeave'

This one is really funny because I grepped the sources (both 3.9-7 and
svn) and these identifiers appear nowhere else...

I'm on Linux x86, using GNUstep for the Foundation libs. Any idea?

--
 Damien Pollet
 type less, do more