Building of perl-5.8.4-r1 segfaults when miniperl is called on alpha when using gcc-3.3.4-r1 and glibc-2.3.3_pre20040207. It appears that the size of sitearch and sitelib in perl.c is too small in some cases... Here is a patch: ----------------- diff -ur perl-5.8.4/perl.c perl-5.8.4.af/perl.c --- perl-5.8.4/perl.c 2004-08-03 14:53:32.000000000 +0200 +++ perl-5.8.4.af/perl.c 2004-08-03 13:53:10.000000000 +0200 @@ -4336,8 +4336,8 @@ struct stat s; /* add small buffer in case old versions are longer than the current version */ - char sitearch[sizeof(SITEARCH_EXP)+16] = SITEARCH_EXP; - char sitelib[sizeof(SITELIB_EXP)+16] = SITELIB_EXP; + char sitearch[sizeof(SITEARCH_EXP)+46] = SITEARCH_EXP; + char sitelib[sizeof(SITELIB_EXP)+46] = SITELIB_EXP; char const *vers[] = { PERL_INC_VERSION_LIST }; char const **p; Reproducible: Always Steps to Reproduce: 1. 2. 3.
This may not just be alpha-specific. Can you describe what conditions made these variables overflow on your machine?
Please, remove the bug. I discovered that I have made a backup (/usr/lib/perl5/5.8.3.tmp). That is why the ebuild crashed.
per OP's last post