[ENH][GOODIE] OSProcess V1.2

David T. Lewis lewis at mail.msen.com
Sun Jul 16 13:44:45 UTC 2000


On Sun, Jul 16, 2000 at 01:18:58AM -0400, David T. Lewis wrote:
> 
> On Sat, Jul 15, 2000 at 07:26:18PM -0700, Ned Konz wrote:
> > 
> > I'm getting an undefined external "thisSession" when running with the
> > current VM off Sourceforge. It's even in the plugin sources that were
> > generated.
> 
> "thisSession" is a global declared in sqFilePrims.c. I suspect that the
> recent plugin-ization of the VM has bitten me here. I'll check it out on
> the latest from SourceForge. Thanks.
> 
> Dave

Yep, that's it.

A simple fix is to move the declaration of thisSession from sqFilePrims.c
to sqXWindow.c. However, since sqFilePrims.c is one of the common modules
exported from the image, I don't want to hack it. Therefore, until I think
of a better approach, you can fix your local sources with the following
patches:

===================================================================
RCS file: /cvsroot/squeak/Unix_2.8/src/ExternalModules/FilePlugin/sqFilePrims.c,v
retrieving revision 1.1
diff -r1.1 sqFilePrims.c
47c47
< int thisSession = 0;
---
> extern int thisSession;
===================================================================
RCS file: /cvsroot/squeak/Unix_2.8/src/sqXWindow.c,v
retrieving revision 1.3
diff -r1.3 sqXWindow.c
99a100
> int thisSession = 0;
===================================================================

Dave





More information about the Squeak-dev mailing list