Thread: POSTGRES 7.2 or 7.2.1 on HPUX11.1i
Hello, postgres 7.2 or 7.2.1 do not comile under HPUX11.11i
for compiling postgres 7.2 or 7.2.1 on HPUX11.11
run ./configure
=> checking types of arguments for accept()... configure: error: could not determine argument types
open configure file : vi configure
find this line :
cat >> confdefs.h <<EOF
#define PG_VERSION "$VERSION"
EOF
and repalce by
cat >> confdefs.h <<EOF
#define _XOPEN_SOURCE_EXTENDED
#define PG_VERSION "$VERSION"
EOF
run ./configure
=> checking types of arguments for accept()... configure: error: could not determine argument types
open configure file : vi configure
find this line :
cat >> confdefs.h <<EOF
#define PG_VERSION "$VERSION"
EOF
and repalce by
cat >> confdefs.h <<EOF
#define _XOPEN_SOURCE_EXTENDED
#define PG_VERSION "$VERSION"
EOF
and run agin ./configure
now open src/Makefile.global
find the line begin by CFLAGS=
and add in this line :
-D_XOPEN_SOURCE_EXTENDED
After this step you need to modify 3 files
->src/backend/libpq/pqformat.c
->src/interfaces/libpq/fe-misc.c
->src/interfaces/odbc/socket.c
for adding :
#include <arpa/inet.h>
#include <netinet/in.h>
now open src/Makefile.global
find the line begin by CFLAGS=
and add in this line :
-D_XOPEN_SOURCE_EXTENDED
After this step you need to modify 3 files
->src/backend/libpq/pqformat.c
->src/interfaces/libpq/fe-misc.c
->src/interfaces/odbc/socket.c
for adding :
#include <arpa/inet.h>
#include <netinet/in.h>
and Run gmake...
PS: i'm sorry for my bad english ;)
Hervé CADROY