| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| From: | Francis Litterio <franl AT world DOT std DOT com> |
| Subject: | Patch to get bc 1.06 to compile under Cygwin with readline library. |
| Date: | Thu, 03 Oct 2002 10:45:38 -0400 |
| Message-ID: | <ubs6bd0l1.fsf@world.std.com> |
| User-Agent: | Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 |
| (i386-msvc-nt5.0.2195) | |
| Lines: | 30 |
| MIME-Version: | 1.0 |
I downloaded and installed the Cygwin source code to bc 1.06, but it
would not build under Cygwin 1.3.12-2 when configured with
--enable-readline
unless I made a small change to bc/scan.l (which may or may not be the
right way to fix the compiler error about symbol "readline" having
conflicting definitions, one in scan.l and one in
/usr/include/readline/readline.h).
The patch is below. Hope this helps.
--
Francis Litterio
franl AT world DOT std DOT com
http://world.std.com/~franl/
GPG and PGP public keys available on keyservers.
--- scan.l.orig 2002-10-03 10:45:18.000000000 -0400
+++ scan.l 2002-10-03 10:43:23.000000000 -0400
@@ -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
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |