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

Commitaa39e9a

Browse files
committed
Update FAQ_Solaris with info about gcc 2.95.1 problems and how to work
around 64-bit vsnprintf bug.
1 parentdd178e3 commitaa39e9a

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

‎doc/FAQ_Solaris

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL 7.2
33
Sun Solaris specific
44
to be read in conjunction with the installation instructions
55
============================================================
6-
last updated: $Date: 2002/02/12 22:35:07 $
6+
last updated: $Date: 2002/03/04 17:47:11 $
77

88
current maintainer: Peter Eisentraut <peter_e@gmx.net>
99

@@ -14,6 +14,7 @@ Contents:
1414
2) Why do I get problems when building with OpenSSL support?
1515
3) Why does configure complain about a failed test program?
1616
4) How do I ensure that pg_dump and pg_restore can handle files > 2 Gb?
17+
5) Why does my 64-bit build sometimes crash?
1718

1819

1920
1) What tools do I need to build and install PostgreSQL on Solaris?
@@ -31,9 +32,10 @@ http://www.sunfreeware.com
3132
If you prefer sources, look here:
3233
http://www.gnu.org/order/ftp.html
3334

34-
You can build with either GCC or Sun's compiler suite.
35-
If you are using Sun's compiler, be careful *not* to select /usr/ucb/cc;
36-
use /opt/SUNWspro/bin/cc.
35+
You can build with either GCC or Sun's compiler suite. We have heard reports
36+
of problems when using gcc 2.95.1; gcc 2.95.3 is recommended. If you are
37+
using Sun's compiler, be careful *not* to select /usr/ucb/cc; use
38+
/opt/SUNWspro/bin/cc.
3739

3840

3941
2) Why do I get problems when building with OpenSSL support?
@@ -79,3 +81,22 @@ to specify support for files with 64-bit offsets. This has been verified
7981
to work on Solaris 7:
8082

8183
CFLAGS="`getconf LFS_CFLAGS`"; export CFLAGS
84+
85+
86+
5) Why does my 64-bit build sometimes crash?
87+
88+
On Solaris 7 and older, the 64-bit version of libc has a buggy vsnprintf
89+
routine, which leads to erratic core dumps in PostgreSQL. The simplest known
90+
workaround is to force PostgreSQL to use its own version of vsnprintf rather
91+
than the library copy. To do this, after you run 'configure' edit two files
92+
produced by configure:
93+
94+
(1) In src/Makefile.global, change the line
95+
SNPRINTF =
96+
to read
97+
SNPRINTF = snprintf.o
98+
99+
(2) In src/backend/port/Makefile, add "snprintf.o" to OBJS. (Skip this
100+
step if you see "$(SNPRINTF)" already listed in OBJS.)
101+
102+
Then build as usual.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp