Re: [sqlite] Compiling with mingw32/msys on Windows

2008-10-22 Thread John Belli
I got the CVS version and it mostly works, but I'm hitting a bug in
mingw32 gcc now (which, after some investigation, may have been fixed
in a later version than the current release). At least I can take the
processed amalgamation and use it in a VS2k5 project.

Note: SQLITE_ENABLE_IOTRACE doesn't appear to work either, unless I
need to pass it to configure as well.

[EMAIL PROTECTED] ~/bld $ make OPTS="-DSQLITE_THREADSAFE=1
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3
-DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_RTREE
-DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
   ...
libtool: compile:  gcc -DSQLITE_OS_WIN=1 -I. -I../sqlite/src
-D_HAVE_SQLITE_CONFIG_H -DNDEBUG -IC:/Tcl/include
-DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_THREADSAFE=1
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3
-DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_RTREE
-DSQLITE_DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
-DUSE_TCL_STUBS=1 -c ../sqlite/src/tclsqlite.c  -DDLL_EXPORT -DPIC -o
.libs/tclsqlite.o
../sqlite/src/tclsqlite.c: In function `Sqlite3_Init':
../sqlite/src/tclsqlite.c:2524: internal compiler error: in
rest_of_handle_final, at toplev.c:2067
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
make: *** [tclsqlite.lo] Error 1

JAB
-- 
John A. Belli
Software Engineer
Refrigerated Transport Electronics, Inc.
http://www.rtelectronics.com

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


Re: [sqlite] Compiling with mingw32/msys on Windows

2008-10-22 Thread John Belli
On Wed, 22 Oct 2008 14:34:04 -0400, "Shane Harrelson"
<[EMAIL PROTECTED]> wrote:

>I was able to duplicate the issue, and I've updated the configure
>scripts to correct the problem.

OK, great. Is the tarball updated, or do I need to get it from CVS?

>If you are generating your makefile using configure, you can pass it
>options like this:
>
>   configure CFLAGS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
>
>This will generate a makefile which passes the
>SQLITE_ENABLE_UPDATE_DELETE_LIMIT option to the build components.
>If you already have a makefile generated by configure, you should be
>able to add custom compile options like this:
>
>   make OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
>
>or for multiple options:
>
>   make "OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 -DSQLITE_OMIT_TRIGGER=1"

I thought you used OPTS with configure, too? At least, I did use it,
as shown upthread.

Thanks for looking into this.


JAB
-- 
John A. Belli
Software Engineer
Refrigerated Transport Electronics, Inc.
http://www.rtelectronics.com

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


Re: [sqlite] Compiling with mingw32/msys on Windows

2008-10-22 Thread Shane Harrelson
I was able to duplicate the issue, and I've updated the configure
scripts to correct the problem.
If you are generating your makefile using configure, you can pass it
options like this:

   configure CFLAGS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1

This will generate a makefile which passes the
SQLITE_ENABLE_UPDATE_DELETE_LIMIT option to the build components.
If you already have a makefile generated by configure, you should be
able to add custom compile options like this:

   make OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1

or for multiple options:

   make "OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 -DSQLITE_OMIT_TRIGGER=1"

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


Re: [sqlite] Compiling with mingw32/msys on Windows

2008-10-18 Thread Shane Harrelson
 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT is not being passed in make to
your object compiles...

I'll try to duplicate this here.

-Shane

On Fri, Oct 17, 2008 at 5:40 PM, John Belli <[EMAIL PROTECTED]> wrote:
> OK, I should have all the required utils, and configure apparently
> worked properly, but make barfs (log below):
> MinGW-5.1.4
> MSYS-1.0.10
> ActiveTcl8.5.4.0.286921-win32-ix86-threaded (after install, linked
> bin/tclsh85.exe to tclsh.exe)
>
> Any idea?
>
>
> JAB
> --
> John A. Belli
> Software Engineer
> Refrigerated Transport Electronics, Inc.
> http://www.rtelectronics.com
>
>
> [EMAIL PROTECTED] ~/bld $ ../sqlite/configure --with-tcl=/c/Tcl/lib
> --enable-load-extension OPTS="-DSQLITE_ENABLE_IOTRACE
> -DSQLITE_THREADSAFE=1
>  -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3
> -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_RTREE -DSQLITE_
> DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
>
> checking build system type... i686-pc-mingw32
> checking host system type... i686-pc-mingw32
> checking for gcc... gcc
> checking for C compiler default output file name... a.exe
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables... .exe
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for a sed that does not truncate output... /bin/sed
> checking for egrep... grep -E
> checking for fgrep... grep -F
> checking for ld used by gcc... c:/MinGW/mingw32/bin/ld.exe
> checking if the linker (c:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
> checking the name lister (/mingw/bin/nm) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 8192
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... no
> checking for c:/MinGW/mingw32/bin/ld.exe option to reload object
> files... -r
> checking how to recognize dependent libraries... file_magic file
> format pei*-i386(.*architecture: i386)?
> checking for ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /mingw/bin/nm output from gcc object... ok
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... no
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
> checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (c:/MinGW/mingw32/bin/ld.exe) supports
> shared libraries... yes
> checking whether -lc should be explicitly linked in... yes
> checking dynamic linker characteristics... Win32 ld.exe
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for a BSD-compatible install... /bin/install -c
> checking for gawk... gawk
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for _LARGE_FILES value needed for large files... no
> checking for int8_t... yes
> checking for int16_t... yes
> checking for int32_t... yes
> checking for int64_t... yes
> checking for intptr_t... yes
> checking for uint8_t... yes
> checking for uint16_t... yes
> checking for uint32_t... yes
> checking for uint64_t... yes
> checking for uintptr_t... yes
> checking for sys/types.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for stdint.h... (cached) yes
> checking for inttypes.h... (cached) yes
> checking for usleep... no
> checking for fdatasync... no
> checking for localtime_r... no
> checking for gmtime_r... no
> checking for localtime_s... no
> checking for tclsh8.4... no
> checking for tclsh... tclsh
> Version set to 3.6
> Release set to 3.6.4
> Version number set to 3006004
> checking whether to support threadsafe operation... yes
> checking for library containing pthread_create... no
> checking whether to allow connections to be shared across threads...
> no
> checking whether threads can override each others locks... no
> 

[sqlite] Compiling with mingw32/msys on Windows

2008-10-17 Thread John Belli
OK, I should have all the required utils, and configure apparently
worked properly, but make barfs (log below):
MinGW-5.1.4
MSYS-1.0.10
ActiveTcl8.5.4.0.286921-win32-ix86-threaded (after install, linked
bin/tclsh85.exe to tclsh.exe)

Any idea?


JAB
-- 
John A. Belli
Software Engineer
Refrigerated Transport Electronics, Inc.
http://www.rtelectronics.com


[EMAIL PROTECTED] ~/bld $ ../sqlite/configure --with-tcl=/c/Tcl/lib
--enable-load-extension OPTS="-DSQLITE_ENABLE_IOTRACE
-DSQLITE_THREADSAFE=1
 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3
-DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_RTREE -DSQLITE_
DEFAULT_FILE_FORMAT=4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"

checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for fgrep... grep -F
checking for ld used by gcc... c:/MinGW/mingw32/bin/ld.exe
checking if the linker (c:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for c:/MinGW/mingw32/bin/ld.exe option to reload object
files... -r
checking how to recognize dependent libraries... file_magic file
format pei*-i386(.*architecture: i386)?
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/MinGW/mingw32/bin/ld.exe) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /bin/install -c
checking for gawk... gawk
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uintptr_t... yes
checking for sys/types.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for usleep... no
checking for fdatasync... no
checking for localtime_r... no
checking for gmtime_r... no
checking for localtime_s... no
checking for tclsh8.4... no
checking for tclsh... tclsh
Version set to 3.6
Release set to 3.6.4
Version number set to 3006004
checking whether to support threadsafe operation... yes
checking for library containing pthread_create... no
checking whether to allow connections to be shared across threads...
no
checking whether threads can override each others locks... no
checking whether to support shared library linked as release mode or
not... no
checking whether to use an in-ram database for temporary tables... no
checking if executables have the .exe suffix... unknown
checking for Tcl configuration... found /c/Tcl/lib/tclConfig.sh
checking for existence of /c/Tcl/lib/tclConfig.sh... loading
checking for library containing tgetent... no
checking for readline in -lreadline... no
checking