Re: [sqlite] rtree module crashes

2008-07-05 Thread Hartwig Wiesmann
Hi Dan,

sorry, but I do not have any access to the page, I think.

Hartwig

Am 04.07.2008 um 17:00 schrieb Dan:

>
> On Jul 4, 2008, at 9:24 PM, Hartwig Wiesmann wrote:
>
>> Hi,
>>
>> I posted a while ago the mail attached below but did not receive any
>> answer. If there is any better place to discuss it please let me  
>> know.
>>
>> When I compile SQLite using SQLITE_ENABLE_RTREE set to 1 SQLite will
>> crash when opening a database (Mac OSX). The reason seems to be that
>> in rtree.c sqlite3ext.h is included instead of sqlite3.h. This can be
>> prevented by setting SQLITE_CORE to 1 but then the types i64, u8 etc.
>> are undefined.
>>
>> So, my solution:
>>
>> SQLITE_ENABLE_RTREE set to 1
>> SQLITE_CORE set to 1
>> and define i64, u8 etc. in all cases.
>>
>> Did I do anything wrong?
>
> See here:
>
>   http://sqlite.org:8080/cgi-bin/mailman/private/sqlite-users/2008-
> June/004005.html
>
> Dan.
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>


___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] rtree module crashes

2008-06-28 Thread Dan

On Jun 29, 2008, at 3:02 AM, Hartwig Wiesmann wrote:

> When I compile SQLite using SQLITE_ENABLE_RTREE set to 1 SQLite will
> crash when opening a database (Mac OSX). The reason seems to be that
> in rtree.c sqlite3ext.h is included instead of sqlite3.h. This can be
> prevented by setting SQLITE_CORE to 1 but then the types i64, u8 etc.
> are undefined.
>
> So, my solution:
>
> SQLITE_ENABLE_RTREE set to 1
> SQLITE_CORE set to 1
> and define i64, u8 etc. in all cases.
>
> Did I do anything wrong?

That will probably work. The problem with the i64, u8 types not being
defined was fixed here:

   http://www.sqlite.org/cvstrac/chngview?cn=5282

After this fix, you should be Ok with just SQLITE_ENABLE_RTREE and
SQLITE_CORE defined.

Dan.

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users