FFI, ODBC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

FFI, ODBC

Miron Brezuleanu
Hello,

I'm trying to install the ODBC driver for Squeak and I run into the
following issues:

1) when using squeak vm 3.10 (with Ramon Leon's image or the 3.9
image) the FFI is installed without errors from SqueakMap, but when
trying to install the ODBC package the image freezes (apparently while
downloading).
2) with squeak 3.9 the FFI install fails with a SHA1 error:

-------------
Download from original url
(http://map.squeak.org/accountbyid/cf58c358-46ee-465e-b6db-2740e9b32a53/files/InstallFFI.st)
failed with this exception: Incorrect SHA checksum of file from
orginal URL
Trying server cache instead.
Download from server cache of FFI 1-3.9 failed with this exception:
Incorrect SHA checksum of file from server
------------

3) squeak vm 3.10 with image 3.10.gamma.7159 also gives the sha1 error
when installing FFI.

Also, the 7159 image doesn't have the sources file and the image
complains about it when starting. Do I really need the sources file
(the class browser seem to be able to display method sources) and if
yes, where do I find them?

OS is XP SP 2.

I've searched the mailing list archives but only found the pointer
about loading ffi before odbc which led me to the current situation.

Many thanks for any pointers/ideas,
--
Miron Brezuleanu
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FFI, ODBC

Göran Krampe
Hi!

"Miron Brezuleanu" <[hidden email]> wrote:

> Hello,
>
> I'm trying to install the ODBC driver for Squeak and I run into the
> following issues:
>
> 1) when using squeak vm 3.10 (with Ramon Leon's image or the 3.9
> image) the FFI is installed without errors from SqueakMap, but when
> trying to install the ODBC package the image freezes (apparently while
> downloading).
> 2) with squeak 3.9 the FFI install fails with a SHA1 error:
>
> -------------
> Download from original url
> (http://map.squeak.org/accountbyid/cf58c358-46ee-465e-b6db-2740e9b32a53/files/InstallFFI.st)
> failed with this exception: Incorrect SHA checksum of file from
> orginal URL
> Trying server cache instead.
> Download from server cache of FFI 1-3.9 failed with this exception:
> Incorrect SHA checksum of file from server
> ------------

I just fired up a 3.9 final image and installed FFI. AFAICT there is no
current release referring to a file called InstallFFI.st - it is called
InstallFFI3.st.

The SHA checksum mechanism can sometimes end up acting "wrong". The
download may be fine, and the checksum may be wrong.

> 3) squeak vm 3.10 with image 3.10.gamma.7159 also gives the sha1 error
> when installing FFI.

Hmmm. Make sure your map is updated btw - if it is not then that would
explain this I guess.

> Also, the 7159 image doesn't have the sources file and the image
> complains about it when starting. Do I really need the sources file
> (the class browser seem to be able to display method sources) and if
> yes, where do I find them?

You need it. For 3.9: http://ftp.squeak.org/3.9/SqueakV39.sources.gz

regards, Göran
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FFI, ODBC

Miron Brezuleanu
Hi,

On Dec 20, 2007 9:28 PM,  <[hidden email]> wrote:
> > 3) squeak vm 3.10 with image 3.10.gamma.7159 also gives the sha1 error
> > when installing FFI.
>
> Hmmm. Make sure your map is updated btw - if it is not then that would
> explain this I guess.

That's a bit weird - shouldn't squeak download the content and the
checksum, then calculate the content checksum and compare to
downloaded checksum? It sounds like I need to download the checksum
separately :-)

After updateing the map the FFI downloads OK, but it still takes
forever to download ODBC. I can interrupt it with Alt + '.' and it
looks like it's waiting forever while trying to DNS resolve
'wiki.squeak.org' (which is resolved instantly if I try to ping that
host from a shell).

The method is waitForCompletionUntil: in class NetNameResolver, and it
seems to be locked in the waitTimeoutMSecs message right after the
"wait for resolver to be available" comment. (using the 3.10 image and
VM)

Any clues on what to try next? :-) (I've downloaded and installed the
SqueakV39 sources, where do I find the V310 sources?)

Many thanks,
--
Miron Brezuleanu
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FFI, ODBC

Göran Krampe
Hi!

"Miron Brezuleanu" <[hidden email]> wrote:

> Hi,
>
> On Dec 20, 2007 9:28 PM,  <[hidden email]> wrote:
> > > 3) squeak vm 3.10 with image 3.10.gamma.7159 also gives the sha1 error
> > > when installing FFI.
> >
> > Hmmm. Make sure your map is updated btw - if it is not then that would
> > explain this I guess.
>
> That's a bit weird - shouldn't squeak download the content and the
> checksum, then calculate the content checksum and compare to
> downloaded checksum? It sounds like I need to download the checksum
> separately :-)

All meta data is in the map - including the checksums. Generally you
would never experience this problem even with an outdated map - unless
maintainers *remove* package releases or *change the URL/file* that the
release references. Both behaviors are odd.

AFAICT in your case the URL was modified, with a new file, and
presumably the old file has been deleted from the file store.

Now... disregarding all the above - using an outdated map is quite
silly. :)

> After updateing the map the FFI downloads OK, but it still takes
> forever to download ODBC. I can interrupt it with Alt + '.' and it
> looks like it's waiting forever while trying to DNS resolve
> 'wiki.squeak.org' (which is resolved instantly if I try to ping that
> host from a shell).
>
> The method is waitForCompletionUntil: in class NetNameResolver, and it
> seems to be locked in the waitTimeoutMSecs message right after the
> "wait for resolver to be available" comment. (using the 3.10 image and
> VM)

Dunno, I saw you mentioned that a restart solves it - odd indeed.

> Any clues on what to try next? :-) (I've downloaded and installed the
> SqueakV39 sources, where do I find the V310 sources?)

There is no such thing - for 3.9+ you use the V39 file.

There are at this point only V3 and V39. This file very seldom changes,
and we have used V3 for a loooong time, but with version 3.9 a new
sources file was generated since the chnages file was getting too large.
The changes file contains all modifications since the generation of the
sources file.

regards, Göran
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FFI, ODBC

Miron Brezuleanu
In reply to this post by Miron Brezuleanu
Hello again,

found a workaround for my problem,

On Dec 20, 2007 11:01 PM, Miron Brezuleanu <[hidden email]> wrote:

> After updateing the map the FFI downloads OK, but it still takes
> forever to download ODBC. I can interrupt it with Alt + '.' and it
> looks like it's waiting forever while trying to DNS resolve
> 'wiki.squeak.org' (which is resolved instantly if I try to ping that
> host from a shell).
>
> The method is waitForCompletionUntil: in class NetNameResolver, and it
> seems to be locked in the waitTimeoutMSecs message right after the
> "wait for resolver to be available" comment. (using the 3.10 image and
> VM)
>
> Any clues on what to try next? :-) (I've downloaded and installed the
> SqueakV39 sources, where do I find the V310 sources?)

Apparently restarting the VM after installing FFI (save & quit and
reload image) does the trick. Wish that was mentioned somewhere :-)

Thanks,
--
Miron Brezuleanu
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners