Re: [sqlite] libreadline.so error undefined reference.

2005-04-15 Thread Mike Shaver
On 4/15/05, Cem Vedat ISIK <[EMAIL PROTECTED]> wrote:
> ./.libs/libsqlite3.so: undefined reference to `sqlite3KeywordCode'

Can't help you with that, but:

> /opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to
> `tgoto'
> /opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to
> `tgetflag'

these look like you need to be linking against -lcurses or -lncurses
or whatever your platform has.  Try getting those into the link line
and see if that improves your lot.

Mike


[sqlite] libreadline.so error undefined reference.

2005-04-15 Thread Cem Vedat ISIK
Hi everybody,
I'm trying to cross compile sqlite for PowerPC using ppc_8xx-gcc on 
ELDK, I've edited Makefile and libtool by hand, but I'm stuck at this point.

./libtool --mode=link ppc_8xx-gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. 
-I./src -DNDEBUG  -DSQLITE_OMIT_CURSOR -DHAVE_READLINE=1 
-I/usr/include/readline  \
   -o sqlite3 ./src/shell.c libsqlite3.la -lreadline -lreadline
ppc_8xx-gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG 
-DSQLITE_OMIT_CURSOR -DHAVE_READLINE=1 -I/usr/include/readline -o 
.libs/sqlite3 ./src/shell.c  ./.libs/libsqlite3.so -lreadline
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to 
`tgetnum'
./.libs/libsqlite3.so: undefined reference to `sqlite3KeywordCode'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to 
`tgoto'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to 
`tgetflag'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to `BC'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to 
`tputs'
./.libs/libsqlite3.so: undefined reference to `keywordCode'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to `PC'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to 
`tgetent'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to `UP'
/opt/eldk/usr/../ppc_8xx/usr/lib/libreadline.so: undefined reference to 
`tgetstr'
collect2: ld returned 1 exit status
make: *** [sqlite3] Error 1
cem-linux:~/ppc_8xx/mywork/sqlite-3.2.1 #

I'm getting these "undefined reference" ibreadline so errors. I'm 
looking forward to hearing any suggestions from you soon. Thanks for 
your time and considerations.

--
Cem Vedat ISIK
[EMAIL PROTECTED]
R Engineer
Telecommunication Technologies