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

Commitd6adef4

Browse files
committed
FAQ_Irix update
1 parentf74f2d3 commitd6adef4

File tree

1 file changed

+109
-6
lines changed

1 file changed

+109
-6
lines changed

‎doc/FAQ_Irix

Lines changed: 109 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<PRE>
21
======================================================
32
Frequently Asked Questions (FAQ) for PostgreSQL >=V6.1
43
IRIX Specific
54
TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ
65
======================================================
7-
last updated: MonDec 04 10:20:00 GMT1997
6+
last updated: MonMar 05 17:00:00 GMT1998
87

98
current maintainer: Andrew C.R. Martin (martin@biochem.ucl.ac.uk)
109
original author: Andrew C.R. Martin (martin@biochem.ucl.ac.uk)
1110

1211

1312
Changes in this version (* = modified, + = new, - = removed):
14-
+1.9) Why does IRIX5 lex fail with PostgreSQL 6.2.1?
13+
*1.5) Can I install PostgreSQL (<V6.3) under Irix 6.x?
14+
+1.10) How do I install PostgreSQL V6.3 under Irix 6.x?
1515

1616
This file is divided approximately as follows:
1717
1.*) Installing PostgreSQL
@@ -25,12 +25,13 @@ Questions answered:
2525
1.3) What are the references in X11_LIB to libsocket and libnsl in
2626
src/Makefile.global?
2727
1.4) Are there any other changes I should make?
28-
1.5) Can I install PostgreSQL under Irix 6.x?
28+
1.5) Can I install PostgreSQL(<V6.3)under Irix 6.x?
2929
1.6) The make fails with the following message:
3030
ld32: ERROR 4: Conflicting flag setting: -call_shared
3131
1.7) Why won't it link? (Problems with lorder)
3232
1.8) I have major problems with IRIX 6!
3333
1.9) Why does lex fail with PostgreSQL 6.2.1?
34+
1.10) How do I install PostgreSQL V6.3 under Irix 6.x?
3435
2.1) Why can't I move the executable files?
3536
3.1) How do I compile a C program to create a function for extending
3637
PostgreSQL
@@ -93,7 +94,9 @@ Section 1: Installing PostgreSQL
9394
Ginstall is part of the GNU fileutils package.
9495

9596

96-
1.5) Can I install PostgreSQL under Irix 6.x?
97+
1.5) Can I install PostgreSQL (<V6.3) under Irix 6.x?
98+
99+
Instructions for PostgreSQL V6.3 are answered in Question 1.10!
97100

98101
Irix 6.2-6.4 has a bug in ld which mishandles the addresses of
99102
static procedures when object files are assembled into
@@ -345,6 +348,107 @@ Here are the patches:
345348
to check you have a new enough version of flex
346349

347350

351+
1.10) How do I install PostgreSQL V6.3 under Irix 6.x?
352+
353+
Irix 6.2-6.4 has a bug in ld which mishandles the addresses of
354+
static procedures when object files are assembled into
355+
larger object files using 'ld -r'. This bug has been reported
356+
to Silicon Graphics.
357+
358+
Depending on your Irix installation you may also encounter
359+
2 other problems detailed below: Conflict in C standards,
360+
Conflict in library functions.
361+
362+
a) Solving the ld bug
363+
---------------------
364+
365+
One option is to use the Gnu version of ld. Alternatively,
366+
the following patch should be applied as a workaround.
367+
(Supplied by Bob Bruccoleri <bruc@bms.com> and modified for
368+
PostgreSQL V6.3 by Lasse Hiller Petersen <lassehp@imv.aau.dk>)
369+
370+
Apply the following patch:
371+
372+
*** ./backend/Makefile.orig Tue Mar 3 15:33:58 1998
373+
--- ./backend/Makefile Tue Mar 3 15:39:27 1998
374+
***************
375+
*** 63,69 ****
376+
global1.description
377+
local1_template1.description
378+
379+
postgres: $(OBJS) ../utils/version.o
380+
! $(CC) -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
381+
382+
$(OBJS): $(DIRS:%=%.dir)
383+
384+
--- 63,73 ----
385+
global1.description
386+
local1_template1.description
387+
388+
postgres: $(OBJS) ../utils/version.o
389+
! # $(CC) -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
390+
! -rm -f *.o
391+
! find . -name "*.o" -exec cp \{\} . \;
392+
! rm -f SUBSYS.o
393+
! $(CC) -o postgres *.o ../utils/version.o $(LDFLAGS)
394+
395+
$(OBJS): $(DIRS:%=%.dir)
396+
397+
398+
399+
400+
Lasse configured with ./configure --enable-locale
401+
and modified Makefile.custom to contain:
402+
CC = cc -n32
403+
LD = ld -n32
404+
405+
He reports that the installation without -n32 works fine too,
406+
but the -n32 was required for compatibility with his Perl
407+
installation. His system was an Origin200 running IRIX64 v6.4.
408+
409+
410+
b) Conflict in C standards
411+
--------------------------
412+
413+
I have found that the following patch is also necessary in order
414+
to prevent a duplicate definition of a Union used for semaphores.
415+
Apply the following patch to:
416+
.../src/makefile/Makefile.irix5:
417+
418+
*** src/makefiles/Makefile.irix5.orig Thu Mar 5 16:59:58 1998
419+
--- src/makefiles/Makefile.irix5 Thu Mar 5 17:01:13 1998
420+
***************
421+
*** 6,9 ****
422+
%.so: %.o
423+
$(LD) -G -Bdynamic -shared -o $@ $<
424+
425+
!
426+
--- 6,9 ----
427+
%.so: %.o
428+
$(LD) -G -Bdynamic -shared -o $@ $<
429+
430+
! CFLAGS+= -U_NO_XOPEN4
431+
432+
i.e. the addition of the line:
433+
CFLAGS+= -U_NO_XOPEN4
434+
435+
This is needed to stop the semun union being redefined in
436+
/usr/include/sys/sem.h
437+
438+
c) Conflict in library functions
439+
--------------------------------
440+
441+
In addition, if you have the nsl and crypt libraries these will
442+
conflict with the required definitions. I think that libnsl.a
443+
may be the Netware socket library (or something similar). In
444+
any case, if you have these libraries, they will be added to
445+
Makefile.global and you will need to remove them.
446+
447+
Thus, you should edit .../src/Makefile.global. Goto (approximately)
448+
line 217 where LDFLAGS= is set and remove -lnsl and -lcrypt
449+
from this line.
450+
451+
348452
----------------------------------------------------------------------
349453
Section 2: Deinstalling PostgreSQL
350454
----------------------------------------------------------------------
@@ -384,4 +488,3 @@ Dr. Andrew C.R. Martin University College London
384488
EMAIL: (Work) martin@biochem.ucl.ac.uk (Home) andrew@stagleys.demon.co.uk
385489
URL: http://www.biochem.ucl.ac.uk/~martin
386490
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775
387-
</PRE>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp