Re: PostgreSQL X/Open Socket / BSD Socket Issue on HP-UX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL X/Open Socket / BSD Socket Issue on HP-UX
Дата
Msg-id 28583.1316556415@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PostgreSQL X/Open Socket / BSD Socket Issue on HP-UX  (MUHAMMAD ASIF <anaeem.it@hotmail.com>)
Ответы Re: PostgreSQL X/Open Socket / BSD Socket Issue on HP-UX
Список pgsql-hackers
MUHAMMAD ASIF <anaeem.it@hotmail.com> writes:
> I faced similar issue as discussed in
"http://postgresql.1045698.n5.nabble.com/Fwd-DBD-Pg-on-HP-UX-11-31-64bit-td3305163.html".
>     (man xopen_networking - http://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/xopen_networking.7.html)    ...
Thereare two ways to obtain X/Open Sockets functionality:    �    � * Method A is in compliance with X/Open compilation
specification.�   � * Method B slightly deviates from X/Open compilation specification. However, Method B allows a
programto include both objects compiled to X/Open Sockets specification and objects compiled to BSD Sockets
specification.   ...
 
> PostgreSQL support X/Open Sockets. Apache web server (2.2.15, /opt/hpws22/apache) and Perl (5.8.8, /opt/perl_64) are
BSDSocket applications that are default with the OS. I tried Method B (It provides wrapper _xpg_ socket functions that
allowsusing X/Open socket objects and BSD socket objects in the same binary) to build PostgreSQL 9.1 code, I LD_PRELOAD
thegenerated libpq binary, without any other change both perl and apache work fine with postgresql now,and it is easy
toimplement too. We just need to build the source code with "-D_XOPEN_SOURCE=600 -D_HPUX_ALT_XOPEN_SOCKET_API" and link
binarywith libc. PFA patch. Thanks.
 

AFAICT, the proposed patch will break things on at least some versions
of HPUX.  You can't just arbitrarily remove the reference to -lxnet,
at least not without explaining to us why the existing comment about it
is wrong.  Likewise, removing -D_XOPEN_SOURCE_EXTENDED isn't
acceptable without a whole more supporting evidence than you've
provided.  (I'm fairly certain that the latter will break the build on
my old HPUX 10.20 box, for example.)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: EXPLAIN and nfiltered, take two
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Inlining comparators as a performance optimisation