Skip site navigation (1) Skip section navigation (2)

compilation on AIX 4.3.2 with international support

From: "Rainer Tammer" <rainer(dot)tammer(at)spg(dot)schulergroup(dot)com>
To: "pgsql-ports(at)postgresql(dot)org" <pgsql-ports(at)postgresql(dot)org>
Subject: compilation on AIX 4.3.2 with international support
Date: 1999-11-22 08:17:27
Message-ID: 199911220815.JAA30502@gatekeeper.schuler.de (view raw or flat)
Thread:
Lists: pgsql-ports
============================================================================
                        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:
------------------------------------------------

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

Next:From: rootDate: 1999-11-22 16:09:20
Subject: Problem compiling for alpha
Previous:From: Lamar OwenDate: 1999-11-18 22:38:17
Subject: Re: [PORTS] ARM fixes (fwd)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group