Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293405 - dev-db/sqlite-3.6.20-r1 fts3 support doesn't compile without tcl installed
Summary: dev-db/sqlite-3.6.20-r1 fts3 support doesn't compile without tcl installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-16 16:36 UTC by Petteri Räty (RETIRED)
Modified: 2009-11-22 09:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2009-11-16 16:36:49 UTC
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1 -DSQLITE_TEMP_STORE=1 -c ./src/malloc.c  -fPIC -DPIC -o .libs/malloc.o
./src/main.c:20:19: error: fts3.h: No such file or directory
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1 -DSQLITE_TEMP_STORE=1 -c ./src/insert.c -o insert.o >/dev/null 2>&1
./libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc   -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1  -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1   -DSQLITE_TEMP_STORE=1 -c ./src/mem0.c
make: *** [main.lo] Error 1
make: *** Waiting for unfinished jobs....
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1 -DSQLITE_TEMP_STORE=1 -c ./src/mem0.c  -fPIC -DPIC -o .libs/mem0.o
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1 -DSQLITE_TEMP_STORE=1 -c ./src/mem0.c -o mem0.o >/dev/null 2>&1
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1 -DSQLITE_TEMP_STORE=1 -c ./src/malloc.c -o malloc.o >/dev/null 2>&1
 * ERROR: dev-db/sqlite-3.6.20-r1 failed:
 *   emake failed
 *
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-11-22 09:09:32 UTC
anarchy: Your patch from bug 207701 fails when tcl is installed but off

tclsh ./tool/mksqlite3c.tcl
./libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc   -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1  -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1  -DSQLITE_CORE -DSQLITE_ENABLE_FTS3=1  -DSQLITE_TEMP_STORE=1 -c sqlite3.c
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE -DSQLITE_ENABLE_FTS3=1 -DSQLITE_TEMP_STORE=1 -c sqlite3.c  -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c:97614: error: static declaration of 'sqlite3Fts3Init' follows non-static declaration
./src/../ext/fts3/fts3.h:22: note: previous declaration of 'sqlite3Fts3Init' was here
make: *** [sqlite3.lo] Error 1

I just made the patch conditional for now but we need to come up with a better patch for the future.