POSTGRES 7.2 or 7.2.1 on HPUX11.1i

From: "Herve CADROY" <hcadroy(at)gertrude(dot)fr>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: POSTGRES 7.2 or 7.2.1 on HPUX11.1i
Date: 2002-04-25 07:34:04
Message-ID: 000901c1ec2b$a625ab80$720106c0@veveportable
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

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

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>

and Run gmake...

PS: i'm sorry for my bad english ;)

Hervé CADROY

Browse pgsql-ports by date

  From Date Subject
Next Message Aleksander Wala 2002-04-25 18:59:57 question?
Previous Message Warwick Hunter 2002-04-19 05:25:58 Re: PostgreSQL 7.2.1-2PGDG RPMs available for RedHat-skipjack