OSProcess on Solaris - all primitives failing
Julian Fitzell
julian at beta4.com
Thu Feb 12 03:29:10 UTC 2004
I'm hoping somebody can help here...
We're trying to get OSProcess working on Solaris at work (not being
given a choice on server/OS unfortunately). I first encountered the
problem of loading the plugin because of unsetsenv() but commented out
that code as the comment indicates and that solved the problem.
Unfortunately, I no longer get any errors to the console but the
primitives still don't work. Even #primSizeOfInt (which is really quite
simple, just calling sizeof(int)) is failing. Thinking maybe there was
some problem with dynamic loading, I tried building the OSProcess plugin
internally instead. The results are the same. I tried the string
hashing primitives in MiscPrimitivePlugin or whatever it's called and it
seems to work fine. The problem I infer is therefore related
specifically to OSProcess.
Doing "Smalltalk listBuiltinPlugins" does show the OSProcess plugin but
"Smalltalk listLoadedPlugins" does not (not totally clear whether it
should or not, but other internal plugins seem to show up.
So I have a plugin that builds and loads find, shows up as builtin, but
doesn't load, fails on all its primitives, and doesn't give any error
output anywhere that I can find.
I even tried putting in some fprintf() calls to stderr in the
primitiveLockFileRegion() function (the original primitive I was trying
to use) -- although this was when I was still trying to load the plugin
dynamically. I didn't see any of this output which confirms, I think,
my suspicion that the primitive functions aren't even being called.
Does anybody have any idea what the problem might be or even how I
might go ahead debugging it? Since I'm not getting any error output,
I'm at a loss as to what else to try...
Thanks,
Julian
More information about the Squeak-dev
mailing list
|