floatAt: on Win2K vs Linux

Kevin Fisher kgf at golden.net
Fri Oct 6 21:40:58 UTC 2000


> Kevin Fisher wrote:
> > 
> > Hmm, I have the 2.9a VM with the FFI plugin.so...I compiled libffi from
> > Redhat as well, and I can't get the UNIX X11 FFI demos to work at all either.
> 
> Squeak listLoadedModules needs to include SqueakFFIPrims.
> 
> Smalltalk listLoadedModules  #('SqueakFFIPrims 25 August 2000 (i)' 'B2DPlugin 25
> August 2000 (i)' 'BitBltPlugin 25 August 2000 (i)' 'LargeIntegers v1.1 25 August
> 2000 (i)' 'FilePlugin 25 August 2000 (i)')


I see...it seems that I don't have that in the listLoadedModules list.


> 
> Then you should be able to do:
> 	X11Display coloredRectangles
> and see it work.
> 
> I re-compiled mine because I wanted to fix the -xshm bug (I just posted Bert's
> diff
> that fixes this).

Is it necessary to recompile to enable it?  I've been using the pre-compiled 
modular 2.9a VM and it does include the FFI module...


> 
> If you run strace you can make sure that it opens the library:
> 
> $ strace -o squeak.out -etrace=file squeak2.9 my.image
> 
> and then quit, and grep for ffi in the file:
> 
> $ grep -i ffi squeak.out
> open("/usr/local/lib/squeak2.9a/libffi.so.1", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> open("/home/ned/.kde/lib/libffi.so.1", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/opt/kde2/lib/libffi.so.1", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/usr/local/lib/libffi.so.1", O_RDONLY) = 4   
> 
> as you see, it found it in /usr/local/lib.


Hmm, no luck..it's not loading the libffi.so at all according to strace.


> 
> I assume that you've done a ldconfig (as root) after you installed the
> libffi.

Yup!


> 
> Note that the FFITester tests don't work for some reason.
> 
> -- 
> Ned Konz
> currently: Stanwood, WA
> email:     ned at bike-nomad.com
> homepage:  http://bike-nomad.com






More information about the Squeak-dev mailing list