Re: Trying to build 7.0.3 on SCO 5.0.4

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Dave Smith <dave(at)candata(dot)com>
Cc: "Robert D(dot) Nelson" <RDNELSON(at)co(dot)centre(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgresSQL mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trying to build 7.0.3 on SCO 5.0.4
Date: 2000-11-21 20:39:06
Message-ID: 20001121143906.A11204@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Dave Smith <dave(at)candata(dot)com> [001121 14:34]:
> Yup. that's it.
>
> createdb --host=localhost company
> works fine. Could you elaborate on what the accept issue is?
SCO has a bug in accept() of Unix Domain Sockets. It doesn't set
SA_FAMILY to AF_UNIX. Here's a patch for 7.0.3:
$ diff -c pqcomm.c.old pqcomm.c
*** pqcomm.c.old Thu May 25 20:26:19 2000
--- pqcomm.c Sun Nov 12 12:03:25 2000
***************
*** 354,359 ****
--- 354,361 ----
perror("postmaster: StreamConnection: accept");
return STATUS_ERROR;
}
+ if (port->raddr.sa.sa_family == 0)
+ port->raddr.sa.sa_family = AF_UNIX;

/* fill in the server (local) address */
addrlen = sizeof(port->laddr);
$

We've fixed this in 7.1 for UnixWare, now we need to fix it for OSR5
as well.

Peter E:
Can we look into this?

>
> Larry Rosenman wrote:
>
> > What happens if you connect using TCP/IP?
> > I think the OSR5 libs have the same issue that UW7 has in the accept
> > call.
> >
> > I.E. psql -h localhost
> >
> > LER
> >
> > * Dave Smith <dave(at)candata(dot)com> [001121 13:37]:
> >
> >> No differnt
> >>
> >> Robert D. Nelson wrote:
> >>
> >>
> >>>> createdb company
> >>>> psql: No pg_hba.conf entry for host localhost, user postgre, database
> >>>> template1
> >>>> createdb: database creation failed
> >>>
> >>>
> >>> What happens if you try a user "postgres" instead of "postgre"? :)
> >>>
> >>>
> >>> Rob Nelson
> >>> rdnelson(at)co(dot)centre(dot)pa(dot)us
> >>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Larry Rosenman 2000-11-21 21:00:23 Re: Trying to build 7.0.3 on SCO 5.0.4
Previous Message Dave Smith 2000-11-21 20:33:57 Re: Trying to build 7.0.3 on SCO 5.0.4