delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/12/25/14:45:22

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Sat, 25 Dec 2010 13:21:51 -0600
From: "Allan" <mu8ja0i AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <201012222217 DOT 54054 DOT juan DOT guerrero AT gmx DOT de>
Subject: Re: error compiling bc 1.06 with readline 6.1 and flex 2.54
Date: Sat, 25 Dec 2010 13:22:08 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
Message-ID: <3LmdnXF6gvrS2YvQnZ2dnUVZ_s2dnZ2d@earthlink.com>
Lines: 89
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 4.226.105.126
X-Trace: sv3-opi4REejYScru6vMMFL8yPu3JlQjI1v/LbkH7Ky3g+TgMKN133OrnGXvihNc4N92jX1zfubpYrRrLNe!8mb9hR3JLAUDm6YL2i3rXCaURZMgZ8nd2M1XzMSgkb2AznfGkQO6dtkhc2kc3BybhSq4nON19P/H!bpayNxTMP7sS9skQzY/Kdo0J/BZ+dwYj
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: 4544
X-Original-Bytes: 4483
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> wrote in message 
news:201012222217 DOT 54054 DOT juan DOT guerrero AT gmx DOT de...
> On  Wed, 22 Dec 2010 01:12:43 -0600, Allan wrote:
> [snip]
>> 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]
>
> The compiler warnings indicate that there are again missing headers.
>
> [snip]
>> 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]
>
> Here testmul is not found because the cwd is not in the search path.  I 
> have
> changed the Makefile line from "testmul > muldigits.h" to
> "./testmul > muldigits.h" and then the test passes flawlessly.  I took 
> around
> 10 minutes on my virtual machine with WinXP.
>
>
> Last but not least pay attention when you configure the sources.
> As all sources that I distribute, they are configure for DJGPP 2.03
> but you are using DJGPP 2.04.  Please remove the config.cache file in
> the top srcdir before you configure the sources or the produced config.h
> and Makefiles may be wrong.
>
>
> The patch below will fix all issues.
Thanks for the patch for the makefile. In the meanwhile I worked around the 
error by typing:
cd lib
testmul.exe > muldigits.h
make specialnumber
cd ..
(make all).
In the previous post I was creating the header muldigits.h in the top level 
directory, not in `/lib'.
I know about always deleting 'djgpp\config.cache' before reconfiguring with 
djgpp\config.bat.
Here is what the output looked like:
...(snip)
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    -O2 -Wall -funsigned-char -c 
number.c
gcc -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>cd lib

D:\djgpp\gnu\bc-1.06\lib>testmul.exe > muldigits.h

D:\djgpp\gnu\bc-1.06\lib>make specialnumber
gcc -O2 -Wall -funsigned-char -I. -I.. -I./../h -c -DMULDIGITS -o 
newnumber.o ./
number.c
cp newnumber.o number.o

D:\djgpp\gnu\bc-1.06\lib>cd ..
(snip)...
But anyway now I will not need to type these commands any more. By the way I 
also
 compiled `sbc.exe' and installed it manually. 

- Raw text -


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