gcc on SCO OpenServer 5.0.7/3.2 does not support visibility.
The attached patch fixes the build problems caused by this.
(The attached patch was written by Ryo ONODERA <ryoon@NetBSD.org> for pkgsrc.
For detailed questions about this, please ask him.)