I installed the bc source package (bc-1.06-1-src.tar.bz2) and configured it to build with readline support as follows:
cd /usr/src/bc-1.06-1 ./configure --with-readline --prefix=/usr/local The build fails with a syntax error related to the readline support: $ make ... gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c scan.c scan.l:146: error: conflicting types for `readline' /usr/include/readline/readline.h:277: error: previous declaration of `readline' I made the following small change to the source code in scan.l and bc builds just fine: --- scan.l.orig 2004-02-13 16:22:26.847595200 -0500 +++ scan.l 2004-02-13 16:21:55.702811200 -0500 @@ -143,7 +143,7 @@ /* Definitions for readline access. */ extern FILE *rl_instream; -_PROTOTYPE(char *readline, (char *)); +/* _PROTOTYPE(char *readline, (char *)); */ /* rl_input puts upto MAX characters into BUF with the number put in BUF placed in *RESULT. If the yy input file is the same as I hope the Cygwin bc maintainer can integrate this change. bc is much nicer to use when it has readline support. -- Francis Litterio [EMAIL PROTECTED] http://world.std.com/~franl/ GPG and PGP public keys available on keyservers. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/