I'm having trouble getting readline support working in the latest
sqlite3 (3.3.17-20070425 from CURRENT).  Even though I have the
with_readline option enabled in the spec, it does not appear to be
finding the readline includes properly.  I do have the readline RPM
installed (5.2.4-20070507) and the /opkg25/include/readline/readline.h
file is definitely there.

I checked the config.log in the build directory and it seems like it
isn't finding the readline.h file (I also see lots of -DHAVE_READLINE=0
in the compilation output):

$ grep readline config.log 
configure:19424: gcc -o conftest -O2 -pipe -DNDEBUG=1 -I/opkg25/include
-L/opkg25/lib conftest.c -lreadline   >&5
tgoto                               /opkg25/lib/libreadline.so
tputs                               /opkg25/lib/libreadline.so
tgetnum                             /opkg25/lib/libreadline.so
tgetstr                             /opkg25/lib/libreadline.so
tgetflag                            /opkg25/lib/libreadline.so
configure:19468: checking for readline in -lreadline
configure:19503: gcc -o conftest -O2 -pipe -DNDEBUG=1 -I/opkg25/include
-L/opkg25/lib conftest.c -lreadline  -lncurses  >&5
configure:19560: checking readline.h usability
conftest.c:52:22: readline.h: No such file or directory
| #include <readline.h>
configure:19601: checking readline.h presence
conftest.c:19:22: readline.h: No such file or directory
| #include <readline.h>
configure:19664: checking for readline.h
configure:19684: checking for /usr/include/readline.h
configure:19684: checking for /usr/include/readline/readline.h
configure:19684: checking for /usr/local/include/readline.h
configure:19684: checking for /usr/local/include/readline/readline.h
configure:19684: checking for /usr/local/readline/include/readline.h
configure:19684: checking for
/usr/local/readline/include/readline/readline.h
configure:19684: checking for /usr/contrib/include/readline.h
configure:19684: checking for /usr/contrib/include/readline/readline.h
configure:19684: checking for /mingw/include/readline.h
configure:19684: checking for /mingw/include/readline/readline.h
ac_cv_file__mingw_include_readline_h=no
ac_cv_file__mingw_include_readline_readline_h=no
ac_cv_file__usr_contrib_include_readline_h=no
ac_cv_file__usr_contrib_include_readline_readline_h=no
ac_cv_file__usr_include_readline_h=no
ac_cv_file__usr_include_readline_readline_h=no
ac_cv_file__usr_local_include_readline_h=no
ac_cv_file__usr_local_include_readline_readline_h=no
ac_cv_file__usr_local_readline_include_readline_h=no
ac_cv_file__usr_local_readline_include_readline_readline_h=no
ac_cv_header_readline_h=no
ac_cv_lib_readline_readline=yes


I also looked at the configure script for readline and it looks like it
has 2 options related to readline: --with-readline-inc and
--with-readline-lib, not sure if these are recent additions or not.  I
tried putting them in the spec file, but I get errors near the link
phase when I do this:

(cd .libs && rm -f libsqlite3.la && ln -s ../libsqlite3.la
libsqlite3.la)
./libtool --mode=link gcc -O2 -pipe -DNDEBUG=1 -I. -I./src -DNDEBUG
-DTHREADSAFE=1 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
-DSQLITE_OMIT_LOAD_EXTENSION=1 -DHAVE_READLINE=1 /opkg25/include
-lpthread  \
        -o sqlite3 ./src/shell.c libsqlite3.la \
        -lreadline -lncurses  -lrt 
gcc -O2 -pipe -DNDEBUG=1 -I. -I./src -DNDEBUG -DTHREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1
-DHAVE_READLINE=1 /opkg25/include -o .libs/sqlite3 ./src/shell.c
./.libs/libsqlite3.so -lpthread -lreadline -lncurses -lrt -R/opkg25/lib
src/shell.c:46:32: readline/readline.h: No such file or directory
src/shell.c:47:31: readline/history.h: No such file or directory
src/shell.c: In function `one_input_line':
src/shell.c:238: warning: assignment makes pointer from integer without
a cast
make: *** [sqlite3] Error 1
+ exit 2

This definitely worked before, my current sqlite3 RPM (3.3.8-20061014)
has working readline support in it.

Anyone have any ideas?

Thanks
-steve
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to