SQLite3 'Unable to find function address'

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

SQLite3 'Unable to find function address'

aditya siram-2
Hi all,
I am not sure if this is the place to ask, but I have installed FFI and the Sqlite3 package, but am unable to use it.

I have a database file 'test.db' in the 'Smalltalk imagePath' location, but the following interaction from a workspace fails.
========================
db := SQLiteConnection fileNamed:'test.db'.
db open.
========================
I get an 'Unable to find function address' error.

I have included a screenshot. If this isn't the right forum please point me in the right direction.

Thanks ...
Deech

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

squeak-sqlite-error.jpeg (109K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[Solved] Re: SQLite3 'Unable to find function address'

aditya siram-2
Hi all,
The issue was that SQLiteLibrary moduleName was incorrectly set to libsqlite3.framework. Once I set that to 'libsqlite3.so', everything works fine.

Thanks,
deech

On Thu, Feb 19, 2009 at 10:29 PM, aditya siram <[hidden email]> wrote:
Hi all,
I am not sure if this is the place to ask, but I have installed FFI and the Sqlite3 package, but am unable to use it.

I have a database file 'test.db' in the 'Smalltalk imagePath' location, but the following interaction from a workspace fails.
========================
db := SQLiteConnection fileNamed:'test.db'.
db open.
========================
I get an 'Unable to find function address' error.

I have included a screenshot. If this isn't the right forum please point me in the right direction.

Thanks ...
Deech


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

Re: [Solved] Re: SQLite3 'Unable to find function address'

Bert Freudenberg
The Linux VM is able to resolve a moduleName of "sqlite3" to  
"libsqlite3.so". I think the Mac VM also does this, so  just using the  
short form might work. Otherwise the usual way is to use "Smalltalk  
platformName" to figure out the right name.

- Bert -

On 20.02.2009, at 06:45, aditya siram wrote:

> Hi all,
> The issue was that SQLiteLibrary moduleName was incorrectly set to  
> libsqlite3.framework. Once I set that to 'libsqlite3.so', everything  
> works fine.
>
> Thanks,
> deech
>
> On Thu, Feb 19, 2009 at 10:29 PM, aditya siram  
> <[hidden email]> wrote:
> Hi all,
> I am not sure if this is the place to ask, but I have installed FFI  
> and the Sqlite3 package, but am unable to use it.
>
> I have a database file 'test.db' in the 'Smalltalk imagePath'  
> location, but the following interaction from a workspace fails.
> ========================
> db := SQLiteConnection fileNamed:'test.db'.
> db open.
> ========================
> I get an 'Unable to find function address' error.
>
> I have included a screenshot. If this isn't the right forum please  
> point me in the right direction.
>
> Thanks ...
> Deech
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

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

Re: [Solved] Re: SQLite3 'Unable to find function address'

johnmci
In order to use a *.framework it has to be installed in the proper  
location for framework type of libraries, otherwise we just for  
various combinations of Unix dll name suffix/prefixes

On 20-Feb-09, at 1:12 AM, Bert Freudenberg wrote:

> The Linux VM is able to resolve a moduleName of "sqlite3" to  
> "libsqlite3.so". I think the Mac VM also does this, so  just using  
> the short form might work. Otherwise the usual way is to use  
> "Smalltalk platformName" to figure out the right name.
>
> - Bert -
>
> On 20.02.2009, at 06:45, aditya siram wrote:
>
>> Hi all,
>> The issue was that SQLiteLibrary moduleName was incorrectly set to  
>> libsqlite3.framework. Once I set that to 'libsqlite3.so',  
>> everything works fine.
>>
>> Thanks,
>> deech
>>
>> On Thu, Feb 19, 2009 at 10:29 PM, aditya siram <[hidden email]
>> > wrote:
>> Hi all,
>> I am not sure if this is the place to ask, but I have installed FFI  
>> and the Sqlite3 package, but am unable to use it.
>>
>> I have a database file 'test.db' in the 'Smalltalk imagePath'  
>> location, but the following interaction from a workspace fails.
>> ========================
>> db := SQLiteConnection fileNamed:'test.db'.
>> db open.
>> ========================
>> I get an 'Unable to find function address' error.
>>
>> I have included a screenshot. If this isn't the right forum please  
>> point me in the right direction.
>>
>> Thanks ...
>> Deech
>>
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

--
=
=
=
========================================================================
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
=
=
=
========================================================================



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners