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

Commit0079de4

Browse files
committed
Make sure Irix/Linux FAQs are updated
1 parentbfd85c8 commit0079de4

File tree

2 files changed

+241
-12
lines changed

2 files changed

+241
-12
lines changed

‎doc/FAQ_Irix

Lines changed: 210 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
=====================================================
2-
Frequently Asked Questions (FAQ) for PostgreSQL V6.1
1+
<PRE>
2+
======================================================
3+
Frequently Asked Questions (FAQ) for PostgreSQL >=V6.1
34
IRIX Specific
45
TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ
5-
=====================================================
6-
last updated:Fri Sep 19 11:51:00BST 1997
6+
======================================================
7+
last updated:Mon Dec 04 10:20:00GMT 1997
78

89
current maintainer: Andrew C.R. Martin (martin@biochem.ucl.ac.uk)
910
original author: Andrew C.R. Martin (martin@biochem.ucl.ac.uk)
1011

1112

1213
Changes in this version (* = modified, + = new, - = removed):
13-
+1.6) The make fails with the following message:
14-
ld32: ERROR 4: Conflicting flag setting: -call_shared
14+
+1.9) Why does IRIX5 lex fail with PostgreSQL 6.2.1?
1515

1616
This file is divided approximately as follows:
1717
1.*) Installing PostgreSQL
@@ -28,6 +28,9 @@ Questions answered:
2828
1.5) Can I install PostgreSQL under Irix 6.x?
2929
1.6) The make fails with the following message:
3030
ld32: ERROR 4: Conflicting flag setting: -call_shared
31+
1.7) Why won't it link? (Problems with lorder)
32+
1.8) I have major problems with IRIX 6!
33+
1.9) Why does lex fail with PostgreSQL 6.2.1?
3134
2.1) Why can't I move the executable files?
3235
3.1) How do I compile a C program to create a function for extending
3336
PostgreSQL
@@ -142,6 +145,206 @@ Section 1: Installing PostgreSQL
142145
brian@fresnelsoft.com)
143146

144147

148+
1.7) Why won't it link? (Problems with lorder)
149+
150+
According to the IRIX man pages, lorder is useless, but harmless
151+
under IRIX. However, it has caused problems for some people
152+
using both IRIX 6.2.
153+
154+
The solution is to add the following line to
155+
.../src/makefiles/Makefile.irix5
156+
157+
MK_NO_LORDER=true
158+
159+
160+
1.8) I have major problems with IRIX 6!
161+
162+
The following is quoted directly from Bob Bruccoleri <bruc@bms.com>
163+
164+
There is a really nasty loader bug in the compiler system (7.1)
165+
on Irix 6.x, and the error that Lasse Petersen is the result of it.
166+
Here is the original message. I don't know if all the changes have been
167+
folded into the current release.
168+
169+
Date: Fri, 06 Jun 1997 17:12:20 -0400 (EDT)
170+
From: bruc@bms.com (Robert Bruccoleri)
171+
Subject: [PORTS] Patches for Irix 6.4
172+
173+
I have worked out how to compile PostgreSQL on Irix 6.4 using the -n32 compiler
174+
mode and version 7.1 of the C compiler. (The n32 compiler use 32 bits addressing,
175+
but allows access to all the instructions in the MIPS4 instruction set.)
176+
There were several problems:
177+
178+
1) The ld command is not referenced as a macro in all the Makefiles. On
179+
this platform, you have to include -n32 on all the ld commands. Makefiles
180+
were changed as needed.
181+
182+
2) There is a bug in "ld" which mishandles the addresses of static procedures
183+
when object files are assembled into larger object files using "ld -r".
184+
Because of this, I put a hack into src/backend/Makefile to avoid all the
185+
SUBSYS.o files and just link all the objects. I have contacted SGI about the
186+
problem, and hopefully, it will be fixed in the near future.
187+
188+
3) Lots of warnings are generated from the compiler. Since the regression
189+
tests worked OK, I didn't attempt to fix them. If anyone wants the compilation
190+
log, please let me know, and I'll email it to you.
191+
192+
The version of postgresql was 970602. Here is Makefile.custom:
193+
194+
CUSTOM_COPT = -O2 -n32
195+
MK_NO_LORDER = 1
196+
LD = ld -n32
197+
CC += -n32
198+
199+
Here are the patches:
200+
201+
*** ./backend/access/Makefile.orig Sun Nov 10 00:00:15 1996
202+
- --- ./backend/access/Makefile Tue Jun 3 10:22:32 1997
203+
***************
204+
*** 8,13 ****
205+
- --- 8,16 ----
206+
#
207+
#-------------------------------------------------------------------------
208+
209+
+ SRCDIR = ../..
210+
+ include ../../Makefile.global
211+
+
212+
OBJS = common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap/SUBSYS.o \
213+
index/SUBSYS.o rtree/SUBSYS.o nbtree/SUBSYS.o transam/SUBSYS.o
214+
215+
216+
*** ./backend/bootstrap/Makefile.orig Fri Apr 18 06:00:23 1997
217+
- --- ./backend/bootstrap/Makefile Tue Jun 3 10:23:59 1997
218+
***************
219+
*** 38,44 ****
220+
all: SUBSYS.o
221+
222+
SUBSYS.o: $(OBJS)
223+
! ld -r -o SUBSYS.o $(OBJS)
224+
225+
# bootstrap.o's dependency on bootstrap_tokens.h is computed by the
226+
# make depend, but we state it here explicitly anyway because
227+
- --- 38,44 ----
228+
all: SUBSYS.o
229+
230+
SUBSYS.o: $(OBJS)
231+
! $(LD) -r -o SUBSYS.o $(OBJS)
232+
233+
# bootstrap.o's dependency on bootstrap_tokens.h is computed by the
234+
# make depend, but we state it here explicitly anyway because
235+
236+
*** ./backend/Makefile.orig Thu May 22 00:00:15 1997
237+
- --- ./backend/Makefile Thu Jun 5 16:47:27 1997
238+
***************
239+
*** 54,60 ****
240+
all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source
241+
242+
postgres: $(OBJS) ../utils/version.o
243+
! $(CC) -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
244+
245+
$(OBJS): $(DIRS:%=%.dir)
246+
247+
- --- 54,64 ----
248+
all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source
249+
250+
postgres: $(OBJS) ../utils/version.o
251+
! # $(CC) -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
252+
! -rm -f *.o
253+
! find . -name "*.o" -exec cp \{\} . \;
254+
! rm -f SUBSYS.o
255+
! $(CC) -o postgres *.o ../utils/version.o $(LDFLAGS)
256+
257+
$(OBJS): $(DIRS:%=%.dir)
258+
259+
***************
260+
*** 116,122 ****
261+
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
262+
global1.bki.source local1_template1.bki.source \
263+
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
264+
!
265+
$(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres
266+
ifeq ($(MAKE_EXPORTS), true)
267+
$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)
268+
- --- 120,126 ----
269+
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
270+
global1.bki.source local1_template1.bki.source \
271+
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
272+
!
273+
$(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres
274+
ifeq ($(MAKE_EXPORTS), true)
275+
$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)
276+
277+
*** ./backend/optimizer/Makefile.orig Wed Feb 19 12:00:34 1997
278+
- --- ./backend/optimizer/Makefile Tue Jun 3 10:39:47 1997
279+
***************
280+
*** 8,13 ****
281+
- --- 8,16 ----
282+
#
283+
#-------------------------------------------------------------------------
284+
285+
+ SRCDIR= ../..
286+
+ include ../../Makefile.global
287+
+
288+
all: submake SUBSYS.o
289+
290+
OBJS = path/SUBSYS.o plan/SUBSYS.o prep/SUBSYS.o util/SUBSYS.o geqo/SUBSYS.o
291+
292+
*** ./backend/libpq/pqcomprim.c.orig Mon May 26 00:00:23 1997
293+
- --- ./backend/libpq/pqcomprim.c Fri Jun 6 16:02:24 1997
294+
***************
295+
*** 32,40 ****
296+
# define hton_l(n) (ntoh_l(n))
297+
# else /* BYTE_ORDER != BIG_ENDIAN */
298+
# if BYTE_ORDER == PDP_ENDIAN
299+
! # #error PDP_ENDIAN macros not written yet
300+
# else /* BYTE_ORDER != anything known */
301+
! # #error BYTE_ORDER not defined as anything understood
302+
# endif /* BYTE_ORDER == PDP_ENDIAN */
303+
# endif /* BYTE_ORDER == BIG_ENDIAN */
304+
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
305+
- --- 32,40 ----
306+
# define hton_l(n) (ntoh_l(n))
307+
# else /* BYTE_ORDER != BIG_ENDIAN */
308+
# if BYTE_ORDER == PDP_ENDIAN
309+
! # error PDP_ENDIAN macros not written yet
310+
# else /* BYTE_ORDER != anything known */
311+
! # error BYTE_ORDER not defined as anything understood
312+
# endif /* BYTE_ORDER == PDP_ENDIAN */
313+
# endif /* BYTE_ORDER == BIG_ENDIAN */
314+
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
315+
316+
*** ./backend/storage/Makefile.orig Sun Nov 10 00:01:06 1996
317+
- --- ./backend/storage/Makefile Tue Jun 3 10:41:29 1997
318+
***************
319+
*** 8,13 ****
320+
- --- 8,16 ----
321+
#
322+
#-------------------------------------------------------------------------
323+
324+
+ SRCDIR= ../..
325+
+ include ../../Makefile.global
326+
+
327+
all: submake SUBSYS.o
328+
329+
OBJS = buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \
330+
331+
332+
333+
334+
1.9) Why does lex fail with PostgreSQL 6.2.1?
335+
336+
IRIX 5.3 lex has been reported to fail in
337+
postgresql-6.2.1/src/backend/parser with the error:
338+
339+
lex scan.l
340+
"scan.l":line 86: Error: Invalid request %x xc
341+
gmake[2]: *** [scan.c] Error 1
342+
343+
The answer is to use GNU flex 2.5.4 or later. Use the command
344+
flex --version
345+
to check you have a new enough version of flex
346+
347+
145348
----------------------------------------------------------------------
146349
Section 2: Deinstalling PostgreSQL
147350
----------------------------------------------------------------------
@@ -181,3 +384,4 @@ Dr. Andrew C.R. Martin University College London
181384
EMAIL: (Work) martin@biochem.ucl.ac.uk (Home) andrew@stagleys.demon.co.uk
182385
URL: http://www.biochem.ucl.ac.uk/~martin
183386
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775
387+
</PRE>

‎doc/FAQ_Linux

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1+
<PRE>
12
=======================================================
23
Frequently Asked Questions (FAQ) for PostgreSQL >= V6.1
34
Linux Specific
45
TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ
56
=======================================================
6-
last updated:Wed Oct 01 11:45:00BST 1997
7+
last updated:Thu Dec 15 12:05:00GMT 1997
78

89
current maintainer: Andrew C.R. Martin (martin@biochem.ucl.ac.uk)
910
original author: Andrew C.R. Martin (martin@biochem.ucl.ac.uk)
1011

1112

1213
Changes in this version (* = modified, + = new, - = removed):
1314

14-
+3.9) Why does Query 32 in the regression tests take so long?
15+
*1.3) [REDHAT] Why do I get problems with missing libdl and dlfcn.h?
16+
*1.4) [SLACKWARE 3.1] Why do I get problems with missing libdl and dlfcn.h?
17+
+1.19) Why does make exit or crash?
1518

1619

1720
This file is divided approximately as follows:
@@ -51,6 +54,7 @@ Questions answered:
5154
make: *** [ipc.o] Error 1
5255
1.17) When compiling postgres, gcc reports signal 11 and aborts.
5356
1.18) Can I install 6.1.1 under MkLinux?
57+
1.19) Why does make exit or crash?
5458
2.1) The linker fails to find libX11 when compiling pgtclsh
5559
3.1) I get an error reporting _fUnKy_POSTPORT_sTuFf_ undefined when
5660
running scripts like createuser
@@ -151,6 +155,9 @@ Section 1: Compiling PostgreSQL
151155

152156
Install the RPM file in the usual way and off you go!
153157

158+
NOTE! You will have to re-run configure and do a make clean
159+
after installing the library and before recompiling.
160+
154161
There has been one report of a corrupted system resulting from
155162
programs accessing these libraries while updating them (not
156163
altogether surprising). Consequently it is a good idea to reboot
@@ -191,7 +198,7 @@ Section 1: Compiling PostgreSQL
191198
into single-user mode is probably a good idea!
192199

193200
The easiest fix is to obtain the file ldso.tgz from the a4 disk of
194-
a more recent Slackware3.1distribution and unpack this file
201+
a more recent Slackware distribution and unpack this file
195202
from the root (/) directory, then do
196203

197204
sh install/doinst.sh
@@ -200,6 +207,9 @@ Section 1: Compiling PostgreSQL
200207

201208
ldconfig
202209

210+
NOTE! You will have to re-run configure and do a make clean
211+
after installing the library and before recompiling.
212+
203213
If you want to install manually, you must first install the file
204214
dlfcn.h in /usr/include.
205215

@@ -220,6 +230,9 @@ Section 1: Compiling PostgreSQL
220230

221231
ldconfig
222232

233+
NOTE! You will have to re-run configure and do a make clean
234+
after installing the library and before recompiling.
235+
223236

224237
1.5) My compile of the backend dies complaining about the include file
225238
dlfcn.h missing
@@ -280,10 +293,12 @@ Section 1: Compiling PostgreSQL
280293
If this doesn't work (I don't have SuSE to verify that it does)
281294
then after running configure, you need to edit
282295
src/Makefile.global and add -ltermcap to the LDFLAGS line
283-
(after -lreadline).
296+
(after -lreadline). (Alternatively, you can modify
297+
src/Makefile.custom before running configure.)
284298

285-
You may also wish to force use of ncurses rather than curses by
286-
changing -lcurses to -lncurses.
299+
Some versions of SuSE provide only ncurses, so you may need
300+
to force use of ncurses rather than curses by changing
301+
-lcurses to -lncurses.
287302

288303

289304
1.9) Why do I get problems with ld.so?
@@ -406,6 +421,15 @@ Section 1: Compiling PostgreSQL
406421
MkLinux DR2.1 update2 after a small patch available from:
407422
ftp://ftp.sra.co.jp/pub/cmd/postgres/6.1.1/mklinux.patch.gz
408423

424+
1.19) Why does make exit or crash?
425+
426+
There have been a couple of reports of gmake either just
427+
exiting early or seg faulting. The latter problem was reported
428+
with gmake 3.74 - upgrading to 3.76.1 solved the problem.
429+
However, 3.74 is known to work fine in other people's setups.
430+
In short, try upgrading gmake to the latest version you can
431+
find before reporting this as a problem
432+
409433

410434
----------------------------------------------------------------------
411435
Section 2: Compiling accessory programs
@@ -598,3 +622,4 @@ Dr. Andrew C.R. Martin University College London
598622
EMAIL: (Work) martin@biochem.ucl.ac.uk (Home) andrew@stagleys.demon.co.uk
599623
URL: http://www.biochem.ucl.ac.uk/~martin
600624
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775
625+
</PRE>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp