make[4]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/backend/parser'
cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
c -o pg_dump.o pg_dump.c
     2681 |                                          "COMMENT", deps,
            ....................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
     2777 |                                                  "COMMENT",
deps,

............................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
     2795 |                                                  "COMMENT",
deps,

............................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
     3121 |                                  tinfo->usename, "TYPE", deps,
            .........................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
     3226 |                                  tinfo->usename, "DOMAIN", deps,
            ...........................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
     3515 |                                          "PROCEDURAL LANGUAGE",
deps,

................................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
     3882 |                                          "CAST", deps,
            .................................................a....
a - 1506-280 (W) Function argument assignment between types "const unsigned
char*(*)[]" and "unsigned char*(*)[]" is not allowed.
cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
c -o common.o common.c
cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
c -o pg_backup_archiver.o pg_backup_archiver.c
      590 | ArchiveEntry(Archive *AHX,  char *oid,  char *tag,
            a.................................................
a - 1506-343 (S) Redeclaration of ArchiveEntry differs from previous
declaration on line 135 of "pg_backup.h".
a - 1506-377 (I) The type "unsigned char*(*)[]" of parameter 7 differs from
the previous type "const unsigned char*(*)[]".
make[3]: *** [pg_backup_archiver.o] Error 1
make[3]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin/pg_dump'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/emrxdbs/postgresql-7.3.2/src'
make: *** [all] Error 2
lex:emrx[/emrxdbs/postgresql-7.3.2]  lslpp -l bos.adt.libm
  Fileset                      Level  State      Description
  --------------------------------------------------------------------------
--
Path: /usr/lib/objrepos
  bos.adt.libm              4.3.3.50  COMMITTED  Base Application
Development
                                                 Math Library


Mon, 31 Mar 2003 10:10:21 -0600
"John Liu" <johnl@emrx.com>
7.3.2 make failed on AIX4.3 using native c compiler

I know we have other AIX users using PostgreSQL. What compiler version
is that?

---------------------------------------------------------------------------

John Liu wrote:
> make[4]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/backend/parser'
> cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
> ../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> c -o pg_dump.o pg_dump.c
>      2681 |                                          "COMMENT", deps,
>             ....................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>      2777 |                                                  "COMMENT",
> deps,
> 
> ............................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>      2795 |                                                  "COMMENT",
> deps,
> 
> ............................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>      3121 |                                  tinfo->usename, "TYPE", deps,
>             .........................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>      3226 |                                  tinfo->usename, "DOMAIN", deps,
>             ...........................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>      3515 |                                          "PROCEDURAL LANGUAGE",
> deps,
> 
> ................................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>      3882 |                                          "CAST", deps,
>             .................................................a....
> a - 1506-280 (W) Function argument assignment between types "const unsigned
> char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
> ../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> c -o common.o common.c
> cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
> ../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> c -o pg_backup_archiver.o pg_backup_archiver.c
>       590 | ArchiveEntry(Archive *AHX,  char *oid,  char *tag,
>             a.................................................
> a - 1506-343 (S) Redeclaration of ArchiveEntry differs from previous
> declaration on line 135 of "pg_backup.h".
> a - 1506-377 (I) The type "unsigned char*(*)[]" of parameter 7 differs from
> the previous type "const unsigned char*(*)[]".
> make[3]: *** [pg_backup_archiver.o] Error 1
> make[3]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin/pg_dump'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/emrxdbs/postgresql-7.3.2/src'
> make: *** [all] Error 2
> lex:emrx[/emrxdbs/postgresql-7.3.2]  lslpp -l bos.adt.libm
>   Fileset                      Level  State      Description
>   --------------------------------------------------------------------------
> --
> Path: /usr/lib/objrepos
>   bos.adt.libm              4.3.3.50  COMMITTED  Base Application
> Development
>                                                  Math Library
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


Mon, 31 Mar 2003 12:15:25 -0500 (EST)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: 7.3.2 make failed on AIX4.3 using native c compiler
Hi, Bruce,
I've tried on two AIX4.3.3 boxes,
both are the same oslevel=4330-09,
both are the same compiler version,

lslpp -l|grep -i xlc
  xlC.aix43.rte              4.0.2.1  COMMITTED  C Set ++ Runtime for AIX
4.3
  xlC.cpp                    4.3.0.1  COMMITTED  C for AIX Preprocessor
  xlC.msg.en_US.cpp          4.3.0.1  COMMITTED  C for AIX Preprocessor
  xlC.msg.en_US.rte          4.0.2.0  COMMITTED  C Set ++ Runtime
  xlC.rte                    4.0.2.0  COMMITTED  C Set ++ Runtime

one make works, the other one failed. I'm trying
to figure out what makes the differences.

johnl
> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> Sent: Monday, March 31, 2003 11:15 AM
> To: John Liu
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] 7.3.2 make failed on AIX4.3 using native c
> compiler
>
>
>
> I know we have other AIX users using PostgreSQL. What compiler version
> is that?
>
> ------------------------------------------------------------------
> ---------
>
> John Liu wrote:
> > make[4]: Leaving directory
> `/emrxdbs/postgresql-7.3.2/src/backend/parser'
> > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> -I../../../src/interfaces/libpq -I
> > ../../../src/include -I/usr/local/include
> -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > c -o pg_dump.o pg_dump.c
> >      2681 |                                          "COMMENT", deps,
> >             ....................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> >      2777 |                                                  "COMMENT",
> > deps,
> >
> > ............................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> >      2795 |                                                  "COMMENT",
> > deps,
> >
> > ............................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> >      3121 |                                  tinfo->usename,
> "TYPE", deps,
> >
> .........................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> >      3226 |                                  tinfo->usename,
> "DOMAIN", deps,
> >
> ...........................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> >      3515 |
> "PROCEDURAL LANGUAGE",
> > deps,
> >
> > ................................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> >      3882 |                                          "CAST", deps,
> >             .................................................a....
> > a - 1506-280 (W) Function argument assignment between types
> "const unsigned
> > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> -I../../../src/interfaces/libpq -I
> > ../../../src/include -I/usr/local/include
> -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > c -o common.o common.c
> > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> -I../../../src/interfaces/libpq -I
> > ../../../src/include -I/usr/local/include
> -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > c -o pg_backup_archiver.o pg_backup_archiver.c
> >       590 | ArchiveEntry(Archive *AHX,  char *oid,  char *tag,
> >             a.................................................
> > a - 1506-343 (S) Redeclaration of ArchiveEntry differs from previous
> > declaration on line 135 of "pg_backup.h".
> > a - 1506-377 (I) The type "unsigned char*(*)[]" of parameter 7
> differs from
> > the previous type "const unsigned char*(*)[]".
> > make[3]: *** [pg_backup_archiver.o] Error 1
> > make[3]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin/pg_dump'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/emrxdbs/postgresql-7.3.2/src'
> > make: *** [all] Error 2
> > lex:emrx[/emrxdbs/postgresql-7.3.2]  lslpp -l bos.adt.libm
> >   Fileset                      Level  State      Description
> >
> --------------------------------------------------------------------------
> > --
> > Path: /usr/lib/objrepos
> >   bos.adt.libm              4.3.3.50  COMMITTED  Base Application
> > Development
> >                                                  Math Library
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> >
>
> --
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square,
> Pennsylvania 19073


Mon, 31 Mar 2003 11:24:24 -0600
"John Liu" <johnl@emrx.com>
Re: 7.3.2 make failed on AIX4.3 using native c compiler
I config and make the 7.3.2 on
the one works, then try to install
on the other one which was failed, after
the install, try to start postmaster -
tail -f postmaster.log
exec(): 0509-036 Cannot load program /emrxdbs/pgsql/bin/postmaster because
of the following errors:
        Dependent module /usr/local/lib/libz.a(shr.o) could not be loaded.
        Member shr.o is not found in archive

But the failed one, libz.a is older
working one -
ls -all /usr/local/lib/libz.a
-rw-r--r--   1 root     system     77308 Mar 20 2000  /usr/local/lib/libz.a

failed one -
ls -all /usr/local/lib/libz.a
-rwxr-xr-x   1 root     system     83699 Feb 19 2001  /usr/local/lib/libz.a

johnl

> -----Original Message-----
> From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org]On Behalf Of John Liu
> Sent: Monday, March 31, 2003 11:24 AM
> To: Bruce Momjian
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] 7.3.2 make failed on AIX4.3 using native c
> compiler
>
>
> Hi, Bruce,
> I've tried on two AIX4.3.3 boxes,
> both are the same oslevel=4330-09,
> both are the same compiler version,
>
> lslpp -l|grep -i xlc
>   xlC.aix43.rte              4.0.2.1  COMMITTED  C Set ++ Runtime for AIX
> 4.3
>   xlC.cpp                    4.3.0.1  COMMITTED  C for AIX Preprocessor
>   xlC.msg.en_US.cpp          4.3.0.1  COMMITTED  C for AIX Preprocessor
>   xlC.msg.en_US.rte          4.0.2.0  COMMITTED  C Set ++ Runtime
>   xlC.rte                    4.0.2.0  COMMITTED  C Set ++ Runtime
>
> one make works, the other one failed. I'm trying
> to figure out what makes the differences.
>
> johnl
> > -----Original Message-----
> > From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> > Sent: Monday, March 31, 2003 11:15 AM
> > To: John Liu
> > Cc: pgsql-hackers@postgresql.org
> > Subject: Re: [HACKERS] 7.3.2 make failed on AIX4.3 using native c
> > compiler
> >
> >
> >
> > I know we have other AIX users using PostgreSQL. What compiler version
> > is that?
> >
> > ------------------------------------------------------------------
> > ---------
> >
> > John Liu wrote:
> > > make[4]: Leaving directory
> > `/emrxdbs/postgresql-7.3.2/src/backend/parser'
> > > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> > -I../../../src/interfaces/libpq -I
> > > ../../../src/include -I/usr/local/include
> > -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > > c -o pg_dump.o pg_dump.c
> > >      2681 |                                          "COMMENT", deps,
> > >             ....................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > >      2777 |
> "COMMENT",
> > > deps,
> > >
> > > ............................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > >      2795 |
> "COMMENT",
> > > deps,
> > >
> > > ............................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > >      3121 |                                  tinfo->usename,
> > "TYPE", deps,
> > >
> > .........................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > >      3226 |                                  tinfo->usename,
> > "DOMAIN", deps,
> > >
> > ...........................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > >      3515 |
> > "PROCEDURAL LANGUAGE",
> > > deps,
> > >
> > > ................................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > >      3882 |                                          "CAST", deps,
> > >             .................................................a....
> > > a - 1506-280 (W) Function argument assignment between types
> > "const unsigned
> > > char*(*)[]" and "unsigned char*(*)[]" is not allowed.
> > > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> > -I../../../src/interfaces/libpq -I
> > > ../../../src/include -I/usr/local/include
> > -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > > c -o common.o common.c
> > > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> > -I../../../src/interfaces/libpq -I
> > > ../../../src/include -I/usr/local/include
> > -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > > c -o pg_backup_archiver.o pg_backup_archiver.c
> > >       590 | ArchiveEntry(Archive *AHX,  char *oid,  char *tag,
> > >             a.................................................
> > > a - 1506-343 (S) Redeclaration of ArchiveEntry differs from previous
> > > declaration on line 135 of "pg_backup.h".
> > > a - 1506-377 (I) The type "unsigned char*(*)[]" of parameter 7
> > differs from
> > > the previous type "const unsigned char*(*)[]".
> > > make[3]: *** [pg_backup_archiver.o] Error 1
> > > make[3]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin/pg_dump'
> > > make[2]: *** [all] Error 2
> > > make[2]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin'
> > > make[1]: *** [all] Error 2
> > > make[1]: Leaving directory `/emrxdbs/postgresql-7.3.2/src'
> > > make: *** [all] Error 2
> > > lex:emrx[/emrxdbs/postgresql-7.3.2]  lslpp -l bos.adt.libm
> > >   Fileset                      Level  State      Description
> > >
> >
> --------------------------------------------------------------------------
> > > --
> > > Path: /usr/lib/objrepos
> > >   bos.adt.libm              4.3.3.50  COMMITTED  Base Application
> > > Development
> > >                                                  Math Library
> > >
> > >
> > > ---------------------------(end of
> broadcast)---------------------------
> > > TIP 1: subscribe and unsubscribe commands go to
> majordomo@postgresql.org
> > >
> >
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman@candle.pha.pa.us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square,
> > Pennsylvania 19073
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html


Mon, 31 Mar 2003 11:47:36 -0600
"John Liu" <johnl@emrx.com>
Re: 7.3.2 make failed on AIX4.3 using native c compiler
Hi John,

Marco Pratesi <marco@fitcom.it> wrote a step-by-step guide for compiling 
PostgreSQL on AIX a while ago:

http://techdocs.postgresql.org/guides/CompilingForAIX

Hope that helps.

:-)

Regards and best wishes,

Justin Clift


John Liu wrote:
> I config and make the 7.3.2 on
> the one works, then try to install
> on the other one which was failed, after
> the install, try to start postmaster -
> tail -f postmaster.log
> exec(): 0509-036 Cannot load program /emrxdbs/pgsql/bin/postmaster because
> of the following errors:
>         Dependent module /usr/local/lib/libz.a(shr.o) could not be loaded.
>         Member shr.o is not found in archive
> 
> But the failed one, libz.a is older
> working one -
> ls -all /usr/local/lib/libz.a
> -rw-r--r--   1 root     system     77308 Mar 20 2000  /usr/local/lib/libz.a
> 
> failed one -
> ls -all /usr/local/lib/libz.a
> -rwxr-xr-x   1 root     system     83699 Feb 19 2001  /usr/local/lib/libz.a
> 
> johnl
> 
> 
>>-----Original Message-----
>>From: pgsql-hackers-owner@postgresql.org
>>[mailto:pgsql-hackers-owner@postgresql.org]On Behalf Of John Liu
>>Sent: Monday, March 31, 2003 11:24 AM
>>To: Bruce Momjian
>>Cc: pgsql-hackers@postgresql.org
>>Subject: Re: [HACKERS] 7.3.2 make failed on AIX4.3 using native c
>>compiler
>>
>>
>>Hi, Bruce,
>>I've tried on two AIX4.3.3 boxes,
>>both are the same oslevel=4330-09,
>>both are the same compiler version,
>>
>>lslpp -l|grep -i xlc
>>  xlC.aix43.rte              4.0.2.1  COMMITTED  C Set ++ Runtime for AIX
>>4.3
>>  xlC.cpp                    4.3.0.1  COMMITTED  C for AIX Preprocessor
>>  xlC.msg.en_US.cpp          4.3.0.1  COMMITTED  C for AIX Preprocessor
>>  xlC.msg.en_US.rte          4.0.2.0  COMMITTED  C Set ++ Runtime
>>  xlC.rte                    4.0.2.0  COMMITTED  C Set ++ Runtime
>>
>>one make works, the other one failed. I'm trying
>>to figure out what makes the differences.
>>
>>johnl
>>
>>>-----Original Message-----
>>>From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
>>>Sent: Monday, March 31, 2003 11:15 AM
>>>To: John Liu
>>>Cc: pgsql-hackers@postgresql.org
>>>Subject: Re: [HACKERS] 7.3.2 make failed on AIX4.3 using native c
>>>compiler
>>>
>>>
>>>
>>>I know we have other AIX users using PostgreSQL. What compiler version
>>>is that?
>>>
>>>------------------------------------------------------------------
>>>---------
>>>
>>>John Liu wrote:
>>>
>>>>make[4]: Leaving directory
>>>
>>>`/emrxdbs/postgresql-7.3.2/src/backend/parser'
>>>
>>>>cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
>>>
>>>-I../../../src/interfaces/libpq -I
>>>
>>>>../../../src/include -I/usr/local/include
>>>
>>>-DBINDIR=\"/emrxdbs/pgsql/bin\"  -
>>>
>>>>c -o pg_dump.o pg_dump.c
>>>>     2681 |                                          "COMMENT", deps,
>>>>            ....................................................a....
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>     2777 |
>>>
>>"COMMENT",
>>
>>>>deps,
>>>>
>>>>............................................................a....
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>     2795 |
>>>
>>"COMMENT",
>>
>>>>deps,
>>>>
>>>>............................................................a....
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>     3121 |                                  tinfo->usename,
>>>
>>>"TYPE", deps,
>>>
>>>.........................................................a....
>>>
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>     3226 |                                  tinfo->usename,
>>>
>>>"DOMAIN", deps,
>>>
>>>...........................................................a....
>>>
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>     3515 |
>>>
>>>"PROCEDURAL LANGUAGE",
>>>
>>>>deps,
>>>>
>>>>................................................................a....
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>     3882 |                                          "CAST", deps,
>>>>            .................................................a....
>>>>a - 1506-280 (W) Function argument assignment between types
>>>
>>>"const unsigned
>>>
>>>>char*(*)[]" and "unsigned char*(*)[]" is not allowed.
>>>>cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
>>>
>>>-I../../../src/interfaces/libpq -I
>>>
>>>>../../../src/include -I/usr/local/include
>>>
>>>-DBINDIR=\"/emrxdbs/pgsql/bin\"  -
>>>
>>>>c -o common.o common.c
>>>>cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
>>>
>>>-I../../../src/interfaces/libpq -I
>>>
>>>>../../../src/include -I/usr/local/include
>>>
>>>-DBINDIR=\"/emrxdbs/pgsql/bin\"  -
>>>
>>>>c -o pg_backup_archiver.o pg_backup_archiver.c
>>>>      590 | ArchiveEntry(Archive *AHX,  char *oid,  char *tag,
>>>>            a.................................................
>>>>a - 1506-343 (S) Redeclaration of ArchiveEntry differs from previous
>>>>declaration on line 135 of "pg_backup.h".
>>>>a - 1506-377 (I) The type "unsigned char*(*)[]" of parameter 7
>>>
>>>differs from
>>>
>>>>the previous type "const unsigned char*(*)[]".
>>>>make[3]: *** [pg_backup_archiver.o] Error 1
>>>>make[3]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin/pg_dump'
>>>>make[2]: *** [all] Error 2
>>>>make[2]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/bin'
>>>>make[1]: *** [all] Error 2
>>>>make[1]: Leaving directory `/emrxdbs/postgresql-7.3.2/src'
>>>>make: *** [all] Error 2
>>>>lex:emrx[/emrxdbs/postgresql-7.3.2]  lslpp -l bos.adt.libm
>>>>  Fileset                      Level  State      Description
>>>>
>>>
>>--------------------------------------------------------------------------
>>
>>>>--
>>>>Path: /usr/lib/objrepos
>>>>  bos.adt.libm              4.3.3.50  COMMITTED  Base Application
>>>>Development
>>>>                                                 Math Library
>>>>
>>>>
>>>>---------------------------(end of
>>>
>>broadcast)---------------------------
>>
>>>>TIP 1: subscribe and unsubscribe commands go to
>>>
>>majordomo@postgresql.org
>>
>>>--
>>>  Bruce Momjian                        |  http://candle.pha.pa.us
>>>  pgman@candle.pha.pa.us               |  (610) 359-1001
>>>  +  If your life is a hard drive,     |  13 Roberts Road
>>>  +  Christ can be your backup.        |  Newtown Square,
>>>Pennsylvania 19073
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 5: Have you checked our extensive FAQ?
>>
>>http://www.postgresql.org/docs/faqs/FAQ.html
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
> 


Tue, 01 Apr 2003 18:50:42 +0800
Justin Clift <justin@postgresql.org>
Re: 7.3.2 make failed on AIX4.3 using native c compiler
John Liu writes:

> make[4]: Leaving directory `/emrxdbs/postgresql-7.3.2/src/backend/parser'
> cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -I../../../src/interfaces/libpq -I
> ../../../src/include -I/usr/local/include -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> c -o pg_dump.o pg_dump.c
>      2681 |                                          "COMMENT", deps,
>             ....................................................a....

This looks pretty bogus.  The code in around line 2681 is

    ArchiveEntry(fout, oid, target, namespace, owner,
                 "COMMENT", deps,
                 query->data, "", NULL, NULL, NULL);

deps is declared in the signature of the surrounding function:

static void
dumpComment(Archive *fout, const char *target,
            const char *namespace, const char *owner,
            const char *oid, const char *classname, int subid,
            const char *((*deps)[]))

The declaration of ArchiveEntry() is:

extern void ArchiveEntry(Archive *AHX, const char *oid, const char *tag,
             const char *namespace, const char *owner,
             const char *desc, const char *((*deps)[]),
             const char *defn, const char *dropStmt,
             const char *copyStmt,
             DataDumperPtr dumpFn, void *dumpArg);

deps has exactly the same type in both.

I wonder whether the const gets lost somewhere, perhaps due to something
that configure does.

-- 
Peter Eisentraut   peter_e@gmx.net


Tue, 1 Apr 2003 23:40:46 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Re: 7.3.2 make failed on AIX4.3 using native c compiler
Thanks for the replies of Tom, Bruce, Justin, and Peter
regarding my posts and personal emails.

Just wants to provide some updates -

Summary of issues:
1. I was asked to tune a production database on client's AIX4.3.3 -
it's Postgresql 7.3.1, I can vacuum full,
but can't do analyze (hanging); it looks like I can run make
but make check hangs (I failed to provide Tom's requests about the trace
since
I can't do too much on client's machine);
2. I can't reproduce on my local AIX4.3.3 ( I checked instfix -i|grep ML
on both machine, the oslevel the same, patch levels are similar);
3. I can't make 7.3.2 on one of my local AIX 4.3.3 (errors posted) until
we added some oslevel-10/11 patches update; on the other hand I can make
7.3.2 very clean on another local AIX 4.3.3 with oslevel-9 (another puzzle
to me?)
4. I tried to make one locally and then
try to install on the client's AIX, here're some lesson learned -

1) first time - after install, can't start postmaster because of
Dependent module /usr/local/lib/libz.a(shr.o) could not be loaded.
        Member shr.o is not found in archive

To solve the above problem, I've to download and install the zlib from
www.bull.de not the one from freshmeat!

2) 2nd time - I can start postmaster, but can't start psql client, it
requires libreadline.so (libreadline.a is not enough),
I've to download the gnu-readline source from
freshmeat to compile it not the one from www.bull.de!!

after the above struggling, I believe the Analyze hangs problem is solved!
My belief is some improvements should do in configure/make,
to have a partial functioned postgresql installed
on production account is not good. (Note: "make" should fail but not, IMHO,
the good news is at least "make check" hangs).

Hopefully this post will
help some AIX users.

thanks for the helps.

John Liu

> -----Original Message-----
> From: Peter Eisentraut [mailto:peter_e@gmx.net]
> Sent: Tuesday, April 01, 2003 3:41 PM
> To: John Liu
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] 7.3.2 make failed on AIX4.3 using native c
> compiler
>
>
> John Liu writes:
>
> > make[4]: Leaving directory
> `/emrxdbs/postgresql-7.3.2/src/backend/parser'
> > cc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong
> -I../../../src/interfaces/libpq -I
> > ../../../src/include -I/usr/local/include
> -DBINDIR=\"/emrxdbs/pgsql/bin\"  -
> > c -o pg_dump.o pg_dump.c
> >      2681 |                                          "COMMENT", deps,
> >             ....................................................a....
>
> This looks pretty bogus.  The code in around line 2681 is
>
>     ArchiveEntry(fout, oid, target, namespace, owner,
>                  "COMMENT", deps,
>                  query->data, "", NULL, NULL, NULL);
>
> deps is declared in the signature of the surrounding function:
>
> static void
> dumpComment(Archive *fout, const char *target,
>             const char *namespace, const char *owner,
>             const char *oid, const char *classname, int subid,
>             const char *((*deps)[]))
>
> The declaration of ArchiveEntry() is:
>
> extern void ArchiveEntry(Archive *AHX, const char *oid, const char *tag,
>              const char *namespace, const char *owner,
>              const char *desc, const char *((*deps)[]),
>              const char *defn, const char *dropStmt,
>              const char *copyStmt,
>              DataDumperPtr dumpFn, void *dumpArg);
>
> deps has exactly the same type in both.
>
> I wonder whether the const gets lost somewhere, perhaps due to something
> that configure does.
>
> --
> Peter Eisentraut   peter_e@gmx.net


Wed, 2 Apr 2003 09:10:51 -0600
"John Liu" <johnl@emrx.com>
Re: 7.3.2 make failed on AIX4.3 using native c compiler