The following two articles should help you get your Solaris machine prepared to build MariaDB (just ignore the parts about installing buildbot):
- The BUILD dir contains various scripts for compiling MariaDB on Solaris. The
BUILD/compile-solaris-amd64-debugare probably the most useful.
- The scripts do not play nice with non-bash shells such as the Korn Shell (ksh). So if your /bin/sh is pointing at ksh or ksh93, you'll want to change it so that it points at bash.