The symptoms sound like you are starting with an nsd (or libnsd), which is from an very old version of naviserver or aolserver.
Are you usre, you are starting the server with the binary /usr/local/ns/bin/nsd?
/usr/local/ns/bin/nsd
What is the output of ldd /usr/local/ns/bin/nsd ?
ldd /usr/local/ns/bin/nsd