On Thu, Jun 28, 2012 at 7:35 PM, Richard Hipp <d...@sqlite.org> wrote:

> My makefile has the following:
>

Thanks for the tips. My initial problem was that sqlite4.h was 0 bytes due
to a failed build before i had installed tclsh and clang. That of course
caused grief. Removing it and rebuilding got me further. Now i'm at missing
members:

stephan@tiny:~/cvs/fossil/sqlite4$ make
tclsh ./tool/mksqlite4h.tcl . >sqlite4.h
clang -g -O0 -Wall -fstrict-aliasing -DSQLITE_DEBUG=1 -DHAVE_GMTIME_R
-DHAVE_LOCALTIME_R -DHAVE_MALLOC_USABLE_SIZE -DHAVE_USLEEP
-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_NO_SYNC=1 -I. -I./src
-I.  -I./ext/rtree -I./ext/icu -I./ext/fts3 -I./ext/async -c src/alter.c
In file included from src/alter.c:15:
In file included from ./src/sqliteInt.h:315:
./sqlite4.h:3446:1: warning: '/*' within block comment [-Wcomment]
/*
^
1 warning generated.
clang -g -O0 -Wall -fstrict-aliasing -DSQLITE_DEBUG=1 -DHAVE_GMTIME_R
-DHAVE_LOCALTIME_R -DHAVE_MALLOC_USABLE_SIZE -DHAVE_USLEEP
-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_NO_SYNC=1 -I. -I./src
-I.  -I./ext/rtree -I./ext/icu -I./ext/fts3 -I./ext/async -c src/analyze.c
In file included from src/analyze.c:117:
In file included from ./src/sqliteInt.h:315:
./sqlite4.h:3446:1: warning: '/*' within block comment [-Wcomment]
/*
^
src/analyze.c:177:26: error: no member named 'regRoot' in 'struct Parse'
      aRoot[i] = pParse->regRoot;
                 ~~~~~~  ^
src/analyze.c:183:25: error: no member named 'tnum' in 'struct Table'
      aRoot[i] = pStat->tnum;
                 ~~~~~  ^
src/analyze.c:472:13: error: no member named 'tnum' in 'struct Table'
  if( pTab->tnum==0 ){
      ~~~~  ^
src/analyze.c:679:54: error: no member named 'tnum' in 'struct Table'
    sqlite4VdbeAddOp3(v, OP_OpenRead, iIdxCur, pTab->tnum, iDb);
                                               ~~~~  ^
1 warning and 4 errors generated.
make: *** [analyze.o] Error 1

i tried a clean/rebuild to ensure(?) that any other stale/mis-generated
files weren't causing the problem, but the results are the same.

stephan@tiny:~/cvs/fossil/sqlite4$ f info
project-name: SQLite4
repository:   /home/stephan/cvs/fossil/sqlite4/../sqlite4.fsl
local-root:   /home/stephan/cvs/fossil/sqlite4/
project-code: 3cfe49689a940b1ecc726558ce7f7d295ab6cadd
checkout:     262705a2e8ffdbd0e2647167a4ac5445ad8f2aa7 2012-06-28 17:58:26
UTC
parent:       f105bf9ee9c1a7b304a3ee7575339e0178aa993e 2012-06-28 14:57:39
UTC
tags:         trunk
comment:      In lsmview.tcl, how additional information about levels on
mouse-
              over. (user: drh)


PS: i find it interesting that you chose clang over cc or gcc as the
default compiler. Not complaining, just observing.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to