Re: [sqlite] Building sqlite 3.2.8 on redhat 9

2006-01-01 Thread Dan Kennedy
If possible, the easiest way around this is to install Active-tcl. 
Or compile the tcl library yourself. For a long time the stock tcl 
install in redhat was problematic. 

http://www.activestate.com/Products/ActiveTcl/




--- Lloyd Thomas <[EMAIL PROTECTED]> wrote:

> I am having a problem building sqlite on my redhat 9 box. There seems to be 
> a problem with TCL. I am no linux guru, so it some one can poinjt me in the 
> right direction that would be great.
> 
> here is as far as I get
> 
> 
> [EMAIL PROTECTED] sqlite-3.2.8]# make
> ./libtool --mode=compile 
> gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG  -DTHREADSAFE=0  
> -DSQLITE_OMIT_CURSOR -c ./src/tclsqlite.c
>  gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG -DTHREADSAFE=0  
> -DSQLITE_OMIT_CURSOR -c ./src/tclsqlite.c  -fPIC -DPIC -o .libs/tclsqlite.o
> src/tclsqlite.c: In function `tclSqlFunc':
> src/tclsqlite.c:372: warning: passing arg 1 of `Tcl_NewByteArrayObj' 
> discards qualifiers from pointer target type
> src/tclsqlite.c:380: warning: assignment makes pointer from integer without 
> a cast
> src/tclsqlite.c:438: `Tcl_WideInt' undeclared (first use in this function)
> src/tclsqlite.c:438: (Each undeclared identifier is reported only once
> src/tclsqlite.c:438: for each function it appears in.)
> src/tclsqlite.c:438: parse error before "v"
> src/tclsqlite.c:439: `v' undeclared (first use in this function)
> src/tclsqlite.c: In function `DbObjCmd':
> src/tclsqlite.c:636: warning: passing arg 3 of `Tcl_GetIndexFromObj' from 
> incompatible pointer type
> src/tclsqlite.c:1252: warning: passing arg 2 of `Tcl_GetVar2Ex' discards 
> qualifiers from pointer target type
> src/tclsqlite.c:1274: `Tcl_WideInt' undeclared (first use in this function)
> src/tclsqlite.c:1274: parse error before "v"
> src/tclsqlite.c:1275: `v' undeclared (first use in this function)
> src/tclsqlite.c:1325: warning: passing arg 1 of `Tcl_NewByteArrayObj' 
> discards qualifiers from pointer target type
> src/tclsqlite.c:1333: warning: assignment makes pointer from integer without 
> a cast
> src/tclsqlite.c:1773: warning: passing arg 3 of `Tcl_GetIndexFromObj' from 
> incompatible pointer type
> src/tclsqlite.c: In function `DbMain':
> src/tclsqlite.c:1918: warning: passing arg 2 of `Tcl_CreateObjCommand' 
> discards qualifiers from pointer target type
> make: *** [tclsqlite.lo] Error 1
> --
> 
> 





__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/


Re: [sqlite] Re: Stored Procedure or Functions

2006-01-01 Thread Hakki Dogusan

Hi

Bogusław Brandys wrote:


Igor Tandetnik wrote:


"Vishal Kashyap" wrote



[snipped]



Maybe it would be fine and useful to add lua scripting language to 
sqlite (maybe in shared library to not broke current code )


Regards
Boguslaw Brandys





Not aimed to implement stored procedures, but I did something
can be used for this. It is a library to execute remote lua code.
With using wxSQLite3 (and my Lua binding to it) It may be
used for stored procedures.

Implementation is at: http://www.dynaset.org/dogusanh named: DSAS

(I put some sample code using SQLite in it.)

--
Regards,
Hakki Dogusan






Re: [sqlite] Compiling with Visual Studio 2005

2006-01-01 Thread Teg
Hello Tim,

I've run into the same thing and have reverted back to VC6 for this
and other reasons. One change that might be really signitificant is
that the time_t is now a 64 bit number and that "time()" doesn't
return seconds since the epoche by default any more. You can force it
to be 32 bits again but, you have to define:

#define _USE_32BIT_TIME_T

in every situation where you use "time" and time_t's. The default
structure alignment is different between VC6 and VS2005 as well.

For most things, VS2005 generates slower code than VC6. Since I just
do C++, there was no significant benefit to using it over VC6. It is
better than VS2003 though. I use VS2005 now to validate my code since
it does a much better job with C++ standards compliance than VC6 but,
I don't release with it.


C




Sunday, January 1, 2006, 11:48:59 AM, you wrote:

TA> This isn't specific to Sqlite; but the situation with msvcr80.dll is
TA> worth noting. See my blog post:

TA> http://www.itwriting.com/blog/?postid=261

TA> In a nutshell: if you use the latest Microsoft compiler and choose
TA> dynamic linking to the C runtime library, you have a potentially complex
TA> deployment. Easiest solution is to use static linking (/MT rather than
TA> /MD); but dynamic linking is the default. Or use a different compiler.

TA> I'm not sure that I've nailed every last nuance of this problem, so
TA> comments welcome.

TA> Tim



-- 
Best regards,
 Tegmailto:[EMAIL PROTECTED]



[sqlite] Compiling with Visual Studio 2005

2006-01-01 Thread Tim Anderson
This isn't specific to Sqlite; but the situation with msvcr80.dll is
worth noting. See my blog post:

http://www.itwriting.com/blog/?postid=261

In a nutshell: if you use the latest Microsoft compiler and choose
dynamic linking to the C runtime library, you have a potentially complex
deployment. Easiest solution is to use static linking (/MT rather than
/MD); but dynamic linking is the default. Or use a different compiler.

I'm not sure that I've nailed every last nuance of this problem, so
comments welcome.

Tim


[sqlite] Building sqlite 3.2.8 on redhat 9

2006-01-01 Thread Lloyd Thomas
I am having a problem building sqlite on my redhat 9 box. There seems to be 
a problem with TCL. I am no linux guru, so it some one can poinjt me in the 
right direction that would be great.


here is as far as I get


[EMAIL PROTECTED] sqlite-3.2.8]# make
./libtool --mode=compile 
gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG  -DTHREADSAFE=0  
-DSQLITE_OMIT_CURSOR -c ./src/tclsqlite.c
gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG -DTHREADSAFE=0  
-DSQLITE_OMIT_CURSOR -c ./src/tclsqlite.c  -fPIC -DPIC -o .libs/tclsqlite.o

src/tclsqlite.c: In function `tclSqlFunc':
src/tclsqlite.c:372: warning: passing arg 1 of `Tcl_NewByteArrayObj' 
discards qualifiers from pointer target type
src/tclsqlite.c:380: warning: assignment makes pointer from integer without 
a cast

src/tclsqlite.c:438: `Tcl_WideInt' undeclared (first use in this function)
src/tclsqlite.c:438: (Each undeclared identifier is reported only once
src/tclsqlite.c:438: for each function it appears in.)
src/tclsqlite.c:438: parse error before "v"
src/tclsqlite.c:439: `v' undeclared (first use in this function)
src/tclsqlite.c: In function `DbObjCmd':
src/tclsqlite.c:636: warning: passing arg 3 of `Tcl_GetIndexFromObj' from 
incompatible pointer type
src/tclsqlite.c:1252: warning: passing arg 2 of `Tcl_GetVar2Ex' discards 
qualifiers from pointer target type

src/tclsqlite.c:1274: `Tcl_WideInt' undeclared (first use in this function)
src/tclsqlite.c:1274: parse error before "v"
src/tclsqlite.c:1275: `v' undeclared (first use in this function)
src/tclsqlite.c:1325: warning: passing arg 1 of `Tcl_NewByteArrayObj' 
discards qualifiers from pointer target type
src/tclsqlite.c:1333: warning: assignment makes pointer from integer without 
a cast
src/tclsqlite.c:1773: warning: passing arg 3 of `Tcl_GetIndexFromObj' from 
incompatible pointer type

src/tclsqlite.c: In function `DbMain':
src/tclsqlite.c:1918: warning: passing arg 2 of `Tcl_CreateObjCommand' 
discards qualifiers from pointer target type

make: *** [tclsqlite.lo] Error 1
--