summary says it all
I was getting this error I think because dietlibc was installed and the diet use flag was set /bin/ln libss.a ../libss.a (cd elfshared; diet cc -nostdinc --shared -o libss.so.2.0 -Wl,-soname,libss.so.2 \ ss_err.o std_rqs.o invocation.o help.o execute_cmd.o listen.o parse.o error.o prompt.o request_tbl.o list_rqs.o pager.o requests.o data.o get_readline.o -L../.. -lcom_err ) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `__you_tried_to_link_a_dietlibc_object_against_glibc' are not defined /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `ftrylockfile' are not defined /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `__thread_doexit' are not defined /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `funlockfile' are not defined /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `flockfile' are not defined /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `__nop' are not defined /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: ss_err.o(.note+0x10): unresolvable relocation against symbol `__you_tried_to_link_a_dietlibc_object_against_glibc' collect2: ld returned 1 exit status make[2]: *** [libss.so.2.0] Error 1 make[2]: Leaving directory `/var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35/lib/ss' make[1]: *** [all-libs-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/e2fsprogs-1.35-r1/work/e2fsprogs-1.35' make: *** [all] Error 2 !!! ERROR: sys-fs/e2fsprogs-1.35-r1 failed. !!! Function src_compile, Line 63, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. I got around the problem by just setting sys-fs/e2fsprogs -diet within /etc/portage/package.use
stabled a while ago