Re: [Pharo-users] NBSQLite3 on Pharo 4?
On Sun, Apr 05, 2015 at 03:08:56PM +0200, Bernat Romagosa wrote: I've been trying out some simple persistence options on Pharo 4 and I can't seem to get NBSQLite3 to work. Is it compatible with Pharo 4? As I've just written a blog post on Glorp-NBSQLite3 on Pharo 4 this long weekend, the answer is yes. :-) I don't think I've encountered the stack trace that you provided too many times. What is the Smalltalk code you were executing? Pierce
Re: [Pharo-users] NBSQLite3 on Pharo 4?
Hi Pierce! I was just trying to open a connection as follows: NBSQLite3Connection openOn: 'test.db' The top of the stack says Error: Could not find accessor for variable named symbolName in NativeBoost#bootstrapLoadSymbol:ofLength:fromModule:into: Are you using Linux as well? 2015-04-05 15:48 GMT+02:00 Pierce Ng pie...@samadhiweb.com: On Sun, Apr 05, 2015 at 03:08:56PM +0200, Bernat Romagosa wrote: I've been trying out some simple persistence options on Pharo 4 and I can't seem to get NBSQLite3 to work. Is it compatible with Pharo 4? As I've just written a blog post on Glorp-NBSQLite3 on Pharo 4 this long weekend, the answer is yes. :-) I don't think I've encountered the stack trace that you provided too many times. What is the Smalltalk code you were executing? Pierce -- Bernat Romagosa.
[Pharo-users] NBSQLite3 on Pharo 4?
I've been trying out some simple persistence options on Pharo 4 and I can't seem to get NBSQLite3 to work. I have the 32 bits lib present and where it should be, and this is the error I'm getting when opening a new connection: NBFFICalloutloaderForArgNamed: NBFFICalloutloaderForArgNamed:indirectIndex: NBFFICalloutargName:indirectIndex:type:ptrArity: NBFnSpecParserparseArgument NBFnSpecParserparseArguments NBFnSpecParserparseAnonFunction: NBFFICalloutanonSpec: [ :t3 | t3 useEmitCall; callType: conv; sender: context; parseOptions: options; anonSpec: t1; generate: t2 ] in NBFFICalloutAPIfunction:emit: in Block: [ :t3 | ... [ t6 := t1 value: (self newForMethod: t3) ] in NBFFICallout class(NBNativeCodeGen class)generateCode:andRetry: in Block: [ t6 := t1 value: (self newForMethod: t3) ] BlockClosureon:do: NBRecursionDetect classin:during: NBFFICallout class(NBNativeCodeGen class)generateCode:andRetry: NBFFICallout class(NBNativeCodeGen class)handleFailureIn:nativeCode: NBFFICalloutAPIfunction:emit: NativeBoostLinux32(NativeBoost)bootstrapLoadSymbol:ofLength:fromModule:into: NativeBoostLinux32(NativeBoost)loadSymbol:fromModule: NativeBoostLinux32loadSymbol:fromModule: NativeBoost classloadSymbol:fromModule: NBSQLite3FFI class(Object)nbGetSymbolAddress:module: NBFFICalloutgenerateCall:module: [ :t3 | t3 callType: conv; sender: context; parseOptions: options; generateCall: t1 module: t2 ] in NBFFICalloutAPIfunction:module: in Block: [ :t3 | ... [ t6 := t1 value: (self newForMethod: t3) ] in NBFFICallout class(NBNativeCodeGen class)generateCode:andRetry: in Block: [ t6 := t1 value: (self newForMethod: t3) ] BlockClosureon:do: NBRecursionDetect classin:during: NBFFICallout class(NBNativeCodeGen class)generateCode:andRetry: NBFFICallout class(NBNativeCodeGen class)handleFailureIn:nativeCode: NBFFICalloutAPIfunction:module: NBSQLite3FFI(Object)nbCall:module: NBSQLite3FFIapiOpen:via: NBSQLite3FFIopen:via: Is it compatible with Pharo 4? -- Bernat Romagosa.
Re: [Pharo-users] NBSQLite3 on Pharo 4?
Ok, I just figured for some reason it doesn't work when I'm using Pharo via PharoLauncher... I just got the latest pharo4 for Linux, image + vm, and NBSQLite3 worked out of the box. Hope it helps somebody else! 2015-04-05 16:01 GMT+02:00 Bernat Romagosa tibabenfortlapala...@gmail.com: Hi Pierce! I was just trying to open a connection as follows: NBSQLite3Connection openOn: 'test.db' The top of the stack says Error: Could not find accessor for variable named symbolName in NativeBoost#bootstrapLoadSymbol:ofLength:fromModule:into: Are you using Linux as well? 2015-04-05 15:48 GMT+02:00 Pierce Ng pie...@samadhiweb.com: On Sun, Apr 05, 2015 at 03:08:56PM +0200, Bernat Romagosa wrote: I've been trying out some simple persistence options on Pharo 4 and I can't seem to get NBSQLite3 to work. Is it compatible with Pharo 4? As I've just written a blog post on Glorp-NBSQLite3 on Pharo 4 this long weekend, the answer is yes. :-) I don't think I've encountered the stack trace that you provided too many times. What is the Smalltalk code you were executing? Pierce -- Bernat Romagosa. -- Bernat Romagosa.