[Vm-dev] SqueakVM 4 on FreeBSD 8?

David T. Lewis lewis at mail.msen.com
Tue Dec 7 01:55:30 UTC 2010

On Mon, Dec 06, 2010 at 08:04:06PM +0000, Amir Ansari wrote:
> Following on from my previous post, is there a way to build the latest stable Squeak- from source on FreeBSD 8?  (The ports version is still stuck below 4.)
> Configure: ../unix/cmake/configure --without-SUGAR --without-UUIDPlugin --prefix=/usr/local
> Make proceeds without any errors.  However, trying to run squeak:
> SQUEAK_PLUGINS=/usr/local/lib/squeak/4.0.3-2202
> + exec /usr/local/lib/squeak/4.0.3-2202/squeakvm seaside.image
> /usr/local/lib/squeak/4.0.3-2202/so.vm-display-X11: Undefined symbol "error"
> could not find display driver vm-display-X11; either:
> - check that /usr/local/lib/squeak/4.0.3-2202/vm-display-X11.so exists, or
> - use the '-plugins <path>' option to tell me where it is, or
> - remove DISPLAY from your environment.
> Abort trap (core dumped)
> It works perfectly with Squeak- from source.  Note that I'm not applying any of the patches that are in the FreeBSD port for Squeak.
> I hope someone can help!


This may be a mismatch between VMMaker version (i.e. the generated
sources) versus the platform support code (kept in Subversion). It
may not be related to FreeBSD at all.

Some time in the recent past we changed how error() is handled in
the VM (look in interp.c and search for the defaultErrorProc()),
so I suspect that the something is out of sync in the source
that you are compiling.

As a workaround, it is likely that if you just edit your
platforms/unix/vm-display-X11/sqUnixX11.c and find the call to
error(), and either comment it out or replace it with a your
own local function called error() instead, you will end up with
a working module. The ``Undefined symbol "error" '' message is
legitimate, it means that the vm-display-X11 module (which is a
dynamic libary) has a reference to the error() function (which
is does), but the OS cannot find an error() function to link
at runtime.

I'm not sure if this helps any ....


More information about the Vm-dev mailing list