delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/12/22/02:30:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Wed, 22 Dec 2010 01:12:43 -0600
From: Allan <mu8ja0i AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error compiling bc 1.06 with readline 6.1 and flex 2.54
References: <201012201923 DOT 11290 DOT juan DOT guerrero AT gmx DOT de>
Date: Wed, 22 Dec 2010 01:12:43 -0600
Message-ID: <818vzie0wk.fsf@earthlink.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (windows-nt)
X-No-Archive: Yes
Cancel-Lock: sha1:94B8Dv5I3fKHalWpYOzTzSMqW8c=
MIME-Version: 1.0
Lines: 49
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 4.226.105.22
X-Trace: sv3-gBkTndV2xG99NZ1xLp+g9WdsSoRRb5+G4vUxSuN2qvccYw5GrFgQYZ163uOHBLxANxq80gW48E7mWM4!+yhh3ga/XAial7gfYkPKKHXzwPd9Nd/OzNYuWhgVlwsAbwxPJaCwJ8pG7bRl3TqYD5SlnQj1m2uV!TDMo5FE=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 3286
X-Original-Bytes: 3225
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de> writes:

> On Sat, 18 Dec 2010 13:17:51 -0600, Allan wrote:
>
> [snip]
>> I got it to build by manually editing bc\scan.l; just comment out the
>> (re)definition of the string pointer `readline'.
> [snip]
>
> That is wrong.  The bc-1.06 port ist 10 years old so that certain readline
> declarations do no longer match the declarations used in the bc headers.
> The readline function declaration in readline header is an external declaration
> and you should make match the readline declaration in the .l file with the one
> in the readline header .  Below a small patch that will make compile the
> bc port with djdev204 and rdln61.
>
> Regards,
> Juan M. Guerrero
I applied the patch to freshly unpacked sources and it worked except
that when I type `make timetest' the test program builds but does not
run for some reason. I simply type the command manually to produce the
 required header file as you can see from this output:
...(snip)
D:\djgpp\gnu\bc-1.06>make timetest
(cd lib; d:/djgpp204/bin/make.exe specialnumber)
make.exe[1]: Entering directory `d:/djgpp/gnu/bc-1.06/lib'
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h    -g -O2 -Wall -funsigned-char -c testmu
l.c
testmul.c: In function 'out_of_memory':
testmul.c:28: warning: implicit declaration of function 'exit'
testmul.c:28: warning: incompatible implicit declaration of built-in function 'e
xit'
testmul.c: In function 'main':
testmul.c:140: warning: implicit declaration of function 'strcmp'
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h    -g -O2 -Wall -funsigned-char -c number
.c
gcc -g -O2 -Wall -funsigned-char -o testmul testmul.o number.o
The following may take up to 10 minutes.
testmul > muldigits.h
C:\DOCUME~1\SAdmin\LOCALS~1\Temp/dj300000: line 1: testmul: command not found
make.exe[1]: *** [muldigits.h] Error 127
make.exe[1]: Leaving directory `d:/djgpp/gnu/bc-1.06/lib'
make.exe: *** [timetest] Error 2

D:\djgpp\gnu\bc-1.06>lib\testmul.exe > muldigits.h
(snip)...
I will save the patch for the next time I install bc with readline and
flex. 
Thanks again.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019