NB: As of Build 118, the NIS/LDAP Gateway is now build on FreeBSD 4.10. This article no longer applies.
The FreeBSD build of the NIS/LDAP Gateway is linked against version 3 of the C library (libc.so.3). On FreeBSD 4.x systems, with libc.so.4, you should install the FreeBSD 3.x compatibility libraries.
Alternatively, you can link the current version of the C library to libc.so.3, for use by the NIS/LDAP Gateway only. This is shown in the following example:
cd /opt/ypldapd/lib
ln -s /usr/lib/libc.so libc.so.3
Whilst we have anecdotal evidence to suggest that this works just fine, we do not officially support this. A future release will support the FreeBSD 4.x C library natively.