cc -O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -fforce-addr -s -DNDEBUG -DG_DISABLE_ASSERT -Wall -Werror -g -I. -I.. -I../charset `gtk-config --cflags` -c ../ssh.c ../ssh.c: In function `alloc_channel_id': ../ssh.c:765: warning: unused variable `i' make: *** [ssh.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: net-misc/putty-20040313-r1 failed. !!! Function src_compile, Line 44, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
You should remove -DNDEBUG from your CFLAGS and then compile putty again. I'm adding patch on ebuild to filter this flag.
Created attachment 31804 [details, diff] Filter -DNDEBUG flag in ebuild
DNDEBUG simply isn't used commonly enough as a CFLAG in gentoo land for us to make a special case of filtering it.