List Info

Thread: Smalltalk mailing list & compilation




Smalltalk mailing list & compilation
user name
2006-06-20 06:11:42
Hi,

Paolo Bonzini wrote:
> to compile interp.c, so you may want to upgrade anyway.
 But I can 
> modify the libffi configure script to provide
__LONG_LONG_MAX__ if it is 
> not provided by the compiler.

Thanks, you may save some people some time 

Now, here goes the newbie questions, please bear with me: I
am new to 
Smalltalk and have looked at the manual page at 
http://www.gnu.org/software/smalltalk/gst-manual/gst.ht
ml and I can't 
make the examples work. I've run the test suite and all
test pass but 
when I try to run Blox as stated in 3.7.1 (gst -qK
blox/Run.st) these 
files don't exist, I think it's equivalent to run

gst -qK browser/Run.st

but the I get this:

$ gst -qK browser/Run.st
"Scavenging... 89% reclaimed, done"
"Scavenging... 89% reclaimed, done"
"Scavenging... 87% reclaimed, done"
"Scavenging... 89% reclaimed, done"
"Scavenging... 88% reclaimed, done"
Loading package BloxTK
Object: DLD error: requested module blox-tk was not found
Smalltalk.DLD class(Smalltalk.Object)>>#primError:
SystemExceptions.CInterfaceError(Smalltalk.Exception)>>
;#defaultAction
optimized [] in Smalltalk.Exception
class>>#coreException
SystemExceptions.CInterfaceError(Smalltalk.Signal)>>#a
ctivateHandler:
SystemExceptions.CInterfaceError(Smalltalk.Exception)>>
;#signal
SystemExceptions.CInterfaceError class(Smalltalk.Exception
class)>>#signal:
Smalltalk.DLD class>>#addModule:
optimized [] in Smalltalk.Package>>#fileIn
Smalltalk.Set(Smalltalk.HashedCollection)>>#do:
Smalltalk.Package>>#fileIn
optimized [] in Smalltalk.PackageLoader
class>>#fileInPackages:
Smalltalk.OrderedCollection(Smalltalk.SequenceableCollection
)>>#do:
Smalltalk.PackageLoader class>>#fileInPackages:
Smalltalk.PackageLoader class>>#fileInPackage:
Smalltalk.UndefinedObject>>#executeStatements
/usr/local/share/smalltalk/browser/Run.st:44: invalid scope
resolution

I have a directory named blox-tk and I'm sure I'm missing
something but 
how can I correct this? How does Smalltalk look for
packages, how does 
it know 'Browser' corresponds to browser-tk? The manual
does not explain 
this or I haven't found it.

Another problem is I seem unable to type examples at the
st> prompt. If 
I type

x := Array new: 20 !

I get

stdin:1: assignment to undeclared variable x

but I thought you don't have to declare anything in
Smalltalk!?

Thanks for your help and sorry for the long message but I'm
totally new 
to this.

Thanks
Lucia


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
Smalltalk mailing list & compilation
user name
2006-06-20 07:03:49
> Thanks, you may save some people some time 
I think not many people are running 2.95.x at this time.
> Now, here goes the newbie questions, please bear with
me: I am new to 
> Smalltalk and have looked at the manual page at 
> http://www.gnu.org/software/smalltalk/gst-manual/gst.ht
ml and I can't 
> make the examples work. I've run the test suite and
all test pass but 
> when I try to run Blox as stated in 3.7.1 (gst -qK
blox/Run.st) these 
> files don't exist, I think it's equivalent to run
>
> gst -qK browser/Run.st 
Yes, that should be fixed.  The online manual has not been
updated for a 
long time.  You can do "make pdf" after
installing and get nice manuals 
in pdf format (or also "make html").
> /usr/local/share/smalltalk/browser/Run.st:44: invalid
scope resolution
>
> I have a directory named blox-tk and I'm sure I'm
missing something 
> but how can I correct this? How does Smalltalk look for
packages, how 
> does it know 'Browser' corresponds to browser-tk?
The browser is cross platform, it works equally for Tk and
Gtk (but the 
latter is experimental).  But you probably don't have the
Tcl/Tk 
development packages installed.  Look for tclConfig.sh in
your disk, it 
is probably not there.
> Another problem is I seem unable to type examples at
the st> prompt. 
> If I type
>
> x := Array new: 20 !
>
> I get
>
> stdin:1: assignment to undeclared variable x
>
> but I thought you don't have to declare anything in
Smalltalk!?
No, you do have to declare temporary variables.

| x |
x := Array new: 20!

Note also that, after you end the "interaction"
with the exclamation 
mark, the "x" variable ceases to exist.

This is not true with the graphical browser, which has
temporary 
variable like these, but also permanent, workspace-visible
variables.
> Thanks for your help and sorry for the long message but
I'm totally 
> new to this. 
No problem, if there are any suggestions you can make I (and
the few 
other contributors) are all ears.

Paolo



_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
Smalltalk mailing list & compilation
user name
2006-06-21 11:11:21
Hi,

> Yes, that should be fixed.  The online manual has not
been updated for a 
> long time.  You can do "make pdf" after
installing and get nice manuals 
> in pdf format (or also "make html").

I had no problem doing both after I updated my (aging)
system. The 
manuals are more up to date and I have started to play
around with the 
browser. It's very interesting.

> The browser is cross platform, it works equally for Tk
and Gtk (but the 
> latter is experimental).  But you probably don't have
the Tcl/Tk 
> development packages installed.  Look for tclConfig.sh
in your disk, it 
> is probably not there.

I loaded the development files for Tcl/Tk but I had to load
also glib 
2.0, I had glib 1.2 and configure complained about it but
you have to 
look carefully while it runs to notice that. Maybe I'd
suggest you 
repeat the problems at the end for the users who don't
stare at 
configure running?

>> but I thought you don't have to declare anything
in Smalltalk!?
> 
> No, you do have to declare temporary variables.

Okay, I thought I had some "interactive"
environment there but the 
browser does it.

> No problem, if there are any suggestions you can make I
(and the few 
> other contributors) are all ears.

Maybe if you group the problems configure encounters at the
end it would 
make things easier, or maybe something like "configure
found problems. 
Look at config.log" would suffice.

Thanks!
Lucia


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
Smalltalk mailing list & compilation
user name
2006-06-21 14:42:54
> I had no problem doing both after I updated my (aging)
system. The 
> manuals are more up to date and I have started to play
around with the 
> browser. It's very interesting.
Cool.
>> The browser is cross platform, it works equally for
Tk and Gtk (but 
>> the latter is experimental).  But you probably
don't have the Tcl/Tk 
>> development packages installed.  Look for
tclConfig.sh in your disk, 
>> it is probably not there.
> I loaded the development files for Tcl/Tk but I had to
load also glib 
> 2.0, I had glib 1.2 and configure complained about it
but you have to 
> look carefully while it runs to notice that. Maybe I'd
suggest you 
> repeat the problems at the end for the users who don't
stare at 
> configure running?
glib is only necessary for Gtk, not Tk.
> Maybe if you group the problems configure encounters at
the end it 
> would make things easier, or maybe something like
"configure found 
> problems. Look at config.log" would suffice.
Thanks for the hint.  I'll add something like: "the
following modules 
will be built/will not be built".

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )