I've just got same problem installing postgres 7.4.11 from source.
I've resolved it removing an old installation. Actually I had a postgres client (psql) of an older version. You have to be sure there is no previous installation of postgres server or clients.