compilation on AIX 4.3.2 with international support - Mailing list pgsql-ports

From Rainer Tammer
Subject compilation on AIX 4.3.2 with international support
Date
Msg-id 199911220815.JAA30502@gatekeeper.schuler.de
Whole thread Raw
List pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name    : Rainer Tammer
Your email address    : rainer.tammer@spg.schulergroup.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)      : RS/6000

  Operating System (example: Linux 2.0.26 ELF)     : AIX 4.3.2.0-02

  PostgreSQL version (example: PostgreSQL-6.5.3):   PostgreSQL-6.5.3

  Compiler used (example:  gcc 2.8.0)        : xlC 3.6.6


Please enter a FULL description of your problem:
------------------------------------------------

see below



Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------


see below


If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------


see below


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

Hello,
I made the following changes to compile the PostgreSQL 6.5.3 on AIX
4.3.2. I am not absolutely sure that all changes are O.K. :-((, so I
ask the development team...

Change for AIX 4.3.2 / xlC 3.6.6
================================

1. ./postgresql-6.5.3/src/backend/utils/adt/verlena.c

line 504: change (unsigned char *) to (char *)
line 505: change (unsigned char *) to (char *)

504,505c504,505
<       a1p = (char *) palloc(len1 + 1);
<       a2p = (char *) palloc(len2 + 1);
---
>       a1p = (unsigned char *) palloc(len1 + 1);
>       a2p = (unsigned char *) palloc(len2 + 1);


2. ./postgresql-6.5.3/src/backend/access/nbtree/nbtcompare.c

line 156: insert cast: res = strcoll((const char *)ap, (const char *)bp)

156c156
<       res = strcoll(ap, bp);
---
>       res = strcoll((const char *)ap, (const char *)bp);

3. ./postgresql-6.5.3/src/include/c.h

line 173: comment out int8
line 174: comment out int16
line 175: comment out int32

173,175c173,175
< /* typedef signed char int8;          *//* == 8 bits */
< /* typedef signed short int16;        *//* == 16 bits */
< /* typedef signed int int32;          *//* == 32 bits */
---
> typedef signed char int8;             /* == 8 bits */
> typedef signed short int16;           /* == 16 bits */
> typedef signed int int32;             /* == 32 bits */

I think that this should be done via configure...


4. ./postgresql-6.5.3/src/include/utils/int8.h

line 33: comment out int64

33c33,34
< /* typedef long long int int64; */
---
> typedef long long int int64;
>


I think that this should be done via configure...

5. ./postgresql-6.5.3/pl/plpgsql/src/scan.l

AIX 4.3.2 lex produces errors, flex 2.5.4 seams to be ok

127: Warning: 1285-354 Executable statements should occur right after %%.
128: Warning: 1285-354 Executable statements should occur right after %%.
129: Warning: 1285-354 Executable statements should occur right after %%.
130: Warning: 1285-354 Executable statements should occur right after %%.
141: Warning: 1285-354 Executable statements should occur right after %%.
142: Warning: 1285-354 Executable statements should occur right after %%.
143: Warning: 1285-354 Executable statements should occur right after %%.
144: Warning: 1285-354 Executable statements should occur right after %%.
147: Warning: 1285-354 Executable statements should occur right after %%.
148: Warning: 1285-354 Executable statements should occur right after %%.
149: Warning: 1285-354 Executable statements should occur right after %%.
150: Warning: 1285-354 Executable statements should occur right after %%.
163: Warning: 1285-354 Executable statements should occur right after %%.
164: Warning: 1285-354 Executable statements should occur right after %%.
165: Warning: 1285-354 Executable statements should occur right after %%.
166: Warning: 1285-354 Executable statements should occur right after %%.
182: Warning: 1285-354 Executable statements should occur right after %%.
183: Warning: 1285-354 Executable statements should occur right after %%.
184: Warning: 1285-354 Executable statements should occur right after %%.
185: Warning: 1285-354 Executable statements should occur right after %%.
Error: 1285-311 There are too many transitions.
    Try using the following: %a Number

Bye
  Rainer Tammer



Bye

   Rainer Tammer
   [Schuler Pressen GmbH & Co, Abt.: CWIS, Tel.: +49(7161)66-747]



pgsql-ports by date:

Previous
From: Lamar Owen
Date:
Subject: Re: [PORTS] ARM fixes (fwd)
Next
From: root
Date:
Subject: Problem compiling for alpha