On Wed, May 18, 2011 at 6:05 PM, Nico Williams <n...@cryptonector.com>wrote:
> The SQLite3 docs Fossil repository doesn't seem to include any > instructions for building the docs. I've searched sqlite.org up and > down (docs and wiki both) for these instructions. I've also searched > the web a bit and found nothing obvious. I have figured out something > from the file named main.mk: I need to write a Makefile that defines > the macros named in main.mk and then have it include main.mk, but I'm > missing some things. For example, "make base" fails with relocation > errors while building tclsh: > > gcc -g -o tclsh -DSQLITE_ENABLE_FTS3 -DTCLSH=1 -DSQLITE_TCLMD5 > -I/usr/include/tcl8.4 /tmp/sqlite3/sqlite3.c -ltcl8.4 -lpthread -ldl > You need tclsqlite3.c, not sqlite3.c. main() is found in tclsqlite3.c. The comment in the Makefile is not clear on this point and needs to be fixed.... > -lc > /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 > has invalid symbol index 12 > [...] > /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 22 > has invalid symbol index 22 > /usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function > `_start': > (.text+0x18): undefined reference to `main' > collect2: ld returned 1 exit status > make: *** [tclsh] Error 1 > > I'm missing something in the TCLFLAGS macro, or something. What might that > be? > > Nico > -- > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users