The error messages are Postgres related. You need to have a special postgres include file (postgres-dev files) to make it compile or disable postpres support somehow. I'm using debian and the the concering include file resided in a subdirectory of what asterisk was told. Jens