I've checked in a new version of the configuration that allows me to load 
SqueakDBX in Pharo and I will test this shortly in Squeak 
(ConfigurationOfSqueakDBX-DaleHenrichs.4).

FFI pacakges must be _initialized_ in load order. Which means that you have to 
use the #linear load type for loading FFI.

#atomic load, the default, works in most cases, but when initialization order 
is important, then #linear needs to be used.

Dale

----- "Mariano Martinez Peck" <[email protected]> wrote:

| I guess this problem is related to Metacello. Probably not with
| Monticello
| in itself but in our own configuration.
| Sorry Dale for send you so many questions, emails, requests of new
| features,
| etc. But be aware that this is due to the fact we are migrating our
| projects
| to Metacello :)
| 
| This problem related to Esteban, seems to be something with Metacello.
| We
| are trying to evaluate this:
| 
| (ConfigurationOfSqueakDBX project version: '1.1') load
| 
| You can find that configuration class in
| http://www.squeaksource.com/SqueakDBX
| 
| The problem is that all the FFI classes that are load BEFORE
| SqueakDBX, have
| NO METHODS. Ok, then the parser tries to parse the 'cdelc:' of FFI and
| the
| DNU is to callingConventionFor: which is one of the class side methods
| of
| the class ExternalStructure.
| 
| But when I debug that, I noticed that all classes of the FFI packages
| don't
| have any method :(     Of course, this includes
| ExternalFunction>>callingConventionFor:
| 
| This is weird.
| 
| I don't know how to proceed.
| 
| Let me know if I can help you with something else.
| 
| Maybe there is something wrong in my configuration.
| 
| Cheers,
| 
| Mariano
| 
| ---------- Forwarded message ----------
| From: Esteban Lorenzano <[email protected]>
| Date: Mon, Dec 7, 2009 at 10:25 PM
| Subject: [Pharo-project] FFI not loading on squeak-dev 496
| To: [email protected]
| 
| 
| Hi,
| I'm trying to load FFI on a squeak-dev image (496 09.11.04) and I'm
| having a DNU here:
| 
| externalFunctionDeclaration
|        "Parse the function declaration for a call to an external
| library."
|        | descriptorClass callType retType externalName args argType
| module
| fn |
|        descriptorClass := Smalltalk at: #ExternalFunction
| ifAbsent:[nil].
|        descriptorClass == nil ifTrue:[^false].
|        callType := descriptorClass callingConventionFor: here.
| ------------------------------------------------------------ ^HERE
| 
| Does anybody knows what happens?
| 
| Cheers,
| Esteban
| 
| 
| 
| _______________________________________________
| Pharo-project mailing list
| [email protected]
| http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
| 
| _______________________________________________
| Pharo-project mailing list
| [email protected]
| http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to