OpenServer 5.0.7: setsockopt(TCP_NODELAY)?
I asked my friends at SCO (who are productizing PG) to test
7.4RC1 on OpenServer 5.0.7, and received this back:
A "make check" fails at createdb with errors in the postmaster logfile:
LOG: setsockopt(TCP_NODELAY) failed: Protocol not available
Plus he needed to add:
if test "$GCC" != yes ; then
CC="$CC -b elf"
fi
to src/template/sco for 5.0.7.
I downloaded 7.4 RC1 and successfully compiled it on an OpenServer 5.0.7
system.
I am attaching the only change i had to make. This is the file
src/template/sco.
The GCC compiler on OSR5 no longer accepts the "-b elf" argument.
Anyone of the guru's have ideas?
Thanks,
LER
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
Larry Rosenman <ler@lerctr.org> writes:
A "make check" fails at createdb with errors in the postmaster logfile:
LOG: setsockopt(TCP_NODELAY) failed: Protocol not available
This is coming from
int on;
#ifdef TCP_NODELAY
on = 1;
if (setsockopt(port->sock, IPPROTO_TCP, TCP_NODELAY,
(char *) &on, sizeof(on)) < 0)
{
elog(LOG, "setsockopt(TCP_NODELAY) failed: %m");
return STATUS_ERROR;
}
#endif
Better ask them what their problem is with that ...
regards, tom lane
--On Thursday, November 06, 2003 20:19:05 -0500 Tom Lane
<tgl@sss.pgh.pa.us> wrote:
Larry Rosenman <ler@lerctr.org> writes:
A "make check" fails at createdb with errors in the postmaster logfile:
LOG: setsockopt(TCP_NODELAY) failed: Protocol not available
[snip]
Better ask them what their problem is with that ...
Done, I don't expect an answer till tomorrow.
Thanks for the quick diagnosis.
LER
regards, tom lane
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749