Re: [sqlite] trying sqlite4 but compilation error

2014-05-13 Thread Alain Meunier
It worked !

Many thanks :)

 Date: Mon, 12 May 2014 23:05:40 +0200
 From: sgb...@googlemail.com
 To: sqlite-users@sqlite.org
 Subject: Re: [sqlite] trying sqlite4 but compilation error
 
 On Mon, May 12, 2014 at 11:03 PM, Alain Meunier dec...@hotmail.fr wrote:
 
  /SQLite4-8a39847dafa3047b/src/fts5func.c:159: undefined reference to `log'
  collect2: error: ld returned 1 exit status
  make: *** [sqlite4] Error 1
 
  Now fts seems to call an undefined ref.. :(
  Did you get the same problem ?
 
 
 Try adding -lm (math).
 
 i didn't see that error, but i remember seeing it a long time ago and it
 seems my local copy it pached for that already:
 
 [stephan@host:~/cvs/fossil/sqlite4]$ f diff
 Index: Makefile.linux-gcc
 ...
  #TLIBS = -lrt# fdatasync on Solaris 8
 -TLIBS ?=
 +TLIBS ?= -lm
 
 -- 
 - stephan beal
 http://wanderinghorse.net/home/stephan/
 http://gplus.to/sgbeal
 Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
 those who insist on a perfect world, freedom will have to do. -- Bigby Wolf
 ___
 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


[sqlite] trying sqlite4 but compilation error

2014-05-12 Thread Alain Meunier
Hello,

System Debian64 - testing

When I try to compile the tarball that I've found here :
http://www.sqlite.org/src4/info/8a39847dafa3047ba5d6107f0032c6b39d0ef104

I get this error :

src/mem2.c:373:3: warning: (near initialization for ‘defaultMethods’) [enabled 
by default]
src/mem2.c:374:7: error: ‘sqlite4_env’ has no member named ‘m’
   pEnv-m = defaultMethods;
   ^
src/mem2.c: In function ‘sqlite4MemdebugSetType’:
src/mem2.c:381:29: error: ‘struct sqlite4_env’ has no member named ‘m’
   if( p  sqlite4DefaultEnv.m.xMalloc==sqlite4MemMalloc ){
 ^
src/mem2.c: In function ‘sqlite4MemdebugHasType’:
src/mem2.c:400:29: error: ‘struct sqlite4_env’ has no member named ‘m’
   if( p  sqlite4DefaultEnv.m.xMalloc==sqlite4MemMalloc ){
 ^
src/mem2.c: In function ‘sqlite4MemdebugNoType’:
src/mem2.c:422:29: error: ‘struct sqlite4_env’ has no member named ‘m’
   if( p  sqlite4DefaultEnv.m.xMalloc==sqlite4MemMalloc ){
 ^
make: *** [mem2.o] Error 1


The output is longer but the other warnings are for unused variables.
Could someone please tell me if the archive is wrong or something like that ?

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


Re: [sqlite] trying sqlite4 but compilation error

2014-05-12 Thread Stephan Beal
On Mon, May 12, 2014 at 5:06 PM, Alain Meunier dec...@hotmail.fr wrote:

 System Debian64 - testing

 When I try to compile the tarball that I've found here :
 http://www.sqlite.org/src4/info/8a39847dafa3047ba5d6107f0032c6b39d0ef104


Can you try this:

make -f Makefile.linux-gcc

that one works for me on Mint (Debian derivative).

it fails to link pthread at the end, but that's easy enough to fix: there's
a commented out line here:

#THREADLIB = -lpthread
THREADLIB =

With that, it builds for me.

(interestingly, it wants pthread even though THREADSAFE is set to 0?)

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do. -- Bigby Wolf
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] trying sqlite4 but compilation error

2014-05-12 Thread Alain Meunier
I followed your advice.

Big step :

/SQLite4-8a39847dafa3047b/src/fts5func.c:159: undefined reference to `log'
collect2: error: ld returned 1 exit status
make: *** [sqlite4] Error 1

Now fts seems to call an undefined ref.. :(
Did you get the same problem ?



 Date: Mon, 12 May 2014 17:11:06 +0200
 From: sgb...@googlemail.com
 To: sqlite-users@sqlite.org
 Subject: Re: [sqlite] trying sqlite4 but compilation error
 
 On Mon, May 12, 2014 at 5:06 PM, Alain Meunier dec...@hotmail.fr wrote:
 
  System Debian64 - testing
 
  When I try to compile the tarball that I've found here :
  http://www.sqlite.org/src4/info/8a39847dafa3047ba5d6107f0032c6b39d0ef104
 
 
 Can you try this:
 
 make -f Makefile.linux-gcc
 
 that one works for me on Mint (Debian derivative).
 
 it fails to link pthread at the end, but that's easy enough to fix: there's
 a commented out line here:
 
 #THREADLIB = -lpthread
 THREADLIB =
 
 With that, it builds for me.
 
 (interestingly, it wants pthread even though THREADSAFE is set to 0?)
 
 -- 
 - stephan beal
 http://wanderinghorse.net/home/stephan/
 http://gplus.to/sgbeal
 Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
 those who insist on a perfect world, freedom will have to do. -- Bigby Wolf
 ___
 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] trying sqlite4 but compilation error

2014-05-12 Thread Stephan Beal
On Mon, May 12, 2014 at 11:03 PM, Alain Meunier dec...@hotmail.fr wrote:

 /SQLite4-8a39847dafa3047b/src/fts5func.c:159: undefined reference to `log'
 collect2: error: ld returned 1 exit status
 make: *** [sqlite4] Error 1

 Now fts seems to call an undefined ref.. :(
 Did you get the same problem ?


Try adding -lm (math).

i didn't see that error, but i remember seeing it a long time ago and it
seems my local copy it pached for that already:

[stephan@host:~/cvs/fossil/sqlite4]$ f diff
Index: Makefile.linux-gcc
...
 #TLIBS = -lrt# fdatasync on Solaris 8
-TLIBS ?=
+TLIBS ?= -lm

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do. -- Bigby Wolf
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users