building postgresql 7.4.2 on 5.0.7: setsockopt(TCP_NODELAY) failed

From: David P. Lurie (abc_at_def.net)
Date: 03/26/04


Date: Fri, 26 Mar 2004 00:52:56 -0500

Has anyone successfully built postgresql 7.4.2 on 5.0.7?

Was using postgresql 7.3.4 that came with Update Pack 2 for 5.0.7, but
wanted to sync versions with a 7.4.x Cygwin build being used for
development.

It wouldn't configure and compile until a gcc option (-b elf) was removed,
but unix socket connections fail with the following logged error:

setsockopt(TCP_NODELAY) failed: Protocol not available

Connection to the server therefore only works with a local tcp connection,
i.e.
    psql -h localhost template1.

One post in the postgresql archives mentions the problem, with a different
syntactical approach to removing the -b elf compiler option, but doesn't
provide details of a fix for the rest.

Anyone from SCO with a fix? I didn't try and compile 7.3.4 from source, but
the same problem may have occurred with the earlier version.

Thanks,

David P. Lurie



Relevant Pages

  • Re: Actual Lottery Stuff. WOW eh?
    ... (Clue #1) ... I never bother to compile any project because I almost always ... I put a comment into it that tells how to fix it, ... VB5 was a major upgrade from all previous versions in that it compiles ...
    (rec.gambling.lottery)
  • Re: pointer q
    ... If you were trying to fix the code further up so it would compile what you wanted was: ... More a case of only reading part of the data with my "fix". ... Am I not reading, with correction, the number that a smaller type thinks a larger type was? ... It may have looked formatted on your machine, but here it looks a right mess, and I'm not going to try all my fonts on the off chance one uses the same spacings as whatever font you used. ...
    (comp.lang.c)
  • where are the sources :-)
    ... I can't wait to get the sources and compile for test (currently using ... >Alan started doing forward-porting of 2.4.x driver updates, ... >and USB updates. ... > o fix all the paths in ide Kconfig docs ...
    (Linux-Kernel)
  • Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS
    ... >> Is it my fault that you applied neither Al Viro's patches to remove the ... > That won't make powerpc compile. ... And it's my job to fix every single such bug before you'd accept ... on all architectures. ...
    (Linux-Kernel)
  • Re: [patch 07/45] v4l/dvb: Fix CI on old KNC1 DVBC cards
    ... I only saw it when trying to compile kernel 2.6.17.7. ... Edgar Hucek ... This fix does not compile on 2.6.17.7. ... Currently I am doing lots of refactoring work in the dvb tree. ...
    (Linux-Kernel)