On Fri, Mar 05, 1999 at 04:10:58PM +0100, Reiner Dassing wrote:
> 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)
> --------^

[... more similar errors ...]

You should go to the directory in which the error happens
(../postgresql-6.4.2/src/interfaces/libpq) and invoke ``cc'' as make
does it, with the -E option:

    % cc -E -I../../include -I../../backend   -DNOFIXADE  -DFRONTEND \
    fe-connect.c > blah.txt

Then, check what the different definitions / declarations of PQconnectdb
and the others about which the compiler complains look like.

If you have an older version of PostgreSQL installed, it might be that
the header from that old version is included rather than the one belonging
6.4.2; this will become evident from the preprocessor output.

I managed to get 6.4.2 compiled on OSF/1 4.0, but it didn't work properly
(unable to destroydb problem, mentioned by C. Chan in a recent message)

Greetinx, Jan
-- 
 +- Jan T. Kim -------------------------------------------------------+
 |             email: [EMAIL PROTECTED]                           |
 |             WWW:   http://www.mpiz-koeln.mpg.de/~kim/              |
 *-----=<  hierarchical systems are for files, not for humans  >=-----*

Reply via email to