Re: [sqlite] Compiling sqlite3.0.3 on dec-osf1 with gcc 3.04 failed
Hello, I compiled the new 3.0.4 sources without any changes on OSF-1 now. No need for the '-DUINTPTR_TYPE=unsigned long long' flag at all. However I am wondering that the shared lib for tcl is build only by invoking `make test' and that this shared lib is much smaller than the shared lib gotten with the old: gmake target_source cd tsrc rm shell.c gcc -fPIC -DNDEBUG=1 -shared *.c -o tclsqlite.so -L/project/amphioxus/lib -I/project/amphioxus/include -L/usr/shlib -ltcl8.4 -rpath "/usr/shlib:/project/amphioxus/lib:/usr/local/lib" approach ? How can I compile a smaller 2.8.15 shared tcl-lib? In 2.8.15 `make test' makes the static but not the dynamic library for tcl ? regards, Detlef -- Dr. Detlef Groth Max-Planck-Institut fuer Molekulare Genetik Ihnestr. 63/73 D-14195 Berlin Tel.: + 49 30 - 8413 1235
Re: [sqlite] Compiling sqlite3.0.3 on dec-osf1 with gcc 3.04 failed
On Wednesday 04 August 2004 7:27 am, D. Richard Hipp wrote: > Detlef Groth wrote: > > Hello, > > > > I could recently compile the sqlite2.x code without problems but now I > > can't compile the the 3.0.3 branch. > > > > The main problem is in: > > sqliteInt.h:129: parse error before "uptr" > > sqliteInt.h:129: warning: data definition has no type or storage class > > Try adding '-DUINTPTR_TYPE=u64' to the compiler command line. Please let > me know if that helps. The tarball for 3.03 doesn't include fixes for 64 bit. The OP needs to grab the latest CVS and compile it, it compiles clean on my AMD64 whereas 3.03 doesn't. I'm running into this same problem with DBD::SQLite, which grabs the tarball. It would be nice if a new release would be issued soon. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.104-default x86_64
Re: [sqlite] Compiling sqlite3.0.3 on dec-osf1 with gcc 3.04 failed
I added `-DUINTPTR_TYPE=u64' to the TCC line of the Makefile but it does not help either! [EMAIL PROTECTED]:/project/amphioxus/src/sqlite-3.0.3/build> gmake clean all rm -f *.lo *.la *.o sqlite3 libsqlite3.la rm -f sqlite3.h opcodes.* rm -rf .libs .deps rm -f lemon lempar.c parse.* sqlite*.tar.gz rm -f rm -f *.da *.bb *.bbg gmon.out rm -f testfixture test.db rm -rf doc rm -f common.tcl rm -f sqlite3.dll sqlite3.lib sed -e s/--VERS--/`cat ../sqlite/VERSION`/ \ ../sqlite/src/sqlite.h.in >sqlite3.h echo '/* Automatically generated file. Do not edit */' >opcodes.h grep '^case OP_' ../sqlite/src/vdbe.c | \ sed -e 's/://' | \ awk '{printf "#define %-30s %3d\n", $2, ++cnt}' >>opcodes.h gcc -g -O2 -o lemon ../sqlite/tool/lemon.c cp ../sqlite/tool/lempar.c . cp ../sqlite/src/parse.y . ./lemon parse.y ./libtool --mode=compile gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -DUINTPTR_TYPE=u64 -I. -I../sqlite/src -DNDEBUG -c ../sqlite/src/attach.c gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -DUINTPTR_TYPE=u64 -I. -I../sqlite/src -DNDEBUG -c ../sqlite/src/attach.c -o attach.o In file included from ../sqlite/src/attach.c:16: ../sqlite/src/sqliteInt.h:129: parse error before "uptr" ../sqlite/src/sqliteInt.h:129: warning: data definition has no type or storage class gmake: *** [attach.lo] Error 1 >Detlef Groth wrote: >> Hello, >> >> I could recently compile the sqlite2.x code without problems but now I can't >> compile the the 3.0.3 branch. >> >> The main problem is in: >> sqliteInt.h:129: parse error before "uptr" >> sqliteInt.h:129: warning: data definition has no type or storage class >> >Try adding '-DUINTPTR_TYPE=u64' to the compiler command line. Please let me know if that helps. >-- >D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565 -- Dr. Detlef Groth dgroth at gmx.de