On Fri, 2005-06-24 at 18:51 -0400, Robert Connolly wrote:
> Hi. Perl has an open bug for version 5.8.7 with propolice:
>
> http://[EMAIL PROTECTED]/rt3/index.html?q=36309
> http://www.mail-archive.com/perl5-porters%40perl.org/msg88161.html
>
> "When building perl 5.8.7 with the -fstack-protector patches for GCC,
> miniperl fails to build DynaLoader and segfaults. This didn't happen
> with 5.8.6."
>
> There is no fix yet. I think we should use
> CFLAGS="$CFLAGS -fno-stack-protector" for now rather than downgrading to
> 5.8.6.
Robert,
When I encountered this bug I traced it down to a recursive
regexp call. To temporarily work around without having to disable ssp
on the entire package I whipped up the following attached patch which
only disables it where needed.
Hope it helps.
--
Ned Ludd <[EMAIL PROTECTED]>
--- cflags.SH.orig 2005-07-03 23:39:10.000000000 -0400
+++ cflags.SH 2005-07-03 23:39:47.000000000 -0400
@@ -165,6 +165,8 @@
esac
: Can we perhaps use $ansi2knr here
+ [[ $file == regcomp ]] && export ccflags="${ccflags} -fno-stack-protector"
+ [[ $file == regexec ]] && export ccflags="${ccflags} -fno-stack-protector"
echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page