I have gcc: $gcc --version gcc (GCC) 4.1.1 (Gentoo 4.1.1) During emerge I got messages that: "you should not use varargs.h, that \" missed and so on", there are patch in /usr/portage/media-gfx/transfig/files/transfig-3.2.4-gcc-3.3.patch which fix this, but for unknown for me reasons it applied only if I have gcc 3.3, I remove this check: if [ "$(gcc-major-version)" -eq "3" -a "$(gcc-minor-version)" -ge "3" ] then epatch ${FILESDIR}/${P}-gcc-3.3.patch fi and all works fine
This is known, -r2 works with GCC 4.1, see bug #140903
*** This bug has been marked as a duplicate of 140903 ***