HPUX XOpen sockets
From PostgreSQL wiki
Jump to navigationJump to searchTest results of compiling PostgreSQL and a small test program that uses libpq with different combinations of X/Open socket related options.
configure command-line used to compile PostgreSQL:
./configure --enable-cassert --enable-debug --with-perl --without-readline --with-libs=/opt/packages/zlib-1.2.5/inst/lib/hpux64:/opt/packages/libxslt-1.1.26/inst/lib/hpux64 --with-includes=/opt/packages/zlib-1.2.5/inst/include:/opt/packages/libxslt-1.1.26/inst/include --with-libxml --with-libxslt --prefix=/home/heikki/xopentest/inst CC=cc CFLAGS=+DD64
Base command-line used to compile test program:
cc -Ae +DD64 xopentest.c -o xopentest -I /home/heikki/xopentest/inst/include -L /home/heikki/xopentest/inst/lib -lpq
PostgreSQL build | Additional options to test program build | Result |
---|---|---|
unpatched | <none> | fail: Connection to database failed: could not get socket error status: Invalid argument |
unpatched | -lxnet -D_XOPEN_SOURCE_EXTENDED | success |
unpatched | -lxnet -D_XOPEN_SOURCE_EXTENDED -D_HPUX_ALT_XOPEN_SOCKET_API | success |
patched | <none> | success |
patched | -lxnet -D_XOPEN_SOURCE_EXTENDED | success |
patched | -lxnet -D_XOPEN_SOURCE_EXTENDED -D_HPUX_ALT_XOPEN_SOCKET_API | success |