Perhaps you have an old libpq-fe in your include path somewhere?

> Hello!
> As I am new to postgreSQL but not to OSF I do not understand why
> PostgreSQL
> will not be compiled successfully:
> 
> Here is the excerpt of the Make-Process:
> 
> Starting in ../postgresql-6.4.2/src/interfaces/libpq with
> the command line:
> cc  -I../../include -I../../backend   -DNOFIXADE  -DFRONTEND  -c
> fe-connect.c -o  fe-connect.o
> 
> the result is as follows:
> cc: Error: fe-connect.c, line 172: In this declaration, parameter 1 has
> a different type than specified in an earlier declaration of this
> function.
> PGconn *PQconnectdb(const char *conninfo)
> --------^
> cc: Error: fe-connect.c, line 172: In this declaration, the type of
> "PQconnectdb
> " is not compatible with the type of a previous declaration of
> "PQconnectdb" at
> line number 153 in file libpq-fe.h.
> PGconn *PQconnectdb(const char *conninfo)
> --------^
> cc: Error: fe-connect.c, line 284: In this declaration, parameter 1 has
> a different type than specified in an earlier declaration of this
> function.
> PQsetdbLogin(const char *pghost, const char *pgport, const char
> *pgoptions, const char *pgtty, const char *dbName, const char *login,
> const char *pwd)
> ^
> cc: Error: fe-connect.c, line 284: In this declaration, the type of
> "PQsetdbLogi
> n" is not compatible with the type of a previous declaration of
> "PQsetdbLogin" at line number 154 in file libpq-fe.h.
> PQsetdbLogin(const char *pghost, const char *pgport, const char
> *pgoptions, cons
> t char *pgtty, const char *dbName, const char *login, const char *pwd)
> ^
> cc: Warning: fe-connect.c, line 873: In this statement, the referenced
> type of the pointer value "defaultNoticeProcessor" is "function (pointer
> to void, pointer to signed char) returning void", which is not
> compatible with "function (pointer to void, pointer to const signed
> char) returning void".
>         conn->noticeHook = defaultNoticeProcessor;
> --------^
> 
> 
> 
> Has anybody an idea what is happening here?
> 
> --
> Mit freundlichen Gruessen / With best regards
>    Reiner
> 
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  [EMAIL PROTECTED]            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Reply via email to