Linux and getSystemAttribute:

Bert Freudenberg bert at isgnw.CS.Uni-Magdeburg.De
Wed Apr 19 23:03:28 UTC 2000


On Wed, 19 Apr 2000, Tim Rowledge wrote:

> Almost, but not quite right, Bert; you have it set so that any arg with
> '-' in front but that is not processed by the VM is added to the image
> args list. This is indeed what Ian wrote initially, but it means that
> 	squeak -foo plugin.image startup.st
> would NOT run startup.st as the file found for the #readDocument:
> method, but rather '-foo' !
> The '-foo' really ought to go in the vmArgVec (from your file) not the
> squeakArgVec. 'startup.st' is supposed to be what you get for 'Smalltalk
> getSystemArg: 2' whereas one would get '-foo' right now.

Right. I could mention that this part was Dave's, but actually we just
left it like Ian invented it.

> Actually, there also needs to be a check that the file named as the
> apparent image is actually an image file (Windows & Acorn already do
> such a check) since
> 	squeak -vmFlag1 startup.st
> should be legal and should use the default image name
> (squeak{version}.image) and still have startup.st as systemArg 2.

Sounds good to me.
 
> Unfortunately, I can't persuade your config & src mods to actually
> compile on my P3 RedHat linux machine. The OS_TYPE/NAME/ARCH values are
> undeclared, no matter how I make reconfig, make clean or whatever.
> It only took about four hours to get to where I can say that; first of
> all, the machine decided I didn't have permissions to replace the files,
> when I fixed that it decide to crash and reboot, then it wouldn't run X,
> etc etc. And this is supposed to be better than Windows? Sheesh.

No comment ;-)

> What is it that I am supposed to do to make the stuff compile?

Make sure the src/configure script is a symbolic link to
../conf/configure. There sometimes is an old copy in src/, and that one
won't define the OS_* stuff. Than "make reconfig" should work. If all else
fails, delete the target dir and try again ...

  -Bert-





More information about the Squeak-dev mailing list