OpenServer 5.0.7: setsockopt(TCP_NODELAY)?

Поиск
Список
Период
Сортировка
Искать

OpenServer 5.0.7: setsockopt(TCP_NODELAY)?

От:
Larry Rosenman <ler@lerctr.org>
Дата:
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

Re: OpenServer 5.0.7: setsockopt(TCP_NODELAY)?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Larry Rosenman  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

Re: OpenServer 5.0.7: setsockopt(TCP_NODELAY)?

От:
Larry Rosenman <ler@lerctr.org>
Дата:


--On Thursday, November 06, 2003 20:19:05 -0500 Tom Lane 
 wrote:

> Larry Rosenman  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
FAQ