If you’re building gSoap on Solaris 10 (or below) you might run across this “Broken Pipe” issue with GNU bison:

make[4]: Entering directory `/home/d287582/gsoap-2.7/gsoap/src'
bison -y  -d -v `test -f 'soapcpp2_yacc.y' || echo './'`soapcpp2_yacc.y
make[4]: *** [soapcpp2_yacc.c] Broken Pipe
make[4]: Leaving directory `/home/d287582/gsoap-2.7/gsoap/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/d287582/gsoap-2.7/gsoap'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/d287582/gsoap-2.7/gsoap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/d287582/gsoap-2.7'
make: *** [all] Error 2

The trick is to install GNU m4 from sunfreeware.com. It’s not obvious, but basically bison uses m4.

Posting this here because I’ve hit this 3 times now and each time I had to redo my troubleshoot from scratch as I’d forgotten what I’d done 3 months before.