Обсуждение: Problems building pgsql 6.5/6.4 on AIX gcc

Поиск
Список
Период
Сортировка

Problems building pgsql 6.5/6.4 on AIX gcc

От
Artur Pietruk
Дата:
    Hi! I can't compile postgres 6.5/6.4 on RS6000 (CPU:PowerPC 604
333Mhz, AIX4.3, egcs). I have installed bison and flex.

    I'm configuring it with "./configure --with-template=aix_gcc".
gmake all fails with dynloader.c:

----
gmake[2]: Entering directory
`/usr/local/src/postgresql-6.4.2/postgresql-6.5/src/backend/port'
gcc -I../../include -I../../backend   -fsigned-chars -Wall
-Wmissing-prototypes -I..   -c dynloader.c -o dynloader.o
In file included from ../../include/postgres.h:42,
                 from dynloader.c:15:
../../include/c.h:169: warning: redefinition of `int8'
/usr/include/sys/inttypes.h:584: warning: `int8' previously declared here
../../include/c.h:170: warning: redefinition of `int16'
/usr/include/sys/inttypes.h:585: warning: `int16' previously declared here
../../include/c.h:171: warning: redefinition of `int32'
/usr/include/sys/inttypes.h:586: warning: `int32' previously declared here
dynloader.c: In function `dlopen':
dynloader.c:192: warning: suggest parentheses around assignment used as
truth value
dynloader.c:204: warning: suggest parentheses around assignment used as
truth value
dynloader.c: In function `readExports':
dynloader.c:476: warning: implicit declaration of function `FSEEK'
dynloader.c:476: `BEGINNING' undeclared (first use in this function)
dynloader.c:476: (Each undeclared identifier is reported only once
dynloader.c:476: for each function it appears in.)
dynloader.c:485: warning: implicit declaration of function `FREAD'
gmake[2]: *** [dynloader.o] Error 1
gmake[2]: Leaving directory
`/usr/local/src/postgresql-6.4.2/postgresql-6.5/src/backend/port'
gmake[1]: *** [port.dir] Error 2
gmake[1]: Leaving directory
`/usr/local/src/postgresql-6.4.2/postgresql-6.5/src/backend'
gmake: *** [all] Error 2
----

    What am I doing wrong? Is there binary distribution of postgres
for aix?

    Best regards,

--- Artur Pietruk, arturp@pdi.net

Re: [GENERAL] Problems building pgsql 6.5/6.4 on AIX gcc

От
Bruce Momjian
Дата:
Check AIX faq on the web site.  It may help.


>     Hi! I can't compile postgres 6.5/6.4 on RS6000 (CPU:PowerPC 604
> 333Mhz, AIX4.3, egcs). I have installed bison and flex.
>
>     I'm configuring it with "./configure --with-template=aix_gcc".
> gmake all fails with dynloader.c:
>
> ----
> gmake[2]: Entering directory
> `/usr/local/src/postgresql-6.4.2/postgresql-6.5/src/backend/port'
> gcc -I../../include -I../../backend   -fsigned-chars -Wall
> -Wmissing-prototypes -I..   -c dynloader.c -o dynloader.o
> In file included from ../../include/postgres.h:42,
>                  from dynloader.c:15:
> ../../include/c.h:169: warning: redefinition of `int8'
> /usr/include/sys/inttypes.h:584: warning: `int8' previously declared here
> ../../include/c.h:170: warning: redefinition of `int16'
> /usr/include/sys/inttypes.h:585: warning: `int16' previously declared here
> ../../include/c.h:171: warning: redefinition of `int32'
> /usr/include/sys/inttypes.h:586: warning: `int32' previously declared here
> dynloader.c: In function `dlopen':
> dynloader.c:192: warning: suggest parentheses around assignment used as
> truth value
> dynloader.c:204: warning: suggest parentheses around assignment used as
> truth value
> dynloader.c: In function `readExports':
> dynloader.c:476: warning: implicit declaration of function `FSEEK'
> dynloader.c:476: `BEGINNING' undeclared (first use in this function)
> dynloader.c:476: (Each undeclared identifier is reported only once
> dynloader.c:476: for each function it appears in.)
> dynloader.c:485: warning: implicit declaration of function `FREAD'
> gmake[2]: *** [dynloader.o] Error 1
> gmake[2]: Leaving directory
> `/usr/local/src/postgresql-6.4.2/postgresql-6.5/src/backend/port'
> gmake[1]: *** [port.dir] Error 2
> gmake[1]: Leaving directory
> `/usr/local/src/postgresql-6.4.2/postgresql-6.5/src/backend'
> gmake: *** [all] Error 2
> ----
>
>     What am I doing wrong? Is there binary distribution of postgres
> for aix?
>
>     Best regards,
>
> --- Artur Pietruk, arturp@pdi.net
>
>


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

Re: [GENERAL] Problems building pgsql 6.5/6.4 on AIX gcc

От
Artur Pietruk
Дата:
On Tue, Jun 15, 1999 at 03:33:48PM -0400, Bruce Momjian wrote:
> Check AIX faq on the web site.  It may help.

    Where can i find aix faq on the website?

    I've found information in the develope-faq about mkldexport
and AIX, but I don't know what to with it. I can't compile dynloader.c
how can mkldexport help mi with that?

    Anyway, thanks for your help.

    Best regards,

--- Artur Pietruk, arturp@pdi.net