X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Sat, 18 Dec 2010 13:17:51 -0600 From: Allan Newsgroups: comp.os.msdos.djgpp Subject: error compiling bc 1.06 with readline 6.1 and flex 2.54 Date: Sat, 18 Dec 2010 13:18:07 -0600 Message-ID: <81sjxudh5c.fsf@earthlink.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (windows-nt) X-No-Archive: Yes Cancel-Lock: sha1:sCUoKe96oiNVDQR8u3UhO4PnTaw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 40 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.226.105.248 X-Trace: sv3-3lithnF2zJjmW+ealRLUOCMQYVXHAD82LKcQ/+sA7mqQx/THSs3Q1wHwjj25XlnHAoXAn3fS8BH0hGJ!EaRar1RLFCJ8rd3h9ErLcF7Lo0Mg0Oj5OHar4p29vCo5zAK4JU6WIODqpl0Ywoc73/V3RMqV3Xh3!vHvKiQje 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: 3053 X-Original-Bytes: 2992 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I installed the new update to readline and decided to reinstall gmp 5.01 and bc 1.06. With both I specified "--with-readline" when configuring the sources. The installation of gmp went fine but when I tried to install bc I encountered a problem compiling. I set the environent variables LEX to `/dev/env/DJDIR/bin/flex.exe' and LEXLIB to `-lfl'. When I ran the configure script it finds libreadline. Then I run `make timetest' to set the special system-optimized number and wait ten minutes for it to finish. But when I ran `make' to build the package I received this error: ...(snip) Making all in bc make.exe[2]: Entering directory `d:/djgpp/gnu/bc-1.06/bc' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -O2 -Wall -funsigned-char -c ma in.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -O2 -Wall -funsigned-char -c bc .c flex -I8 scan.l && mv lex.yy.c scan.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -O2 -Wall -funsigned-char -c sc an.c scan.l:146: error: conflicting types for 'readline' d:/djgpp204/include/readline/readline.h:284: note: previous declaration of 'read line' was here scan.l: In function 'yylex': scan.l:319: warning: pointer targets in assignment differ in signedness scan.l:335: warning: pointer targets in assignment differ in signedness scan.l:336: warning: pointer targets in assignment differ in signedness make.exe[2]: *** [scan.o] Error 1 make.exe[2]: Leaving directory `d:/djgpp/gnu/bc-1.06/bc' make.exe[1]: *** [all-recursive] Error 1 make.exe[1]: Leaving directory `d:/djgpp/gnu/bc-1.06' make.exe: *** [all-recursive-am] Error 2 (snip)... I got it to build by manually editing bc\scan.l; just comment out the (re)definition of the string pointer `readline'. I hope that the program works properly after making this change. I know that the official port of bc does not use readline and neither does the gmp port. Thanks for the new port of readline. -- Allan