I had to add -fPIC to the CFLAGS for pjsip in order for asterisk-12 to compile. (It makes sense; pjsip is only compiled as a static lib, but asterisk links it into a loadable module.)
Please attach the full build.log.
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.