I don't know what I was thinking about while writing this comment.
This is not about error handling but about library version handling,
of course.
Avoid writing SONAME. We don't do this in general and it makes our
life harder in Samba4 case.