Tru64/Alpha problems

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Postgresql Dev <pgsql-hackers(at)postgresql(dot)org>
Subject: Tru64/Alpha problems
Date: 2006-03-28 13:58:51
Message-ID: 4429411B.2040100@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Honda Shigehiro has diagnosed the longstanding problems with his
Tru64/Alpha buildfarm member (bear). See below.

First, it appears that there is a problem with the system getaddrinfo(),
which configure reports as usable, but turns out not to be. Our current
configure test checks the return value of getaddrinfo("", "", NULL,
NULL) but I am wondering if we should test for "localhost" instead of ""
as the first parameter.

Second, it appears that this platform apparently doesn't handle Infinity
and NaN well. The regression diffs are attached.

cheers

andrew

-------- Original Message --------
Subject: Re: postgresql buildfarm member bear
Date: Tue, 28 Mar 2006 21:53:15 +0900 (JST)
From: Honda Shigehiro <fwif0083(at)mb(dot)infoweb(dot)ne(dot)jp>
To: andrew(at)dunslane(dot)net
CC: fwif0083(at)mb(dot)infoweb(dot)ne(dot)jp
References: <44229B69(dot)2090909(at)dunslane(dot)net>
<20060323(dot)225736(dot)41630581(dot)fwif0083(at)mb(dot)infoweb(dot)ne(dot)jp>
<4422ACED(dot)7030506(at)dunslane(dot)net>

I found the cause. Tru64's getaddrinfo seems something wrong.
(I use version 5.0, but with google search, this is same until
version 5.1B.) I had used only with Unix domain socket.

So I succeed to start server with Unix Domain Socket(ex. make check).
But with "listen_addresses = 'localhost'", fail with:
LOG: could not translate host name "localhost", service "5432" to address: servname not supported for ai_socktype

To solve this, I had change to use src/port/getaddrinfo.c.
(I have little knowledge about autoconf...so ugly...)
Is there smart way which do not need to change code?

(1) change configure script and run it
bash-2.05b$ diff configure.aaa configure
14651c14651
< #define HAVE_GETADDRINFO 1
---
> /* #define HAVE_GETADDRINFO 1 */

(2) run make command
It fail by some undefined symbol. After the fail, change directory
to src/port and type:
cc -std -I../../src/port -I../../src/include -I/usr/local/include -c getaddrinfo.c -o getaddrinfo.o
ar crs libpgport.a isinf.o getopt_long.o copydir.o dirmod.o exec.o noblock.o path.o pipe.o pgsleep.o pgstrcasecmp.o sprompt.o thread.o getaddrinfo.o
ar crs libpgport_srv.a isinf.o getopt_long.o copydir.o dirmod_srv.o exec_srv.o noblock.o path.o pipe.o pgsleep.o pgstrcasecmp.o sprompt.o thread_srv.o getaddrinfo.o

(3) re-run make command

(4) check make check and make installcheck
float4 and float8 tests are failed in both cases.

Attachment Content-Type Size
regression.diffs text/plain 7.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-03-28 15:07:35 Re: [GENERAL] PANIC: heap_update_redo: no block
Previous Message Pavel Stehule 2006-03-28 13:01:55 Re: proposal - plpgsql: execute using into