Re: [sqlite] 3.5.7 Compile Fails On sqlite3.c

2008-04-04 Thread Matthew L. Creech
On Thu, Apr 3, 2008 at 7:05 PM, Robert L Cochran <[EMAIL PROTECTED]> wrote:
> Here is what I did:
>
>  tar -xvzf sqlite-3.5.7.tar.gz
>  cd sqlite-3.5.7
>  mkdir bld
>  cd !$
>  ../configure --prefix=/usr/local/sqlite-3.5.7 --disable-tcl
>  --enable-threadsafe
>  make
>

Yeah, this was reported & fixed in CVS shortly after the 3.5.7 release:

http://www.sqlite.org/cvstrac/chngview?cn=4890

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


Re: [sqlite] 3.5.7 Compile Fails On sqlite3.c

2008-04-03 Thread Robert L Cochran
Robert L Cochran wrote:
> Here is what I did:
>
> tar -xvzf sqlite-3.5.7.tar.gz
> cd sqlite-3.5.7
> mkdir bld
> cd !$
> ../configure --prefix=/usr/local/sqlite-3.5.7 --disable-tcl
> --enable-threadsafe
> make
>
> --
> (output of make is shown below)
>  
> [EMAIL PROTECTED] bld]$ make
> sed -e s/--VERS--/3.5.7/ ../src/sqlite.h.in | \
> sed -e s/--VERSION-NUMBER--/3005007/ >sqlite3.h
> gcc -g -O2 -o mkkeywordhash  ../tool/mkkeywordhash.c
> ./mkkeywordhash >keywordhash.h
> gcc -g -O2 -o lemon ../tool/lemon.c
> cp ../tool/lempar.c .
> cp ../src/parse.y .
> ./lemon  parse.y
> mv parse.h parse.h.temp
> gawk -f ../addopcodes.awk parse.h.temp >parse.h
> cat parse.h ../src/vdbe.c | gawk -f ../mkopcodeh.awk >opcodes.h
> sort -n -b -k 3 opcodes.h | gawk -f ../mkopcodec.awk >opcodes.c
> rm -rf tsrc
> mkdir -p tsrc
> cp ../src/alter.c ../src/analyze.c ../src/attach.c ../src/auth.c
> ../src/bitvec.c ../src/btmutex.c ../src/btree.c ../src/btree.h
> ../src/btreeInt.h ../src/build.c ../src/callback.c ../src/complete.c
> ../src/config.h ../src/date.c ../src/delete.c ../src/expr.c
> ../src/fault.c ../src/func.c ../src/hash.c ../src/hash.h ../src/insert.c
> ../src/journal.c ../src/legacy.c ../src/loadext.c ../src/main.c
> ../src/malloc.c ../src/mem1.c ../src/mem2.c ../src/mem3.c ../src/mem4.c
> ../src/mem5.c ../src/mutex.c ../src/mutex.h ../src/mutex_os2.c
> ../src/mutex_unix.c ../src/mutex_w32.c ../src/os.c ../src/os.h
> ../src/os_common.h ../src/os_unix.c ../src/os_win.c ../src/os_os2.c
> ../src/pager.c ../src/pager.h ../src/parse.y ../src/pragma.c
> ../src/prepare.c ../src/printf.c ../src/random.c ../src/select.c
> ../src/shell.c ../src/sqlite.h.in ../src/sqlite3ext.h ../src/sqliteInt.h
> ../src/sqliteLimit.h ../src/table.c ../src/tclsqlite.c ../src/tokenize.c
> ../src/trigger.c ../src/utf.c ../src/update.c ../src/util.c
> ../src/vacuum.c ../src/vdbe.c ../src/vdbe.h ../src/vdbeapi.c
> ../src/vdbeaux.c ../src/vdbeblob.c ../src/vdbefifo.c ../src/vdbemem.c
> ../src/vdbeInt.h ../src/vtab.c ../src/where.c keywordhash.h opcodes.c
> opcodes.h parse.c parse.h sqlite3.h ../ext/fts1/fts1.c
> ../ext/fts1/fts1.h ../ext/fts1/fts1_hash.c ../ext/fts1/fts1_hash.h
> ../ext/fts1/fts1_porter.c ../ext/fts1/fts1_tokenizer.h
> ../ext/fts1/fts1_tokenizer1.c ../ext/fts2/fts2.c ../ext/fts2/fts2.h
> ../ext/fts2/fts2_hash.c ../ext/fts2/fts2_hash.h ../ext/fts2/fts2_icu.c
> ../ext/fts2/fts2_porter.c ../ext/fts2/fts2_tokenizer.h
> ../ext/fts2/fts2_tokenizer.c ../ext/fts2/fts2_tokenizer1.c
> ../ext/fts3/fts3.c ../ext/fts3/fts3.h ../ext/fts3/fts3_hash.c
> ../ext/fts3/fts3_hash.h ../ext/fts3/fts3_icu.c ../ext/fts3/fts3_porter.c
> ../ext/fts3/fts3_tokenizer.h ../ext/fts3/fts3_tokenizer.c
> ../ext/fts3/fts3_tokenizer1.c ../ext/icu/icu.c tsrc
> rm tsrc/sqlite.h.in tsrc/parse.y
> touch .target_source
> tclsh8.4 ../tool/mksqlite3c.tcl
> ./libtool --mode=compile --tag=CC gcc  -g -O2 -DOS_UNIX=1 -I. -I../src
> -DNDEBUG   -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
> -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ../sqlite3.c
> mkdir .libs
>  gcc -g -O2 -DOS_UNIX=1 -I. -I../src -DNDEBUG -DSQLITE_THREADSAFE=1
> -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c
> ../sqlite3.c  -fPIC -DPIC -o .libs/sqlite3.o
> gcc: ../sqlite3.c: No such file or directory
> gcc: no input files
> make: *** [sqlite3.lo] Error 1
> 
>
> I looked at the Makefile and it seems to me the problem is in the
> definition of TOP which is set to '..'. All the source files are
> apparently copied to the current directory '.' not '../'.
>
> Is there some new recommended way to build the source code than the one
> given in the README file?
>
> Thanks
>
>
> Bob Cochran
> Greenbelt, Maryland, USA
>
>
>
>   
Fixed with this change to Makefile...the line starting with < is what
works.

[EMAIL PROTECTED] bld]$ diff Makefile Makefile~
430c430
<   $(LTCOMPILE) -c ./sqlite3.c
---
>   $(LTCOMPILE) -c $(TOP)/sqlite3.c



Bob


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


[sqlite] 3.5.7 Compile Fails On sqlite3.c

2008-04-03 Thread Robert L Cochran
Here is what I did:

tar -xvzf sqlite-3.5.7.tar.gz
cd sqlite-3.5.7
mkdir bld
cd !$
../configure --prefix=/usr/local/sqlite-3.5.7 --disable-tcl
--enable-threadsafe
make

--
(output of make is shown below)
 
[EMAIL PROTECTED] bld]$ make
sed -e s/--VERS--/3.5.7/ ../src/sqlite.h.in | \
sed -e s/--VERSION-NUMBER--/3005007/ >sqlite3.h
gcc -g -O2 -o mkkeywordhash  ../tool/mkkeywordhash.c
./mkkeywordhash >keywordhash.h
gcc -g -O2 -o lemon ../tool/lemon.c
cp ../tool/lempar.c .
cp ../src/parse.y .
./lemon  parse.y
mv parse.h parse.h.temp
gawk -f ../addopcodes.awk parse.h.temp >parse.h
cat parse.h ../src/vdbe.c | gawk -f ../mkopcodeh.awk >opcodes.h
sort -n -b -k 3 opcodes.h | gawk -f ../mkopcodec.awk >opcodes.c
rm -rf tsrc
mkdir -p tsrc
cp ../src/alter.c ../src/analyze.c ../src/attach.c ../src/auth.c
../src/bitvec.c ../src/btmutex.c ../src/btree.c ../src/btree.h
../src/btreeInt.h ../src/build.c ../src/callback.c ../src/complete.c
../src/config.h ../src/date.c ../src/delete.c ../src/expr.c
../src/fault.c ../src/func.c ../src/hash.c ../src/hash.h ../src/insert.c
../src/journal.c ../src/legacy.c ../src/loadext.c ../src/main.c
../src/malloc.c ../src/mem1.c ../src/mem2.c ../src/mem3.c ../src/mem4.c
../src/mem5.c ../src/mutex.c ../src/mutex.h ../src/mutex_os2.c
../src/mutex_unix.c ../src/mutex_w32.c ../src/os.c ../src/os.h
../src/os_common.h ../src/os_unix.c ../src/os_win.c ../src/os_os2.c
../src/pager.c ../src/pager.h ../src/parse.y ../src/pragma.c
../src/prepare.c ../src/printf.c ../src/random.c ../src/select.c
../src/shell.c ../src/sqlite.h.in ../src/sqlite3ext.h ../src/sqliteInt.h
../src/sqliteLimit.h ../src/table.c ../src/tclsqlite.c ../src/tokenize.c
../src/trigger.c ../src/utf.c ../src/update.c ../src/util.c
../src/vacuum.c ../src/vdbe.c ../src/vdbe.h ../src/vdbeapi.c
../src/vdbeaux.c ../src/vdbeblob.c ../src/vdbefifo.c ../src/vdbemem.c
../src/vdbeInt.h ../src/vtab.c ../src/where.c keywordhash.h opcodes.c
opcodes.h parse.c parse.h sqlite3.h ../ext/fts1/fts1.c
../ext/fts1/fts1.h ../ext/fts1/fts1_hash.c ../ext/fts1/fts1_hash.h
../ext/fts1/fts1_porter.c ../ext/fts1/fts1_tokenizer.h
../ext/fts1/fts1_tokenizer1.c ../ext/fts2/fts2.c ../ext/fts2/fts2.h
../ext/fts2/fts2_hash.c ../ext/fts2/fts2_hash.h ../ext/fts2/fts2_icu.c
../ext/fts2/fts2_porter.c ../ext/fts2/fts2_tokenizer.h
../ext/fts2/fts2_tokenizer.c ../ext/fts2/fts2_tokenizer1.c
../ext/fts3/fts3.c ../ext/fts3/fts3.h ../ext/fts3/fts3_hash.c
../ext/fts3/fts3_hash.h ../ext/fts3/fts3_icu.c ../ext/fts3/fts3_porter.c
../ext/fts3/fts3_tokenizer.h ../ext/fts3/fts3_tokenizer.c
../ext/fts3/fts3_tokenizer1.c ../ext/icu/icu.c tsrc
rm tsrc/sqlite.h.in tsrc/parse.y
touch .target_source
tclsh8.4 ../tool/mksqlite3c.tcl
./libtool --mode=compile --tag=CC gcc  -g -O2 -DOS_UNIX=1 -I. -I../src
-DNDEBUG   -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
-DSQLITE_OMIT_LOAD_EXTENSION=1 -c ../sqlite3.c
mkdir .libs
 gcc -g -O2 -DOS_UNIX=1 -I. -I../src -DNDEBUG -DSQLITE_THREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c
../sqlite3.c  -fPIC -DPIC -o .libs/sqlite3.o
gcc: ../sqlite3.c: No such file or directory
gcc: no input files
make: *** [sqlite3.lo] Error 1


I looked at the Makefile and it seems to me the problem is in the
definition of TOP which is set to '..'. All the source files are
apparently copied to the current directory '.' not '../'.

Is there some new recommended way to build the source code than the one
given in the README file?

Thanks


Bob Cochran
Greenbelt, Maryland, USA



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