Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-10 Thread Shawn Wilsher
On Thu, Dec 10, 2009 at 10:18 AM, Daniel Mierswa wrote: > My concolusion is that the TB folks shouldn't assume that the system > sqlite library was built with debugging symbols or provide a mechanism > to opt out said function call with an easy switch/compiler flag. > Well, there is your problem.

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-10 Thread Daniel Mierswa
On 10.12.2009 07:44, Roger Binns wrote: > sqlite3.h is not generated from a .in template. Are you volunteering to do > that and become the maintainer of it? Nah I was merely wondering how/if it could be achieved at all. > Secondly your solution would only work for autotools which not everyone use

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Mierswa wrote: > Couldn't it be done with something like a sqlite3.h.in which gets > preprocessed by autotools (relevant switches would be for example > --enable-debug or something) and set constants which can then be used to > opt in/out certai

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Daniel Mierswa
On 10.12.2009 06:32, Roger Binns wrote: > The header file has no idea what options you used when compiling the > library. This applies to much other functionality you can include/omit. > > Roger Couldn't it be done with something like a sqlite3.h.in which gets preprocessed by autotools (relevant

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Mierswa wrote: > Though I wonder why the header does not hide the prototype when it gets > installed into the system. The header file has no idea what options you used when compiling the library. This applies to much other functionality you ca

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Daniel Mierswa
On 10.12.2009 05:42, Dan Kennedy wrote: > sqlite3_mutex_held() is only defined if SQLite is built with > SQLITE_DEBUG defined. Looks like this was not the case when > the library linked to by -lsqlite3 above was compiled. I wrote exactly that in my initial mail to the list. Though I wonder why the

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Dan Kennedy
On Dec 10, 2009, at 11:19 AM, Daniel Mierswa wrote: > On 10.12.2009 01:22, Shawn Wilsher wrote: >> See https://bugzilla.mozilla.org/show_bug.cgi?id=533171 (this isn't >> really a >> SQLite issue). > I'm not sure what you mean. I can reproduce it without any Thunderbird > code involved at all. >

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Daniel Mierswa
On 10.12.2009 01:22, Shawn Wilsher wrote: > See https://bugzilla.mozilla.org/show_bug.cgi?id=533171 (this isn't really a > SQLite issue). I'm not sure what you mean. I can reproduce it without any Thunderbird code involved at all. impu...@istari ~ $ echo -e "#include \n int main() { sqlite3_mutex

Re: [sqlite] undefined reference to sqlite3_mutex_held

2009-12-09 Thread Shawn Wilsher
See https://bugzilla.mozilla.org/show_bug.cgi?id=533171 (this isn't really a SQLite issue). Cheers, Shawn On Wed, Dec 9, 2009 at 3:32 PM, Daniel Mierswa wrote: > Hi list, > when I try to build the current thunderbird 3.0 release against > sqlite-3.6.21 i get an undefined reference to sqlite3_m