On Fri, 2 Nov 2001, Kevin Fisher wrote:
On Fri, Nov 02, 2001 at 10:17:34AM +0100, Bert Freudenberg wrote:
On Thu, 1 Nov 2001, Kevin Fisher wrote:
Yes, I noticed that. :) I did enable it when I compiled and still no dice.. I must be doing something wrong.
One difference I noticed between 2.9a and the 3.0/3.1 VM is that the --enable-ffi=yes configure argument went away.
As I said before, you don't have to "enable" FFI. Just get the plugin. You don't even need libffi because it's statically linked into SqueakFFIPrims.so.
I realize that, I was only referring to self-built VM's. The 2.9a VM configure did have such an option if you were building from source. At one time I was trying to get FFI working on ARM, which is why I needed to rebuild it myself.
Out of curiosity, how did you produce that log below?
Oh, I just enabled the DPRINTF macro in sqUnixExternal.c (or whatever it's called). Helps figuring out that stuff.
-- Bert
In case you don't believe me: This is a log of the X11 example:
tryLoading ./SqueakFFIPrims.so loaded: ./SqueakFFIPrims.so ioFindExternalFunctionIn(getModuleName, 135169408) ioFindExternalFunctionIn(getModuleName, 135169408): build/squeak: undefined symbol: getModuleName ioFindExternalFunctionIn(setInterpreter, 135169408) ioFindExternalFunctionIn(initialiseModule, 135169408) ioFindExternalFunctionIn(initialiseModule, 135169408): build/squeak: undefined symbol: initialiseModule ioFindExternalFunctionIn(primitiveCallout, 135169408) tryLoading ./X11.so not found tryLoading libX11.so loaded: libX11.so ioFindExternalFunctionIn(XOpenDisplay, 1073836808) ioFindExternalFunctionIn(XGetInputFocus, 1073836808) ioFindExternalFunctionIn(XQueryPointer, 1073836808) ioFindExternalFunctionIn(primitiveFFIIntegerAt, 135169408) ioFindExternalFunctionIn(XCreateGC, 1073836808) ioFindExternalFunctionIn(XSetForeground, 1073836808) ioFindExternalFunctionIn(XFillRectangle, 1073836808) ioFindExternalFunctionIn(XDrawRectangle, 1073836808) ioFindExternalFunctionIn(XSync, 1073836808) ioFindExternalFunctionIn(XFreeGC, 1073836808) ioFindExternalFunctionIn(XCloseDisplay, 1073836808)