Works fine on my 2.95 system w/ glibc 2.2.5-r5. Hangs on my three tested gcc3.1 systems: mine: glibc 2.2.5-r5, gcc-3.1-r7. kabau: glibc-2.2.5-r4, gcc-3.1-r7 lostlogic: glibc-2.2.5-r5, gcc-3.1-r8
I checked the forums; they recommend dropping from -O3 to -O2. Worked for me. Kabua says that on his system procmail eventually emerged, but he had to wait a few minutes at the strstr test.
Added a -O2 at the end of the CFLAGS sed statement. This is important as flags are inherited inline... the last flag past will clobber the first flag... so the -O2 is placed after the ${CFLAGS} to override the -O3 in most of the gentoo default flags. This shouldn't cause any trouble as I don't think there are any architectures that use anything less than a -O2... -Nick