compilation on AIX 4.3.2 with international support

From: "Rainer Tammer" <rainer(dot)tammer(at)spg(dot)schulergroup(dot)com>
To: "bugs(at)postgreSQL(dot)org" <bugs(at)postgreSQL(dot)org>
Subject: compilation on AIX 4.3.2 with international support
Date: 2000-03-03 12:55:20
Message-ID: 200003031254.NAA31280@gatekeeper.schuler.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Rainer Tammer
Your email address : rainer(dot)tammer(at)spg(dot)schulergroup(dot)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:
------------------------------------------------

I made the following changes to compile the PostgreSQL 6.5.3 on AIX 4.3.2..

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

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

N/A

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

N/A

Bye

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

Bye

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

Browse pgsql-bugs by date

  From Date Subject
Next Message Kardos, Dr. Andreas 2000-03-03 15:06:45 pg_dumpall
Previous Message bench 2000-03-03 09:51:49 your imaging supplies