#1846: bc -l segmentation faults ---------------------------------------------+------------------------------ Reporter: [EMAIL PROTECTED] | Owner: [email protected] Type: defect | Status: new Priority: normal | Milestone: 6.2 Component: BOOK | Version: a-SVN Severity: major | Keywords: ---------------------------------------------+------------------------------ 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? -- Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/1846> BLFS Trac <http://wiki.linuxfromscratch.org/blfs> Beyond Linux From Scratch -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
