[sqlite] Make Test Failure Without tcl.h

2008-11-06 Thread timdburke
I'm having trouble running make test when I don't have tcl-devel rpm  
installed (which contains tcl.h). I've tried both with and without  
--disable-tcl but it seems like the tests don't care that I've disabled  
tcl. I can't easily change my build machines (ie installing tcl-devel) so  
I'm wondering how I might get this working.

...
.c ../../../src/ext/fts3/fts3_hash.h ../../../src/ext/fts3/fts3_icu.c 
../../../src/ext/fts3/fts3_porter.c ../../../src/ext/fts3/fts3_tokenizer.h 
../../../src/ext/fts3/fts3_tokenizer.c ../../../src/ext/fts3/fts3_tokenizer1.c 
../../../src/ext/icu/sqliteicu.h ../../../src/ext/icu/icu.c 
../../../src/ext/rtree/rtree.h ../../../src/ext/rtree/rtree.c  
tsrc
rm tsrc/sqlite.h.in tsrc/parse.y
touch .target_source
tclsh8.4 ../../../src/tool/mksqlite3c.tcl
./libtool --mode=link gcc -g -O2 -DSQLITE_OS_UNIX=1 -I. -I../../../src/src  
-D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1  
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DTCLSH=1  
-DSQLITE_TEST=1 -DSQLITE_NO_SYNC=1\
-DSQLITE_CRASH_TEST=1 \
-DSQLITE_SERVER=1 -DSQLITE_PRIVATE= -DSQLITE_CORE -DSQLITE_TEMP_STORE=1 \
-o  
testfixture ../../../src/src/test1.c ../../../src/src/test2.c 
../../../src/src/test3.c ../../../src/src/test4.c ../../../src/src/test5.c 
../../../src/src/test6.c ../../../src/src/test7.c ../../../src/src/test8.c 
../../../src/src/test9.c ../../../src/src/test_autoext.c 
../../../src/src/test_async.c ../../../src/src/test_btree.c 
../../../src/src/test_config.c ../../../src/src/test_devsym.c 
../../../src/src/test_func.c ../../../src/src/test_hexio.c 
../../../src/src/test_malloc.c ../../../src/src/test_md5.c 
../../../src/src/test_mutex.c ../../../src/src/test_onefile.c 
../../../src/src/test_osinst.c ../../../src/src/test_schema.c 
../../../src/src/test_server.c ../../../src/src/test_tclvar.c 
../../../src/src/test_thread.c ../../../src/src/tclsqlite.c  
sqlite3.c -lpthread
libtool: link: gcc -g -O2 -DSQLITE_OS_UNIX=1 -I. -I../../../src/src  
-D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1  
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DTCLSH=1  
-DSQLITE_TEST=1 -DSQLITE_NO_SYNC=1 -DSQLITE_CRASH_TEST=1 -DSQLITE_SERVER=1  
-DSQLITE_PRIVATE= -DSQLITE_CORE -DSQLITE_TEMP_STORE=1 -o  
testfixture ../../../src/src/test1.c ../../../src/src/test2.c 
../../../src/src/test3.c ../../../src/src/test4.c ../../../src/src/test5.c 
../../../src/src/test6.c ../../../src/src/test7.c ../../../src/src/test8.c 
../../../src/src/test9.c ../../../src/src/test_autoext.c 
../../../src/src/test_async.c ../../../src/src/test_btree.c 
../../../src/src/test_config.c ../../../src/src/test_devsym.c 
../../../src/src/test_func.c ../../../src/src/test_hexio.c 
../../../src/src/test_malloc.c ../../../src/src/test_md5.c 
../../../src/src/test_mutex.c ../../../src/src/test_onefile.c 
../../../src/src/test_osinst.c ../../../src/src/test_schema.c 
../../../src/src/test_server.c ../../../src/src/test_tclvar.c 
../../../src/src/test_thread.c ../../../src/src/tclsqlite.c  
sqlite3.c -lpthread
In file included from ../../../src/src/test1.c:18:
../../../src/src/sqliteInt.h:225:18: tcl.h: No such file or directory
../../../src/src/test1.c:77: error: syntax error before Tcl_Interp
../../../src/src/test1.c: In function `get_sqlite_pointer':
../../../src/src/test1.c:82: error: `Tcl_CmdInfo' undeclared (first use in  
this function)
../../../src/src/test1.c:82: error: (Each undeclared identifier is reported  
only once
../../../src/src/test1.c:82: error: for each function it appears in.)
../../../src/src/test1.c:82: error: syntax error before cmdInfo
...
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Make Test Failure Without tcl.h

2008-11-06 Thread Michael Schlenker
[EMAIL PROTECTED] schrieb:
 I'm having trouble running make test when I don't have tcl-devel rpm  
 installed (which contains tcl.h). I've tried both with and without  
 --disable-tcl but it seems like the tests don't care that I've disabled  
 tcl. 
I can't easily change my build machines (ie installing tcl-devel) so  
 I'm wondering how I might get this working.

As i understand the setup the Tests are actually Tcl scripts... and for
make test the sqlite functions are wrapped as Tcl commands to be excercised
(which is a usually trivial excercise with the Tcl C-API).

So no 'make test' without Tcl headers.

You could rewrite all the Tests in a language that has a foreign function
call interface so you could use the sqlite lib without wrapping for doing
those tests, e.g. Python+ctype or Tcl+ffidl or any other part of it.

But guess thats just a waste of time, those Tcl tests work, are far more
portable than any FFI interface you'll find and putting a Tcl on a box
(unless your on really small embedded hardware) should not be a problem
anywhere. Actually even GCC is tested with Tcl, via DejaGnu/Expect...

Michael

-- 
Michael Schlenker
Software Engineer

CONTACT Software GmbH   Tel.:   +49 (421) 20153-80
Wiener Straße 1-3   Fax:+49 (421) 20153-41
28359 Bremen
http://www.contact.de/  E-Mail: [EMAIL PROTECTED]

Sitz der Gesellschaft: Bremen
Geschäftsführer: Karl Heinz Zachries, Ralf Holtgrefe
Eingetragen im Handelsregister des Amtsgerichts Bremen unter HRB 13215
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users