Troubles with loading ConfigurationOfODBC

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

Troubles with loading ConfigurationOfODBC

FDominicus
Well downloaded the newst Moosse and lates Pharo VM from here:
http://www.moosetechnology.org/download/5.0

Loading ConfigurationOfODBC from:
MCSqueaksourceRepository
        location: 'http://squeaksource.com/ODBC'
        user: ''
        password: ''

Now in a workspace just type:
ConfigurationOfODBC load.

After a while I get an backtrace. which points to
ExternalClass class initialize

initialize
        "ExternalObject initialize"
        Smalltalk addToStartUpList: self after: ShortRunArray.

Yes ShortRunArray, is not there any more (that is known) but, just
removing it give the following Error

ffiPrintString: aString
        "FFITestLibrary ffiPrintString: 'Hello'"
        <cdecl: char'>' expected -> * 'ffiPrintString' (char *) module:'SqueakFFIPrims'>
        ^self externalCallFailed

And that's it.

Now where's the bug, in the VM in the image or where else?

Regards
Friedrich

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Troubles with loading ConfigurationOfODBC

Guillermo Polito
I'd quickly say that ConfigurationOfODBC points to an old version of ConfigurationOfFFI... Can you check which version of ConfigurationOfFFI gets installed and if it is the same in the Pharo metacello repository marked as stable?

Guille


On Thu, Mar 20, 2014 at 12:22 PM, Friedrich Dominicus <[hidden email]> wrote:
Well downloaded the newst Moosse and lates Pharo VM from here:
http://www.moosetechnology.org/download/5.0

Loading ConfigurationOfODBC from:
MCSqueaksourceRepository
        location: 'http://squeaksource.com/ODBC'
        user: ''
        password: ''

Now in a workspace just type:
ConfigurationOfODBC load.

After a while I get an backtrace. which points to
ExternalClass class initialize

initialize
        "ExternalObject initialize"
        Smalltalk addToStartUpList: self after: ShortRunArray.

Yes ShortRunArray, is not there any more (that is known) but, just
removing it give the following Error

ffiPrintString: aString
        "FFITestLibrary ffiPrintString: 'Hello'"
        <cdecl: char'>' expected -> * 'ffiPrintString' (char *) module:'SqueakFFIPrims'>
        ^self externalCallFailed

And that's it.

Now where's the bug, in the VM in the image or where else?

Regards
Friedrich

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Troubles with loading ConfigurationOfODBC

FDominicus
In reply to this post by FDominicus
Friedrich Dominicus <[hidden email]> writes:

> Well downloaded the newst Moosse and lates Pharo VM from here:
> http://www.moosetechnology.org/download/5.0
>
> Loading ConfigurationOfODBC from:
> MCSqueaksourceRepository
> location: 'http://squeaksource.com/ODBC'
> user: ''
> password: ''
>
> Now in a workspace just type:
> ConfigurationOfODBC load.
>
> After a while I get an backtrace. which points to
> ExternalClass class initialize
>
> initialize
> "ExternalObject initialize"
> Smalltalk addToStartUpList: self after: ShortRunArray.
>
> Yes ShortRunArray, is not there any more (that is known) but, just
> removing it give the following Error
>
> ffiPrintString: aString
> "FFITestLibrary ffiPrintString: 'Hello'"
> <cdecl: char'>' expected -> * 'ffiPrintString' (char *)
> module:'SqueakFFIPrims'>
> ^self externalCallFailed
>
> And that's it.
>
> Now where's the bug, in the VM in the image or where else?
Ok, I guess found it myself. It's in the Configuration and what Version
of FFI is loaded. I don't know whom it may concern but I checked in a
new ConfigurationOfODBC
You can find it on
MCSqueaksourceRepository
        location: 'http://squeaksource.com/ODBC'
        user: ''
        password: ''

I don't know of it's just ok to do what I did, but I guess it won't harm
anyone, but at least it's of use for one (that's me ;-)

Loaded it in a fresh Moose Image with:
(ConfigurationOfODBC project version:'1.1') load.

Regards
Friedrich

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev