Howdy,

I'm trying to build Postgres 6.4.2 on AIX 4.3.2 using IBM C/C++
Compilers, v3.6.4.  I'm using the aix_42 template to which I've added
the compiler flag -qlanglvl=extended.   Currently, the build is failing
with:

gmake[2]: Entering directory
`/postgres/postgresql-6.4.2/src/interfaces/libpq'
  .
  .
  .

xlc -I../../include -I../../backend   -qchars=signed -qmaxmem=8192
-qhalt=w -qsrcmsg -qcheck=divzero -qlonglong -qlanglv=extended 
-DFRONTEND   -c fe-exec.c -o fe-exec.o
       35 |  char * pgresStatus[] = {
            ......a..................
a - 1506-343 (S) Redeclaration of pgresStatus differs from previous
declaration on line 53 of "libpq-fe.h".
a - 1506-382 (I) The type "signed char*[]" of identifier pgresStatus
differs from previous type "const signed char* const[]".
     1402 | PQresultErrorMessage(PGresult *res)
            a..................................
a - 1506-343 (S) Redeclaration of PQresultErrorMessage differs from
previous declaration on line 233 of "libpq-fe.h".
a - 1506-050 (I) Return type "signed char*" in redeclaration is not
compatible with the previous return type "const signed char*".
     1581 | PQoidStatus(PGresult *res)
            a.........................
a - 1506-343 (S) Redeclaration of PQoidStatus differs from previous
declaration on line 243 of "libpq-fe.h".
a - 1506-050 (I) Return type "signed char*" in redeclaration is not
compatible with the previous return type "const signed char*".
     1630 | PQcmdTuples(PGresult *res)
            a.........................
a - 1506-343 (S) Redeclaration of PQcmdTuples differs from previous
declaration on line 244 of "libpq-fe.h".
a - 1506-050 (I) Return type "signed char*" in redeclaration is not
compatible with the previous return type "const signed char*".


I've looked at the declarations for these variables and don't see what
the compiler is complaining about - ie pgsql-fe.h has 
  extern const char *const pgresStatus[];
  fe-exec.c has
  const char *const pgresStatus[] = {
        "PGRES_EMPTY_QUERY",
        "PGRES_COMMAND_OK",
        "PGRES_TUPLES_OK",
        "PGRES_COPY_OUT",
        "PGRES_COPY_IN",
        "PGRES_BAD_RESPONSE",
        "PGRES_NONFATAL_ERROR",
        "PGRES_FATAL_ERROR"
};


Thanks much for any input,
-Damian

Reply via email to