﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1846	bc -l segmentation faults	dnicholson@…	dnicholson@…	"Bc segfaults when invoked with the standard math library (-l).  See this thread for discussion:

http://linuxfromscratch.org/pipermail/blfs-support/2006-March/058971.html

The fix already exists in our repo:

http://www.linuxfromscratch.org/patches/downloads/bc/bc-1.06-fixes-1.patch

Oddly, this patch is from a while back, and I have a working bc on a gcc-3.4 system without this patch.  I think the fix should go into the book.

However, that would put bc at 3 patches with a total of 4 lines changed.  The same thing can be accomplished with these 4 sed's (I like sed's and don't like patches):

{{{
sed -i '/PROTO.*readline/d' bc/scan.l
sed -i '/flex -I8/s/8//' configure
sed -i '/stdlib/a #include <string.h>' lib/number.c
sed -i 's/^  program_counter/static &/' bc/load.c
}}}

Any thoughts?"	defect	closed	normal	6.2.0	BOOK	SVN	high	fixed		
