possible theory: is one or more of the tools linked against a base system libelf, such that if pkgsrc's libelf is installed it ends up using that at runtime instead? If so, that could certainly explain it not working.
Oh, that's definitely the case. I did a complete build under "truss -f" and the libelf from pkgsrc was used instead of the native one. That gave me the idea to check what happens if I remove devel/libelf. As I use native ld/as and not devel/binutils, I don't really need/want pkgsrc's libelf.
But I don't understand why this a) does not fail on Solaris/i86 and b) fails only with this test. I have built hundreds of other packages after devel/libelf were installed, and of course that version of libelf was used there as well.
-- Jörn Clausen joern.clausen%uni-bielefeld.de@localhost Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/ Universität Bielefeld