The patch that was committed (Richard's fix to the multiplication routine in longlong.h) seems to make ssh and sshd work on the Shark when built with egcs. However, the t-get_d test in gmp/mpq still fails. I note that the second part of the patch (to gmp-impl.h) was not committed, but it doesn't seem like it should be relevant in this case.