Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit081ed99

Browse files
committed
We haven't seen any agreement emerge as to what is causing AIX 5.3 ML3
to fail to successfully build the release candidates.However, a patch has emerged (thanks, Seneca!) that does allow it towork, and which I'd expect to be portable (better still!).We are still actively pursuing why it breaks, but supposing that stillremains outstanding, at least the following would allow AIX users tobetter survive a build...Chris Browne
1 parentc3d8de0 commit081ed99

File tree

1 file changed

+62
-2
lines changed

1 file changed

+62
-2
lines changed

‎doc/FAQ_AIX

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
From: Zeugswetter Andreas <ZeugswetterA@spardat.at>
2-
$Date: 2005/10/24 22:30:35 $
2+
$Date: 2005/11/04 18:16:50 $
33

44
On AIX 4.3.2 PostgreSQL compiled with the native IBM compiler xlc
55
(vac.C 5.0.1) passes all regression tests. Other versions of OS and
@@ -99,7 +99,7 @@ Closed date2005-07-18
9999
Last modified date2005-09-06
100100

101101
If you upgrade to maintenance level 5300-03, that will include this
102-
fix. Use the command "oslevel -r" to determine what maintenance level
102+
fix.Use the command "oslevel -r" to determine what maintenance level
103103
you are at.
104104
---
105105
From: Christopher Browne <cbbrowne@ca.afilias.info>
@@ -113,3 +113,63 @@ libraries, the following URLs may help you...
113113
http://www.faqs.org/faqs/aix-faq/part4/section-22.html
114114

115115
http://www.han.de/~jum/aix/ldd.c
116+
---
117+
From: Christopher Browne <cbbrowne@ca.afilias.info>
118+
Date: 2005-11-02
119+
120+
On AIX 5.3 ML3 (e.g. maintenance level 5300-03), there is some problem
121+
with the handling of the pointer to memcpy. It is speculated that
122+
this relates to some linker bug that may have been introduced between
123+
5300-02 and 5300-03, but we have so far been unable to track down the
124+
cause.
125+
126+
At any rate, the following patch, which "unwraps" the function
127+
reference, has been observed to allow PG 8.1 pre-releases to pass
128+
regression tests.
129+
130+
The same behaviour (albeit with varying underlying functions to
131+
"blame") has been observed when compiling with either GCC 4.0 or IBM
132+
XLC.
133+
134+
------------ per Seneca Cunningham -------------------
135+
136+
The following patch works on the AIX 5.3 ML3 box here and didn't cause
137+
any problems with postgres on the x86 desktop. It's just a cleaner
138+
version of what I tried earlier.
139+
140+
*** dynahash.c.orig Tue Nov 1 19:41:42 2005
141+
--- dynahash.c Tue Nov 1 20:30:33 2005
142+
***************
143+
*** 670,676 ****
144+
145+
146+
/* copy key into record */
147+
currBucket->hashvalue = hashvalue;
148+
! hashp->keycopy(ELEMENTKEY(currBucket), keyPtr, keysize);
149+
150+
151+
/* caller is expected to fill the data field on return */
152+
153+
154+
--- 670,687 ----
155+
156+
157+
/* copy key into record */
158+
currBucket->hashvalue = hashvalue;
159+
! if (hashp->keycopy == memcpy)
160+
! {
161+
! memcpy(ELEMENTKEY(currBucket), keyPtr, keysize);
162+
! }
163+
! else if (hashp->keycopy == strncpy)
164+
! {
165+
! strncpy(ELEMENTKEY(currBucket), keyPtr, keysize);
166+
! }
167+
! else
168+
! {
169+
! hashp->keycopy(ELEMENTKEY(currBucket), keyPtr, keysize);
170+
! }
171+
172+
173+
/* caller is expected to fill the data field on return */
174+
175+
------------ per Seneca Cunningham -------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp