I fixed this a different way which works on illumos, are any of your patches still required after that?
I haven't actually tried your changes, but I think you missed the one regarding alloca.h. Maybe that one is not necessary any more on Illumos?
-- Jörn Clausen joern.clausen%uni-bielefeld.de@localhost Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/ Universität Bielefeld