I don't know how to solve this error BUT a solution that worked for me was:
- Don't forget to add -lnsdb in Makefile
- Do make file (set ACS and POSGTGRES appropriately)
- You will get those errors
- Forget about that and copy nspostgres.so ( that it has been created in that directory) in aolserver/bin
That worked for me