Similar bugs have popped in the past (463343, 315619) but in my case I am using gcc-4.9.1. The error that occurs during the configure step is: running gmake Makedep... error configure: error: cannot compute depends
Created attachment 385750 [details] build.log
Created attachment 385752 [details] emerge --info output
Created attachment 385754 [details] emerge -pqv output
Created attachment 385756 [details] environment
Well, given: > configure: loading site script /usr/share/config.site crossdev might be messing up stuff. Still, attach config.log.
Created attachment 385778 [details] config.log
I removed crossdev and am still getting the same problem.
configure: error: cannot compute depends
I tried checking out the latest master of sam2p (https://code.google.com/p/sam2p/source/checkout), and with master, I am able to ./configure and build successfully. The 0.49.2 release tarball gives the same error as what I was getting while trying to emerge 0.49.1 through portage, so presumably the fix is in one of the commits that have been made since the 0.49.2 release.
Created attachment 387572 [details, diff] fix build sam2p-0.49.1 against glibc-2.20 Probably this (https://code.google.com/p/sam2p/source/detail?r=db2e6469710b48a23bda8be8f4be4ca06a21877a) commit fixed build error. I haven't tried myself but soon I will.
After patching compiles fine.
*** Bug 528376 has been marked as a duplicate of this bug. ***
should be all set now in the tree; thanks for the report! Commit message: Fix by Dmitry Derevyanko for building w/glibc-2.20 http://sources.gentoo.org/media-gfx/sam2p/files/sam2p-0.49-glibc-2.20.patch?rev=1.1 http://sources.gentoo.org/media-gfx/sam2p/sam2p-0.49.1.ebuild?r1=1.10&r2=1.11 http://sources.gentoo.org/media-gfx/sam2p/sam2p-0.49.2.ebuild?r1=1.1&r2=1.2